GHSA-9pgx-pf36-w46r

Suggest an improvement
Source
https://github.com/advisories/GHSA-9pgx-pf36-w46r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9pgx-pf36-w46r/GHSA-9pgx-pf36-w46r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9pgx-pf36-w46r
Aliases
Published
2022-05-24T17:40:14Z
Modified
2023-11-08T04:03:33.195951Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2021-01-26T18:15:00Z",
    "github_reviewed_at": "2023-01-14T05:29:16Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-352"
    ]
}
References

Affected packages

Packagist / cakephp/cakephp

Package

Name
cakephp/cakephp
Purl
pkg:composer/cakephp/cakephp

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.0.10

Affected versions

4.*

4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
4.0.5
4.0.6
4.0.7
4.0.8
4.0.9

Packagist / cakephp/cakephp

Package

Name
cakephp/cakephp
Purl
pkg:composer/cakephp/cakephp

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1.0
Fixed
4.1.4

Affected versions

4.*

4.1.0
4.1.1
4.1.2
4.1.3