1Panel IP Access Control Bypass via Untrusted X-Forwarded-For Headers
1Panel-dev 1Panel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/1Panel-dev/1Panel Go |
|
|
| github.com/1Panel-dev/1Panel/agent Go |
|
1Panel-dev 1Panel
| Product | Affected | Fixed in |
|---|---|---|
| github.com/1Panel-dev/1Panel Go |
|
|
| github.com/1Panel-dev/1Panel/agent Go |
|
0.0.0-20251201063338-94f7d78cc9761Panel is an open-source, web-based control panel for Linux server management. Versions 2.0.14 and below use Gin's default configuration which trusts all IP addresses as proxies (TrustedProxies = 0.0.0.0/0), allowing any client to spoof the X-Forwarded-For header. Since all IP-based access controls (AllowIPs, API whitelists, localhost-only checks) rely on ClientIP(), attackers can bypass these protections by simply sending X-Forwarded-For: 127.0.0.1 or any whitelisted IP. This renders all IP-based security controls ineffective. This issue is fixed in version 2.0.14.
From the CVE record · GitHub_M
1Panel trusts all proxy IP addresses, allowing a network client to spoof the X-Forwarded-For header. By claiming a localhost or whitelisted IP address, an attacker can bypass IP-based access controls, including API whitelists and localhost-only checks. The input does not specify whether authentication is required; no user interaction is described.
Teams running affected versions of Go packages github.com/1Panel-dev/1Panel or github.com/1Panel-dev/1Panel/agent should check their installations.