Advisory

GHSA-9pgx-pf36-w46r

Also known as: CVE-2020-35239

Summary

CakePHP allows method override parameters to bypass CSRF checks

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-24 17:40 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.0.10 (ecosystem)

Fixed versions

4.0.10

Fix

The export has no generic command for this ecosystem.

cakephp/cakephp

Packagist · All systems

Affected

  • introduced 4.1.0, fixed 4.1.4 (ecosystem)

Fixed versions

4.1.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences