PT-2021-11738 · Cakephp · Cakephp

Xhelal Likaj

·

Published

2021-01-20

·

Updated

2025-01-15

·

CVE-2020-35239

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: CakePHP versions 4.0.x through 4.1.3
Description: A vulnerability exists in the CsrfProtectionMiddleware component, allowing method override parameters to bypass CSRF checks by changing the HTTP request method to an arbitrary string that is not in the list of request methods that CakePHP checks. The route middleware does not verify that this overridden method, which can be an arbitrary string, is actually an HTTP method.
Recommendations: For CakePHP versions 4.0.x through 4.1.3, consider disabling the CsrfProtectionMiddleware component or restricting its use until a patch is available. As a temporary workaround, restrict access to the route middleware to minimize the risk of exploitation. Avoid using method override parameters in HTTP requests to the affected CakePHP versions until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

CSRF

Weakness Enumeration

Related Identifiers

CVE-2020-35239
GHSA-9PGX-PF36-W46R

Affected Products

Cakephp