Cross-site Request Forgery (CSRF) Affecting cakephp/cakephp package, versions >=4.0.0, <4.0.10>=4.1.0, <4.1.4


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.1% (43rd 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-CAKEPHPCAKEPHP-3252484
  • published29 Jan 2023
  • disclosed24 May 2022
  • creditXhelal Likaj

Introduced: 24 May 2022

CVE-2020-35239  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade cakephp/cakephp to version 4.0.10, 4.1.4 or higher.

Overview

cakephp/cakephp is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the CsrfProtectionMiddleware component by changing without verification the HTTP request method to an arbitrary string that is not in the list of request methods that CakePHP checks.

References

CVSS Scores

version 3.1