Codeigniter
CVE-2022-35943
HIGH
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Lifecycle Timeline
1DescriptionNVD
Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow SameSite Attackers to bypass the CodeIgniter4 CSRF protection mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., https://a.example.com/) of the target site (e.g., http://example.com/). Upgrade to CodeIgniter v4.2.3 or later and Shield v1.0.0-beta.2 or later. As a workaround: set Config\Security::$csrfProtection to 'session,'remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match)
AnalysisAI
Shield is an authentication and authorization framework for CodeIgniter 4. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
Technical ContextAI
This vulnerability is classified as Cross-Site Request Forgery (CSRF) (CWE-352), which allows attackers to trick authenticated users into performing unintended actions. Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow SameSite Attackers to bypass the CodeIgniter4 CSRF protection mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., https://a.example.com/) of the target site (e.g., http://example.com/). Upgrade to CodeIgniter v4.2.3 or later and Shield v1.0.0-beta.2 or later. As a workaround: set Config\Security::$csrfProtection to 'session,'remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match) Affected products include: Codeigniter, Codeigniter Shield.
RemediationAI
No vendor patch is available at time of analysis. Monitor vendor advisories for updates. Implement anti-CSRF tokens, validate Origin/Referer headers, use SameSite cookie attribute.
More in Codeigniter
View allCodeIgniter before 3.0 and Kohana 3.2.3 and earlier and 3.3.x through 3.3.2 make it easier for remote attackers to spoof
CodeIgniter before 2.2.0 makes it easier for attackers to decode session cookies by leveraging fallback to a custom XOR-
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
B.C. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentication required, low att
Same weakness CWE-352 – Cross-Site Request Forgery (CSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today