CVE-2024-30173: Causal/oidc Authentication Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-hhf8-f5w9-g6vh
CVSS 6.5
CWE-284
Published
Advisory Summary

CVE-2024-30173 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-284: Improper Access Control) affecting Causal/oidc libraries in the Packagist ecosystem. The issue involves openid connect authentication (oidc) typo3 extension authentication bypass. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2024-30173 at a Glance

CVE Identifier CVE-2024-30173
GHSA Identifier GHSA-hhf8-f5w9-g6vh
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-284: Improper Access Control
Affected Product Causal/oidc
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N/E:F/RL:O/RC:C).

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

How to Fix CVE-2024-30173

To remediate this vulnerability, upgrade all affected Causal/oidc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

causal/oidc fixed: 2.1.0
Upgrade causal/oidc to 2.1.0
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 causal/oidc

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-30173, inspect your project dependencies for Causal/oidc:

inspect dependencies for causal/oidc

Analyze the terminal output to locate any version of Causal/oidc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Causal/oidc, 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

The authentication service of the extension does not verify the OpenID Connect authentication state from the user lookup chain. Instead, the authentication service authenticates every valid frontend user from the user lookup chain, where the frontend user field “tx_oidc” is not empty. In scenarios, where either ext:felogin is active or where `$GLOBALS['TYPO3_CONF_VARS'][‘FE’][‘checkFeUserPid’]` is disabled, an attacker can login to OpenID Connect frontend user accounts by providing a valid username and any password.

CVE-2024-30173 Affected Causal/oidc Versions

1 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
causal/oidc
Packagist
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is CVE-2024-30173?
CVE-2024-30173 is a security vulnerability in Causal/oidc involving OpenID Connect Authentication (oidc) Typo3 extension Authentication Bypass under CWE-284: Improper Access Control.
Which Causal/oidc versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: causal/oidc.
What version fixes CVE-2024-30173?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is causal/oidc affected?
Yes, causal/oidc is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What is the CVSS score of CVE-2024-30173?
CVE-2024-30173 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N/E:F/RL:O/RC:C.
What CWE is associated with CVE-2024-30173?
CVE-2024-30173 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Packagist dependencies for CVE-2024-30173?
Run the dependency tree command: 'inspect dependencies for causal/oidc'. 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-hhf8-f5w9-g6vh",
  "modified" : "2024-04-02T18:21:49Z",
  "published" : "2024-04-02T18:21:49Z",
  "aliases" : [ "CVE-2024-30173" ],
  "summary" : "OpenID Connect Authentication (oidc) Typo3 extension Authentication Bypass",
  "details" : "The authentication service of the extension does not verify the OpenID Connect authentication state from the user lookup chain. Instead, the authentication service authenticates every valid frontend user from the user lookup chain, where the  frontend user field “tx_oidc” is not empty.\n\nIn scenarios, where either ext:felogin is active or where `$GLOBALS['TYPO3_CONF_VARS'][‘FE’][‘checkFeUserPid’]` is disabled, an attacker can login to OpenID Connect frontend user accounts by providing a valid username and any password. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N/E:F/RL:O/RC:C"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "causal/oidc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/causal/oidc/CVE-2024-30173.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xperseguers/t3ext-oidc"
  }, {
    "type" : "WEB",
    "url" : "https://typo3.org/security/advisory/typo3-ext-sa-2024-002"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-02T18:21:49Z",
    "nvd_published_at" : null
  }
}