Lucene search

K
friendsofphpOpenJS FoundationFRIENDSOFPHP:CODEIGNITER4:FRAMEWORK:CVE-2022-24712
HistoryFeb 26, 2022 - 12:51 a.m.

CVE-2022-24712: Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4

2022-02-2600:51:52
OpenJS Foundation
github.com
2

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

7.2 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

49.3%

Description Impact This vulnerability might allow remote attackers to bypass the CodeIgniter4 CSRF protection mechanism. Patches Upgrade to v4.1.9 or later. Workarounds These are workarounds for this vulnerability, but you will still need to code as these after upgrading to v4.1.9. Otherwise, the CSRF protection may be bypassed. When Auto-Routing is Enabled Check the request method in the controller method before processing. E.g.: if (strtolower($this->request->getMethod()) !== ‘post’) { return $this->response->setStatusCode(405)->setBody(‘Method Not Allowed’); } When Auto-Routing is Disabled Do one of the following: Do not use $routes->add(), and use HTTP verbs in routes. Check the request method in the controller method before processing. E.g.: if (strtolower($this->request->getMethod()) !== ‘post’) { return $this->response->setStatusCode(405)->setBody(‘Method Not Allowed’); } References CodeIgniter4 CSRF protection For more information If you have any questions or comments about this advisory: Open an issue in codeigniter4/CodeIgniter4 Email us at SECURITY.md

Affected configurations

Vulners
Node
codeigniter4frameworkRange<4.1.9
CPENameOperatorVersion
codeigniter4/frameworklt4.1.9

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

8.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

7.2 High

AI Score

Confidence

Low

0.001 Low

EPSS

Percentile

49.3%

Related for FRIENDSOFPHP:CODEIGNITER4:FRAMEWORK:CVE-2022-24712