ADVISORIES

GitHub Advisory Database

GHSA-rxg9-hgq7-8pwx

Header spoofing in caddy-geo-ip

Moderate No fix available CVE-2023-50463GO-2023-2394

Details

The caddy-geo-ip (aka GeoIP) middleware through 0.6.0 for Caddy 2, when trust_header X-Forwarded-For is used, allows attackers to spoof their source IP address via an X-Forwarded-For header, which may bypass a protection mechanism (trusted_proxy directive in reverse_proxy or IP address range restrictions).

Affected packages

EcosystemPackageAffected versions
Gogithub.com/shift72/caddy-geo-ip
All versions up to and including 0.6.0

References