Skip to content

CVE-2024-21496 Cross-site Scripting in github.com/greenpau/caddy-security

MediumCVSS 6.1 EPSS 0.58%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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