5.3 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): None (N)
- Integrity (I): Low (L)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): None (N)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
Fiber: X-Real-IP Spoofing via Header.Add() in BalancerForward
Fiber is an Express inspired web framework written in Go. Prior to 3.3.0 and 2.52.14, the BalancerForward proxy helper in middleware/proxy/proxy.go uses Header.Add() instead of Header.Set() when injecting X-Real-IP, allowing an attacker-supplied first X-Real-IP value to be forwarded to upstream servers for logging, rate limiting, and access control. This issue is fixed in version 3.3.0 and 2.52.14.
References
-
https://github.com/gofiber/fiber/security/advisories/GHSA-gcfq-8gqf-4876 x_refsource_CONFIRM
-
https://github.com/gofiber/fiber/pull/4260 x_refsource_MISC
-
https://github.com/gofiber/fiber/pull/4495 x_refsource_MISC
-
https://github.com/gofiber/fiber/releases/tag/v2.52.14 x_refsource_MISC
-
https://github.com/gofiber/fiber/releases/tag/v3.3.0 x_refsource_MISC
Affected products
- ==< 2.52.14
- ==>= 3.0.0-beta.2, < 3.3.0
Matching in nixpkgs
pkgs.guile-fibers
Concurrent ML-like concurrency for Guile
pkgs.ocamlPackages.fiber
Structured concurrency library