GitHub Advisoryadvisory · Go
GHSA-ff72-ff42-c3gw Cross-site Scripting in github.com/greenpau/caddy-security
MEDIUM
Official page ↗
- Aliases
- CVE-2024-21496
- Ecosystem
- Go
- Packages
- github.com/greenpau/caddy-security
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2024-02-20
Affected packages
• Go github.com/greenpau/caddy-security: <= 1.1.23 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2024-21496 All versions of the package github.com/greenpau/caddy-security are vulnerable to Cross-site Scripting (XSS) via the Referer header, due to… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21496 advisory
- https://github.com/greenpau/caddy-security/issues/267 web
- https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy web
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860 web
- github.com/greenpau/caddy-security package