Echo: X-Real-IP extractor trusts the header value instead of the sending peer
影響: go:github.com/labstack/echo/v5 >= 5.0.0, < 5.4.1 → 5.4.1
In Echo v5, ExtractIPFromRealIPHeader checked whether the address supplied in X-Real-IP belonged to a trusted range instead of checking the address of the direct network peer. An untrusted client could therefore supply a loopback or private address and have it returned by c.RealIP() with the extractor's default trust options. Applications using this extractor for IP allowlists, IP-based rate limiting, audit logs or forwarding headers could accept a spoofed client identity. Exploitation requires…
| 情報源 | GitHub Advisory Database |
|---|---|
| 取得日時 | 2026/10/24 13:50 |
| データ | Markdown JSON |
2026/10/24 05:50、GitHub Advisory Databaseが「Echo: X-Real-IP extractor trusts the header value instead of the sending peer」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Go、GitHub。