Description
simple-php-router through 5.4.1.7 contains an IP restriction bypass vulnerability in the IpRestrictAccess middleware that allows remote unauthenticated attackers to bypass IP whitelist and blacklist protections. Attackers can spoof X-Forwarded-For, CF-Connecting-IP, or Client-IP headers to impersonate whitelisted addresses or evade blacklists, gaining access to IP-restricted routes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pecee | simple-router | ≤ 5.4.1.7 | — |
References
- GitHub Issue #727 issue-tracking
- https://github.com/skipperbent/simple-php-router/blob/5.4.1.7/src/Pecee/Http/Middleware/IpRestrictAccess.php technical-description
- https://github.com/skipperbent/simple-php-router/blob/5.4.1.7/src/Pecee/Http/Request.php technical-description
- https://github.com/skipperbent/simple-php-router product
- VulnCheck Advisory: simple-php-router through 5.4.1.7 IP restriction bypass via forwarding headers third-party-advisory