PT-2024-18911 · Unknown · Caddy-Security
David Pokora
+2
·
Published
2024-02-16
·
Updated
2024-11-06
·
CVE-2024-21496
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
github.com/greenpau/caddy-security versions all
Description
The issue is related to Cross-site Scripting (XSS) via the Referer header, caused by improper input sanitization. Although some characters are escaped to prevent XSS, the sanitization does not account for attacks based on the JavaScript URL scheme. This could lead to the execution of malicious scripts in the context of the target user's browser, compromising user sessions.
Recommendations
For github.com/greenpau/caddy-security versions all, consider implementing proper input sanitization for the Referer header to prevent XSS attacks. As a temporary workaround, consider restricting access to sensitive resources that rely on the Referer header until a proper fix is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Caddy-Security