github.com/1Panel-dev/1Panel
Affected
- introduced
0, fixed2.0.14(semver)
Fixed versions
2.0.14
Fix
- Fixed version
2.0.14go get github.com/1Panel-dev/[email protected]
Advisory
Also known as: CVE-2025-66508, GO-2025-4207
1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
Summary
The server trusts all reverse-proxy headers by default, so any remote client can spoof X-Forwarded-For to bypass IP-based protections (AllowIPs, API IP whitelist, “localhost-only” checks). All IP-based access control becomes ineffective.
Details
gin.Default()), which sets TrustedProxies = 0.0.0.0/0 and uses X-Forwarded-For/X-Real-IP to compute ClientIP().ClientIP(): - AllowIPs / BindDomain (core/middleware/ip_limit.go, core/utils/security/security.go). - API IP whitelist (core/middleware/api_auth.go). - "localhost-only" checks that depend on ClientIP().X-Forwarded-For: 127.0.0.1 (or a whitelisted IP) and be treated as coming from that address.Impact
All IP-based access control is rendered ineffective: remote clients can masquerade as localhost or any whitelisted IP, defeating AllowIPs, API IP whitelists, and “localhost-only” protections.
Medium Basis: The source's own band: MODERATE
0, fixed 2.0.14 (semver)2.0.14
2.0.14go get github.com/1Panel-dev/[email protected]0, fixed 0.0.0-20251201063338-94f7d78cc976 (semver)0.0.0-20251201063338-94f7d78cc976
0.0.0-20251201063338-94f7d78cc976go get github.com/1Panel-dev/1Panel/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0