CVE-2024-21496 Cross-site Scripting in github.com/greenpau/caddy-security
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
2 packages: 0 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| authcrunch caddy-security | All versions | No fix listed | No fix yet |
| greenpau github.com/greenpau/caddy-security(Go) | <= 1.1.23; All versions | after 1.1.23 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| greenpau github.com/greenpau/caddy-security(Go) | <= 1.1.23 | No fix listed |
| greenpau github.com/greenpau/caddy-security(Go) | All versions | No fix listed |
| authcrunch caddy-security | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit issue-tracking
- blog.trailofbits.com exploit third-party-advisory
- security.snyk.io third-party-advisory
- github.com vendor-advisory