CVE-2022-46170
published 2022-12-22CVE-2022-46170: 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)…
PriorityP348critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
0.84%
53.3th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| codeigniter | codeigniter | >= 4.0.0 < 4.2.11 | 4.2.11 |
| codeigniter4 | codeigniter4 | < 4.2.11 | 4.2.11 |
| codeigniter4 | framework | >= 0 < 4.2.11 | 4.2.11 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CodeIgniter4 Potential Session Handlers Vulnerability
osv·2022-12-22
CVE-2022-46170 [HIGH] CodeIgniter4 Potential Session Handlers Vulnerability
CodeIgniter4 Potential Session Handlers Vulnerability
### Impact
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).
### Patches
Upgrade to version 4.2.11 or later.
### Workarounds
- Use only one session cookie.
### References
- https://codeigniter4.github.io/userguide/libraries/sessions.html#session-drivers
### For more information
If you have any questions or comments about this advisory:
* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgnit
GHSA
CodeIgniter4 Potential Session Handlers Vulnerability
ghsa·2022-12-22
CVE-2022-46170 [HIGH] CWE-287 CodeIgniter4 Potential Session Handlers Vulnerability
CodeIgniter4 Potential Session Handlers Vulnerability
### Impact
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).
### Patches
Upgrade to version 4.2.11 or later.
### Workarounds
- Use only one session cookie.
### References
- https://codeigniter4.github.io/userguide/libraries/sessions.html#session-drivers
### For more information
If you have any questions or comments about this advisory:
* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgnit
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558
2022-12-22
Published