Files
terraincognita07 1fb0471966 fix(proxy): overwrite X-Real-IP in BalancerForward (GHSA-gcfq-8gqf-4876)
Backport of the v3 fix (72455dd, PR #4260) for GHSA-gcfq-8gqf-4876 /
CVE-2026-45045 to the v2 branch: Header.Add kept an attacker-supplied
X-Real-IP as the first header value, so upstream servers reading the
first value trusted the spoofed IP. Header.Set overwrites it with the
real client IP (c.IP()).

Adds the corresponding regression test adapted to v2's *fiber.Ctx
handler signature, and fixes the same insecure pattern in the proxy
middleware doc example.
2026-07-03 15:42:07 +02:00
..
2024-04-19 12:28:23 +02:00
2025-04-26 19:16:09 +02:00
2023-07-16 16:18:23 +02:00