CVE-2022-46170
Description
CodeIgniter is a PHP full-stack web framework. When an application uses (1) multiple session cookies (e.g., one for user pages and one for admin pages) and (2) a session handler is set to `DatabaseHandler`, `MemcachedHandler`, or `RedisHandler`, then if an attacker gets one session cookie (e.g., one for user pages), they may be able to access pages that require another session cookie (e.g., for admin pages). This issue has been patched, please upgrade to version 4.2.11 or later. As a workaround, use only one session cookie.
How to fix
- codeigniter codeigniter4.2.11 or later
- codeigniter4/framework4.2.11 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| codeigniter codeigniter | 4.0.0 ≤ v < 4.2.11 | 4.2.11 |
| codeigniter4/frameworkPackagist | v < 4.2.11 | 4.2.11 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.