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。