CVE-2024-21496
Authcrunch Caddy-security vulnerability
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.
Affected products
Caddy-security. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Authcrunch Caddy-security runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/ · Exploit
- security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860 · Third Party Advisory
- github.com/greenpau/caddy-security/issues/267 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-21496
- blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy
- github.com/advisories/GHSA-ff72-ff42-c3gw
- nvd.nist.gov/vuln/detail/CVE-2024-21496
- cve.org/CVERecord?id=CVE-2024-21496
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.