Header spoofing in caddy-geo-ip
Moderate severity
GitHub Reviewed
Published
Dec 11, 2023
to the GitHub Advisory Database
•
Updated Dec 13, 2023
Description
Published by the National Vulnerability Database
Dec 10, 2023
Published to the GitHub Advisory Database
Dec 11, 2023
Reviewed
Dec 11, 2023
Last updated
Dec 13, 2023
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).
References