CVE-2019-10642: Contao/contao Contao CSRF Token Bypass Vulnerability
HIGHCVE-2019-10642 is a HIGH (CVSS 8.8) contao csrf token bypass vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Contao/contao libraries in the Packagist ecosystem. The issue involves contao csrf token bypass. Remediation is available by upgrading affected packages to version 4.7.3.
CVE-2019-10642 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-10642
To remediate this vulnerability, upgrade all affected Contao/contao dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade contao/contao to 4.7.3
Upgrade contao/core-bundle to 4.7.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for contao/contao
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-10642, inspect your project dependencies for Contao/contao:
inspect dependencies for contao/contao
Analyze the terminal output to locate any version of Contao/contao in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.7.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Contao/contao, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-10642 Affected Contao/contao Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
contao/contao
|
Packagist |
≥ 4.7.0
< 4.7.3
|
4.7.3
|
|
contao/core-bundle
|
Packagist |
≥ 4.7.0
< 4.7.3
|
4.7.3
|
References
Frequently Asked Questions
What is CVE-2019-10642?
Which Contao/contao versions are affected?
What version fixes CVE-2019-10642?
Is contao/contao affected?
Is contao/core-bundle affected?
What is the CVSS score of CVE-2019-10642?
What CWE is associated with CVE-2019-10642?
How can I check Packagist dependencies for CVE-2019-10642?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hwmh-9jj9-8c9c",
"modified" : "2024-04-25T23:05:47Z",
"published" : "2022-05-14T01:09:23Z",
"aliases" : [ "CVE-2019-10642" ],
"summary" : "Contao CSRF Token Bypass",
"details" : "Security researcher Ali Razzaq has discovered that the request token check can be bypassed in Contao 4.7",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/contao"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.7.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "contao/core-bundle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.7.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10642"
}, {
"type" : "WEB",
"url" : "https://github.com/contao/contao/commit/ee2c8130c2e68a1d0d2e75bd6b774c4393942b15"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/news.html"
}, {
"type" : "WEB",
"url" : "https://contao.org/en/news/security-vulnerability-cve-2019-10642.html"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2019-10642.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2019-10642.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/contao/contao"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T23:05:47Z",
"nvd_published_at" : "2019-04-17T19:29:00Z"
}
}