CVE-2024-56329: Socialstream Potential Account Takeover Vulnerability Due to Missing User Consent
Summary
CVE-2024-56329: Description When linking a social account to an already authenticated user, the lack of a confirmation step introduces a security risk. Affects joelbutcher/socialstream across 2 version ranges.
< 5.6.0
>= 6.0.0, < 6.2.0
Fixed in 5.6.0 or 6.2.0, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Socialstream is a package designed for integrating social authentication into applications, allowing users to link their social media accounts for seamless login experiences. It provides a straightforward way for developers to implement OAuth authentication. However, the package has a critical vulnerability that can lead to account takeover if proper user consent is not obtained during the account linking process.
Vulnerability Detail
The vulnerability arises when a social account is linked to an already authenticated user without requiring explicit user confirmation. This lack of a confirmation step poses a security risk, especially when the ->stateless() configuration is used in Socialite, which bypasses state verification. As a result, an attacker could exploit this flaw to link their own social account to a victim's account, potentially gaining unauthorized access to sensitive information and functionalities.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 5.6.05.6.0composer require joelbutcher/socialstream:5.6.0 -
>= 6.0.0, < 6.2.06.2.0composer require joelbutcher/socialstream:6.2.0
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
As a temporary workaround, developers should implement a manual confirmation step in their application logic before linking social accounts. This can be done by prompting users to confirm or deny the linking request through a dialog or notification.
Conclusion
The CVE-2024-56329 vulnerability in the Socialstream package poses a significant risk of account takeover due to missing user consent during social account linking. Developers are advised to update to version 6.2.0 or later to mitigate this risk and ensure user security.
See every vulnerability recorded for joelbutcher/socialstream →
FAQ
CVE-2024-56329 is a vulnerability in the Socialstream package that allows potential account takeover due to missing user consent during social account linking.
You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your composer.lock file without any signup.
The primary risk is that an attacker could link their social account to a victim's account, leading to unauthorized access and potential data breaches.
Yes, the patch is available in Socialstream version 6.2.0 and later. It requires user confirmation for linking social accounts.
If immediate updates are not possible, implement a manual confirmation step in your application to ensure users explicitly approve any social account linking.