GSD-2022-35943
Vulnerability from gsd - Updated: 2023-12-13 01:19Details
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)
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2022-35943",
"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 `\u0027session,\u0027`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)",
"id": "GSD-2022-35943"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2022-35943"
],
"details": "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 `\u0027session,\u0027`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)",
"id": "GSD-2022-35943",
"modified": "2023-12-13T01:19:33.881728Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-35943",
"STATE": "PUBLIC",
"TITLE": "SameSite may allow cross-site request forgery (CSRF) protection to be bypassed"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "shield",
"version": {
"version_data": [
{
"version_value": "\u003e 4.3.2, \u003e v1.0.0-beta.2"
}
]
}
}
]
},
"vendor_name": "codeigniter4"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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 `\u0027session,\u0027`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)"
}
]
},
"impact": {
"cvss": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "CWE-352: Cross-Site Request Forgery (CSRF)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq",
"refsource": "CONFIRM",
"url": "https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq"
},
{
"name": "https://codeigniter4.github.io/userguide/libraries/security.htm",
"refsource": "MISC",
"url": "https://codeigniter4.github.io/userguide/libraries/security.htm"
},
{
"name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite",
"refsource": "MISC",
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite"
},
{
"name": "https://jub0bs.com/posts/2021-01-29-great-samesite-confusion",
"refsource": "MISC",
"url": "https://jub0bs.com/posts/2021-01-29-great-samesite-confusion"
}
]
},
"source": {
"advisory": "GHSA-5hm8-vh6r-2cjq",
"discovery": "UNKNOWN"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c4.2.3",
"affected_versions": "All versions before 4.2.3",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-352",
"CWE-937"
],
"date": "2022-08-16",
"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 `\u0027session,\u0027`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)",
"fixed_versions": [],
"identifier": "CVE-2022-35943",
"identifiers": [
"CVE-2022-35943",
"GHSA-5hm8-vh6r-2cjq"
],
"not_impacted": "",
"package_slug": "packagist/codeigniter/framework",
"pubdate": "2022-08-12",
"solution": "Unfortunately, there is no solution available yet.",
"title": "Cross-Site Request Forgery (CSRF)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-35943",
"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite",
"https://jub0bs.com/posts/2021-01-29-great-samesite-confusion",
"https://codeigniter4.github.io/userguide/libraries/security.htm",
"https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq"
],
"uuid": "f5d0da18-9b36-47d5-93a2-94b9d273f9a6"
},
{
"affected_range": "=1.0.0-beta",
"affected_versions": "Version 1.0.0-beta",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-352",
"CWE-79",
"CWE-937"
],
"date": "2022-08-18",
"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 `\u0027session,\u0027`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)",
"fixed_versions": [
"1.0.0-beta.2"
],
"identifier": "CVE-2022-35943",
"identifiers": [
"GHSA-5hm8-vh6r-2cjq",
"CVE-2022-35943"
],
"not_impacted": "All versions before 1.0.0-beta, all versions after 1.0.0-beta",
"package_slug": "packagist/codeigniter4/shield",
"pubdate": "2022-08-18",
"solution": "Upgrade to version 1.0.0-beta.2 or above. *Note*: 1.0.0-beta.2 may be an unstable version. Use caution.",
"title": "Cross-Site Request Forgery (CSRF)",
"urls": [
"https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq",
"https://nvd.nist.gov/vuln/detail/CVE-2022-35943",
"https://github.com/codeigniter4/shield/commit/342a368536678621998c3c41d276480cd14ec6c6",
"https://codeigniter4.github.io/userguide/libraries/security.htm",
"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite",
"https://jub0bs.com/posts/2021-01-29-great-samesite-confusion",
"https://github.com/advisories/GHSA-5hm8-vh6r-2cjq"
],
"uuid": "c1834644-b9e9-4779-b0e7-b5a8d7388104"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "4.2.3",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:codeigniter:shield:1.0.0:beta:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2022-35943"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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 `\u0027session,\u0027`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)"
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-352"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite"
},
{
"name": "https://jub0bs.com/posts/2021-01-29-great-samesite-confusion",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://jub0bs.com/posts/2021-01-29-great-samesite-confusion"
},
{
"name": "https://codeigniter4.github.io/userguide/libraries/security.htm",
"refsource": "MISC",
"tags": [
"Broken Link"
],
"url": "https://codeigniter4.github.io/userguide/libraries/security.htm"
},
{
"name": "https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq",
"refsource": "CONFIRM",
"tags": [
"Exploit",
"Mitigation",
"Third Party Advisory"
],
"url": "https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq"
}
]
}
},
"impact": {
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
},
"lastModifiedDate": "2022-08-16T16:06Z",
"publishedDate": "2022-08-12T21:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…