CVE-2022-35943
"Shield CodeIgniter4 SameSite Bypass CSRF Vulnerability"
Description
Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow [SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF protection](https://codeigniter4.github.io/userguide/libraries/security.html) 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)
INFO
Published Date :
Aug. 12, 2022, 9:15 p.m.
Last Modified :
Aug. 16, 2022, 4:06 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-35943
.
URL | Resource |
---|---|
https://codeigniter4.github.io/userguide/libraries/security.htm | Broken Link |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite | Third Party Advisory |
https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq | Exploit Mitigation Third Party Advisory |
https://jub0bs.com/posts/2021-01-29-great-samesite-confusion | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-35943
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-35943
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Aug. 16, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://codeigniter4.github.io/userguide/libraries/security.htm No Types Assigned https://codeigniter4.github.io/userguide/libraries/security.htm Broken Link Changed Reference Type https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite No Types Assigned https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite Third Party Advisory Changed Reference Type https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq No Types Assigned https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq Exploit, Mitigation, Third Party Advisory Changed Reference Type https://jub0bs.com/posts/2021-01-29-great-samesite-confusion No Types Assigned https://jub0bs.com/posts/2021-01-29-great-samesite-confusion Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:* versions up to (excluding) 4.2.3 *cpe:2.3:a:codeigniter:shield:1.0.0:beta:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-35943
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-35943
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.24 }} 0.05%
score
0.61953
percentile