CVE-2019-10643: Contao/contao Contao Does Not Expire Tokens Vulnerability

CRITICAL
Advisory Identifier: GHSA-j99g-qjvx-995g
CVSS 9.8
CWE-287 CWE-324
Published
Advisory Summary

CVE-2019-10643 is a CRITICAL (CVSS 9.8) contao does not expire tokens vulnerability (CWE-287: Improper Authentication) affecting Contao/contao libraries in the Packagist ecosystem. The issue involves contao does not expire tokens correctly. Remediation is available by upgrading affected packages to version 4.7.3.

CVE-2019-10643 at a Glance

CVE Identifier CVE-2019-10643
GHSA Identifier GHSA-j99g-qjvx-995g
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-287: Improper Authentication
Affected Product Contao/contao
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.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:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2019-10643

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.

contao/contao fixed: 4.7.3
Upgrade contao/contao to 4.7.3
contao/core-bundle fixed: 4.7.3
Upgrade contao/core-bundle to 4.7.3
Verify Direct and Transitive Dependencies

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-10643, 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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

Security researcher Ali Razzaq has discovered that confirming an opt-in token does not invalidate previous opt-in tokens in Contao 4.7.

CVE-2019-10643 Affected Contao/contao Versions

2 component(s)
Fixed Versions:
4.7.3
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-10643?
CVE-2019-10643 is a security vulnerability in Contao/contao involving Contao Does Not Expire Tokens Correctly under CWE-287: Improper Authentication.
Which Contao/contao versions are affected?
Affected versions include releases prior to 4.7.3 across affected packages: contao/contao, contao/core-bundle.
What version fixes CVE-2019-10643?
Upgrading to 4.7.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is contao/contao affected?
Yes, contao/contao is affected in releases prior to 4.7.3. Upgrade your dependency to 4.7.3 or later.
Is contao/core-bundle affected?
Yes, contao/core-bundle is affected in releases prior to 4.7.3. Upgrade your dependency to 4.7.3 or later.
What is the CVSS score of CVE-2019-10643?
CVE-2019-10643 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-10643?
CVE-2019-10643 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Packagist dependencies for CVE-2019-10643?
Run the dependency tree command: 'inspect dependencies for contao/contao'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j99g-qjvx-995g",
  "modified" : "2024-04-25T23:15:07Z",
  "published" : "2022-05-13T01:07:57Z",
  "aliases" : [ "CVE-2019-10643" ],
  "summary" : "Contao Does Not Expire Tokens Correctly",
  "details" : "Security researcher Ali Razzaq has discovered that confirming an opt-in token does not invalidate previous opt-in tokens in Contao 4.7.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/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-10643"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/contao/contao/commit/70348cc812b110831ad66a4f9857883f75649b88"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/news.html"
  }, {
    "type" : "WEB",
    "url" : "https://contao.org/en/news/security-vulnerability-cve-2019-10643.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2019-10643.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2019-10643.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-324" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-25T23:15:07Z",
    "nvd_published_at" : "2019-04-17T19:29:00Z"
  }
}