GHSA-xm3x-4ph3-3x9c: Friendsofsymfony/oauth2 php Friendsofsymfony/oauth2-php Open Redirection Vulnerability

MODERATE
Published
Advisory Summary

GHSA-xm3x-4ph3-3x9c is a MODERATE friendsofsymfony/oauth2-php open redirection vulnerability (General Security Weakness) affecting Friendsofsymfony/oauth2 php libraries in the Packagist ecosystem. The issue involves friendsofsymfony/oauth2-php open redirection in oauth. Remediation is available by upgrading affected packages to version 1.3.0.

GHSA-xm3x-4ph3-3x9c at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xm3x-4ph3-3x9c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Friendsofsymfony/oauth2 php
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-xm3x-4ph3-3x9c

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

friendsofsymfony/oauth2-php fixed: 1.3.0
Upgrade friendsofsymfony/oauth2-php to 1.3.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 friendsofsymfony/oauth2-php

How to Check if You Are Affected

To determine whether your application is affected by GHSA-xm3x-4ph3-3x9c, inspect your project dependencies for Friendsofsymfony/oauth2 php:

inspect dependencies for friendsofsymfony/oauth2-php

Analyze the terminal output to locate any version of Friendsofsymfony/oauth2 php in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.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 General Security Weakness. In Friendsofsymfony/oauth2 php, 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

An open redirection vulnerability has been identified in the friendsofsymfony/oauth2-php library, which could potentially expose users to unauthorized redirects during the OAuth authentication process. This vulnerability has been addressed by implementing an exact check for the domain and port, ensuring more secure redirection.

GHSA-xm3x-4ph3-3x9c Affected Friendsofsymfony/oauth2 php Versions

1 component(s)
Fixed Versions:
1.3.0
Product / Package Ecosystem Affected Versions Fixed Version
friendsofsymfony/oauth2-php
Packagist
< 1.3.0
1.3.0

References

Frequently Asked Questions

What is GHSA-xm3x-4ph3-3x9c?
GHSA-xm3x-4ph3-3x9c is a security vulnerability in Friendsofsymfony/oauth2 php involving friendsofsymfony/oauth2-php open redirection in oauth under General Security Weakness.
Which Friendsofsymfony/oauth2 php versions are affected?
Affected versions include releases prior to 1.3.0 across affected packages: friendsofsymfony/oauth2-php.
What version fixes GHSA-xm3x-4ph3-3x9c?
Upgrading to 1.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is friendsofsymfony/oauth2-php affected?
Yes, friendsofsymfony/oauth2-php is affected in releases prior to 1.3.0. Upgrade your dependency to 1.3.0 or later.
What CWE is associated with GHSA-xm3x-4ph3-3x9c?
GHSA-xm3x-4ph3-3x9c is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-xm3x-4ph3-3x9c?
Run the dependency tree command: 'inspect dependencies for friendsofsymfony/oauth2-php'. 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-xm3x-4ph3-3x9c",
  "modified" : "2024-05-15T21:39:29Z",
  "published" : "2024-05-15T21:39:29Z",
  "aliases" : [ ],
  "summary" : "friendsofsymfony/oauth2-php open redirection in oauth",
  "details" : "An open redirection vulnerability has been identified in the friendsofsymfony/oauth2-php library, which could potentially expose users to unauthorized redirects during the OAuth authentication process. This vulnerability has been addressed by implementing an exact check for the domain and port, ensuring more secure redirection.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "friendsofsymfony/oauth2-php"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfSymfony/oauth2-php/commit/606b8ea1c3c927c272ac1409116332ad5a2ed94c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/friendsofsymfony/oauth2-php/2020-03-03-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/FriendsOfSymfony/oauth2-php"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfSymfony/oauth2-php/releases/tag/1.3.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:39:29Z",
    "nvd_published_at" : null
  }
}