Cross-site Request Forgery (CSRF) Affecting codeigniter4/framework package, versions <4.1.9


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (49th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CODEIGNITER4FRAMEWORK-2414062
  • published1 Mar 2022
  • disclosed1 Mar 2022
  • creditUnknown

Introduced: 1 Mar 2022

CVE-2022-24712  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade codeigniter4/framework to version 4.1.9 or higher.

Overview

codeigniter4/framework is a PHP full-stack web framework that is light, fast, flexible, and secure.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to a possible bypass of the CSRF protection mechanism,

Workaround: If auto-routing is enabled, check the request method in the controller method before processing. If auto-routing is disabled, either avoid using $routes->add() and instead use HTTP verbs in routes or check the request method in the controller method before processing.

CVSS Scores

version 3.1