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).

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.5%top 55.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/greenpau/caddy-securityno fix listedGHSA-vj36-3ccr-6563
Gogithub.com/greenpau/caddy-securityno fix listedGO-2024-2558

Affected products (as reported)

VendorProductVersions
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

References