PT-2022-23049
CVE-2022-35943
·
Published
2022-08-12
·
Updated
2024-03-06
Description by
CVSS 3.1
5.9
MediumMetricsAV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L
Name of the Vulnerable Software and Affected Versions
CodeIgniter versions prior to 4.2.3
Shield versions prior to 1.0.0-beta.2
Description
This issue may allow attackers to bypass the CodeIgniter4 CSRF protection mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct or indirect control over a subdomain site of the target site. The attack is possible whether
ConfigSecurity::$csrfProtection is set to 'cookie' or 'session', and whether ConfigSecurity::$regenerate is true or false.Recommendations
Upgrade to CodeIgniter v4.2.3 or later and Shield v1.0.0-beta.2 or later.
As a workaround:
- set
ConfigSecurity::$csrfProtectionto'session' - remove old session data right after login
- regenerate CSRF token right after login
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾