GitHub Advisoryadvisory · Packagist
GHSA-9pgx-pf36-w46r CakePHP allows method override parameters to bypass CSRF checks
HIGH
Official page ↗
- Aliases
- CVE-2020-35239
- Ecosystem
- Packagist
- Packages
- cakephp/cakephp
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-352
- Reviewed
- 2023-01-14
Affected packages
• Packagist cakephp/cakephp: >= 4.0.0, < 4.0.10 → fixed in 4.0.10
• Packagist cakephp/cakephp: >= 4.1.0, < 4.1.4 → fixed in 4.1.4
Description
A vulnerability exists in CakePHP versions 4.0.x through 4.1.3. The CsrfProtectionMiddleware component allows 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. Additionally, the route middleware does not verify that this overriden method (which can be an arbitrary string) is actually an HTTP method.
Related
Alias · CVE (1)
- CVE-2020-35239 A vulnerability exists in CakePHP versions 4.0.x through 4.1.3. vulnerability
Weakness · CWE (1)
- CWE-352 Cross-Site Request Forgery weakness