GHSA-rcm4-jv5g-wccm: Zfr/zfr oauth2 server module Zfr Authentication Adapter Did Not Vulnerability

HIGH
CVSS 7.5
CWE-613
Published
Advisory Summary

GHSA-rcm4-jv5g-wccm is a HIGH (CVSS 7.5) zfr authentication adapter did not vulnerability (CWE-613: Insufficient Session Expiration) affecting Zfr/zfr oauth2 server module libraries in the Packagist ecosystem. The issue involves zfr authentication adapter did not verify validity of tokens. Remediation is available by upgrading affected packages to version 0.1.2.

GHSA-rcm4-jv5g-wccm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-rcm4-jv5g-wccm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Zfr/zfr oauth2 server module
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-rcm4-jv5g-wccm

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

zfr/zfr-oauth2-server-module fixed: 0.1.2
Upgrade zfr/zfr-oauth2-server-module to 0.1.2
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 zfr/zfr-oauth2-server-module

How to Check if You Are Affected

To determine whether your application is affected by GHSA-rcm4-jv5g-wccm, inspect your project dependencies for Zfr/zfr oauth2 server module:

inspect dependencies for zfr/zfr-oauth2-server-module

Analyze the terminal output to locate any version of Zfr/zfr oauth2 server module in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.2), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Zfr/zfr oauth2 server module, 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

Previous to @2ca5bb1c2f11537be8f94ca6867d8d69789e744a (release [0.1.2](https://github.com/zf-fr/zfr-oauth2-server-module/tree/0.1.2)), tokens weren't checked for validity/expiration. This potentially caused a security issue if expired tokens were not deleted after the expiration time was past, allowing anyone to still use invalidated authentication credentials.

GHSA-rcm4-jv5g-wccm Affected Zfr/zfr oauth2 server module Versions

1 component(s)
Fixed Versions:
0.1.2
Product / Package Ecosystem Affected Versions Fixed Version
zfr/zfr-oauth2-server-module
Packagist
< 0.1.2
0.1.2

References

Frequently Asked Questions

What is GHSA-rcm4-jv5g-wccm?
GHSA-rcm4-jv5g-wccm is a security vulnerability in Zfr/zfr oauth2 server module involving zfr authentication adapter did not verify validity of tokens under CWE-613: Insufficient Session Expiration.
Which Zfr/zfr oauth2 server module versions are affected?
Affected versions include releases prior to 0.1.2 across affected packages: zfr/zfr-oauth2-server-module.
What version fixes GHSA-rcm4-jv5g-wccm?
Upgrading to 0.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zfr/zfr-oauth2-server-module affected?
Yes, zfr/zfr-oauth2-server-module is affected in releases prior to 0.1.2. Upgrade your dependency to 0.1.2 or later.
What is the CVSS score of GHSA-rcm4-jv5g-wccm?
GHSA-rcm4-jv5g-wccm has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-rcm4-jv5g-wccm?
GHSA-rcm4-jv5g-wccm is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check Packagist dependencies for GHSA-rcm4-jv5g-wccm?
Run the dependency tree command: 'inspect dependencies for zfr/zfr-oauth2-server-module'. 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-rcm4-jv5g-wccm",
  "modified" : "2024-06-07T22:30:03Z",
  "published" : "2024-06-07T22:30:03Z",
  "aliases" : [ ],
  "summary" : "zfr authentication adapter did not verify validity of tokens",
  "details" : "Previous to @2ca5bb1c2f11537be8f94ca6867d8d69789e744a (release [0.1.2](https://github.com/zf-fr/zfr-oauth2-server-module/tree/0.1.2)), tokens weren't checked for validity/expiration.\n\nThis potentially caused a security issue if expired tokens were not deleted after the expiration time was past, allowing anyone to still use invalidated authentication credentials.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "zfr/zfr-oauth2-server-module"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zf-fr/zfr-oauth2-server-module/issues/6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zf-fr/zfr-oauth2-server-module/commit/2ca5bb1c2f11537be8f94ca6867d8d69789e744a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/zfr/zfr-oauth2-server-module/2014-04-26.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zf-fr/zfr-oauth2-server-module"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zf-fr/zfr-oauth2-server-module/tree/0.1.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-613" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-07T22:30:03Z",
    "nvd_published_at" : null
  }
}