Advisory

GHSA-ghw3-5qvm-3mqc

Also known as: BIT-codeigniter-2022-23556, CVE-2022-23556

Summary

CodeIgniter4 allows spoofing of IP address when using proxy

Details

Impact
This vulnerability may allow attackers to spoof their IP address when your server is behind a reverse proxy.

Patches
Upgrade to v4.2.11 or later, and configure Config\App::$proxyIPs.

Workarounds
Do not use $request->getIPAddress().

References

  • https://codeigniter4.github.io/userguide/incoming/request.html#CodeIgniter\HTTP\Request::getIPAddress

For more information
If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-12-22 19:59 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

codeigniter4/framework

Packagist · All systems

Affected

  • introduced 0, fixed 4.2.11 (ecosystem)

Fixed versions

4.2.11

Fix

The export has no generic command for this ecosystem.

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences