Vulnerability · Published Feb 17, 2024 · Assigned by snyk
CVE-2024-21494
Medium 5.4
In plain English
A medium-severity authentication bypass by spoofing in github.com/greenpau/caddy-security. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities).
Official description
All versions of the package github.com/greenpau/caddy-security are vulnerable to Authentication Bypass by Spoofing via the X-Forwarded-For header due to improper input sanitization. An attacker can spoof an IP address used in the user identity module (/whoami API endpoint). This could lead to unauthorized access if the system trusts this spoofed IP address.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/greenpau/caddy-security | no fix listed | GHSA-vj36-3ccr-6563 |
| Go | github.com/greenpau/caddy-security | no fix listed | GO-2024-2558 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/greenpau/caddy-security | 0 – before * |
Weakness: CWE-290, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P