CVE-2024-56329: Joelbutcher/socialstream Socialstream Has A Potential Account Vulnerability

HIGH
Advisory Identifier: GHSA-3q97-vjpp-c8rp
CWE-287
Published
Advisory Summary

CVE-2024-56329 is a HIGH socialstream has a potential account vulnerability (CWE-287: Improper Authentication) affecting Joelbutcher/socialstream libraries in the Packagist ecosystem. The issue involves socialstream has a potential account takeover vulnerability in social account linking due to missing user consent after oauth callback. Remediation is available by upgrading affected packages to version 6.2.0, 5.6.0.

CVE-2024-56329 at a Glance

CVE Identifier CVE-2024-56329
GHSA Identifier GHSA-3q97-vjpp-c8rp
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Joelbutcher/socialstream
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2024-56329

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

joelbutcher/socialstream fixed: 6.2.0
Upgrade joelbutcher/socialstream to 6.2.0
joelbutcher/socialstream fixed: 5.6.0
Upgrade joelbutcher/socialstream to 5.6.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 joelbutcher/socialstream

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-56329, inspect your project dependencies for Joelbutcher/socialstream:

inspect dependencies for joelbutcher/socialstream

Analyze the terminal output to locate any version of Joelbutcher/socialstream in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.2.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-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 Joelbutcher/socialstream, 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

## Description When linking a social account to an already authenticated user, the lack of a confirmation step introduces a security risk. This is exacerbated if ->stateless() is used in the Socialite configuration, bypassing state verification and making the exploit easier. Developers should ensure that users explicitly confirm account linking and avoid configurations that skip critical security checks. ## Resolution Socialstream v6.2 introduces a new custom route that requires a user to "Confirm" or "Deny" a request to link a social account.

CVE-2024-56329 Affected Joelbutcher/socialstream Versions

2 component(s)
Fixed Versions:
6.2.05.6.0
Product / Package Ecosystem Affected Versions Fixed Version
joelbutcher/socialstream
Packagist
≥ 6.0.0
< 6.2.0
6.2.0
joelbutcher/socialstream
Packagist
< 5.6.0
5.6.0

References

Frequently Asked Questions

What is CVE-2024-56329?
CVE-2024-56329 is a security vulnerability in Joelbutcher/socialstream involving Socialstream has a Potential Account Takeover Vulnerability in Social Account Linking Due to Missing User Consent After OAuth Callback under CWE-287: Improper Authentication.
Which Joelbutcher/socialstream versions are affected?
Affected versions include releases prior to 6.2.0, 5.6.0 across affected packages: joelbutcher/socialstream.
What version fixes CVE-2024-56329?
Upgrading to 6.2.0, 5.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is joelbutcher/socialstream affected?
Yes, joelbutcher/socialstream is affected in releases prior to 6.2.0, 5.6.0. Upgrade your dependency to 6.2.0, 5.6.0 or later.
What CWE is associated with CVE-2024-56329?
CVE-2024-56329 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-2024-56329?
Run the dependency tree command: 'inspect dependencies for joelbutcher/socialstream'. 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-3q97-vjpp-c8rp",
  "modified" : "2024-12-26T17:28:31Z",
  "published" : "2024-12-20T15:01:20Z",
  "aliases" : [ "CVE-2024-56329" ],
  "summary" : "Socialstream has a Potential Account Takeover Vulnerability in Social Account Linking Due to Missing User Consent After OAuth Callback",
  "details" : "## Description\n\nWhen linking a social account to an already authenticated user, the lack of a confirmation step introduces a security risk. This is exacerbated if ->stateless() is used in the Socialite configuration, bypassing state verification and making the exploit easier. Developers should ensure that users explicitly confirm account linking and avoid configurations that skip critical security checks.\n\n## Resolution\nSocialstream v6.2 introduces a new custom route that requires a user to \"Confirm\" or \"Deny\" a request to link a social account.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "joelbutcher/socialstream"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.2.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "joelbutcher/socialstream"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/joelbutcher/socialstream/security/advisories/GHSA-3q97-vjpp-c8rp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56329"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/joelbutcher/socialstream/commit/ae4dc3906f54fa792b296036d7b3dcea9a4d259b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/joelbutcher/socialstream"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-20T15:01:20Z",
    "nvd_published_at" : "2024-12-20T20:15:23Z"
  }
}