Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-50463 EUVD-2023-3297GHSA-rxg9-hgq7-8pwxGO-2023-2394

Header spoofing in caddy-geo-ip

Published Dec 10, 2023 · Updated Aug 2, 2024 · Assigned by mitre

Description

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

EcosystemPackageAffectedFixedRecord
Go github.com/shift72/caddy-geo-ip <= 0.6.0 — GHSA-rxg9-hgq7-8pwx
Go github.com/shift72/caddy-geo-ip all versions — GO-2023-2394

References