GitHub Advisoryadvisory · Go

GHSA-ff72-ff42-c3gw Cross-site Scripting in github.com/greenpau/caddy-security

MEDIUM Published 2024-02-17 Modified 2024-11-06 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