logo

CVE-2024-21496 github.com/greenpau/caddy-security

Package

Manager: go
Name: github.com/greenpau/caddy-security
Vulnerable Version: >=0 <=1.1.23

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

EPSS: 0.00146 pctl0.35636

Details

Cross-site Scripting in github.com/greenpau/caddy-security All versions of the package github.com/greenpau/caddy-security are vulnerable to Cross-site Scripting (XSS) via the Referer header, due to improper input sanitization. Although the Referer header is sanitized by escaping some characters that can allow XSS (e.g., [&], [<], [>], ["], [']), it does not account for the attack based on the JavaScript URL scheme (e.g., javascript:alert(document.domain)// payload). Exploiting this vulnerability may not be trivial, but it could lead to the execution of malicious scripts in the context of the target user’s browser, compromising user sessions.

Metadata

Created: 2024-02-17T06:30:34Z
Modified: 2024-11-06T23:31:23Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-ff72-ff42-c3gw/GHSA-ff72-ff42-c3gw.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-ff72-ff42-c3gw
Finding: F008
Auto approve: 1