CVE-2024-21496
Last modified
CVE-2024-21496 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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). EPSS estimates a 0.58% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Authcrunch | Caddy-Security | All versions |
References
- https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/Exploit, Third Party Advisory
- https://github.com/greenpau/caddy-security/issues/267Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860Third Party Advisory
- https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/Exploit, Third Party Advisory
- https://github.com/greenpau/caddy-security/issues/267Exploit, Issue Tracking
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-21496?
How severe is CVE-2024-21496?
How do I fix CVE-2024-21496?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-21490This affects versions of the package angular from 1.3.0; ver…7.5
- CVE-2024-21491Versions of the package svix before 1.17.0 are vulnerable to…6.5
- CVE-2024-21492All versions of the package github.com/greenpau/caddy-securi…8.1
- CVE-2024-21493All versions of the package github.com/greenpau/caddy-securi…5.3
- CVE-2024-21494All versions of the package github.com/greenpau/caddy-securi…5.4
- CVE-2024-21495Versions of the package github.com/greenpau/caddy-security b…9.8
- CVE-2024-21497Versions of the package github.com/greenpau/caddy-security …6.1
- CVE-2024-21498All versions of the package github.com/greenpau/caddy-securi…5.3
- CVE-2024-21499All versions of the package github.com/greenpau/caddy-securi…4.3
- CVE-2024-2150A vulnerability, which was classified as critical, has been …5.3
- CVE-2024-21500All versions of the package github.com/greenpau/caddy-securi…6.5
- CVE-2024-21501Versions of the package sanitize-html before 2.12.1 are vuln…5.3
Are you affected by CVE-2024-21496?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
