8.8
HIGH CVSS 3.1
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 :

Nov. 21, 2024, 7:12 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2022-35943 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Codeigniter codeigniter
2 Codeigniter shield
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
References to Advisories, Solutions, and Tools
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.

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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://codeigniter4.github.io/userguide/libraries/security.htm
    Added Reference https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
    Added Reference https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq
    Added Reference https://jub0bs.com/posts/2021-01-29-great-samesite-confusion
  • 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:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.02 }} 0.00%

score

0.03011

percentile