CVE-2024-21496
MEDIUM6.1EPSS 0.14%Cross-site Scripting in github.com/greenpau/caddy-security
發布日:2024/2/17修改日:2024/11/6
描述
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.
受影響套件(2)
- Go/github.com/greenpau/caddy-securityfrom 0, <= 1.1.23
- Go/github.com/greenpau/caddy-securityfrom 0
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
參考連結(6)
- ADVISORYhttps://github.com/advisories/GHSA-ff72-ff42-c3gw
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-21496
- PATCHgithub.com/greenpau/caddy-security
- WEBhttps://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy
- WEBhttps://github.com/greenpau/caddy-security/issues/267
- WEBhttps://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249860