BIT-codeigniter-2022-23556: CodeIgniter is vulnerable to IP address spoofing when using proxy
CodeIgniter is a PHP full-stack web framework. This vulnerability may allow attackers to spoof their IP address when the server is behind a reverse proxy. This issue has been patched, please upgrade to version 4.2.11 or later, and configure Config\App::$proxyIPs. As a workaround, do not use $request->getIPAddress().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.11 - Configuration
Configure Config\App::$proxyIPs when the server is behind a reverse proxy.
Config\App::$proxyIPs - Compensating control
Do not use $request->getIPAddress() as a workaround.