GHSA-g6f5-4w43-2x63: Socalnick/scn social auth Cross-Site Scripting Vulnerability
MODERATEGHSA-g6f5-4w43-2x63 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Socalnick/scn social auth libraries in the Packagist ecosystem. The issue involves scnsocialauth cross-site scripting vulnerability in login redirect param. Remediation is available by upgrading affected packages to version 1.15.2.
GHSA-g6f5-4w43-2x63 at a Glance
Security Impact
CVSS: 6.1
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:R/S:C/C:L/I:L/A:N).
How to Fix GHSA-g6f5-4w43-2x63
To remediate this vulnerability, upgrade all affected Socalnick/scn social auth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade socalnick/scn-social-auth to 1.15.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for socalnick/scn-social-auth
How to Check if You Are Affected
To determine whether your application is affected by GHSA-g6f5-4w43-2x63, inspect your project dependencies for Socalnick/scn social auth:
inspect dependencies for socalnick/scn-social-auth
Analyze the terminal output to locate any version of Socalnick/scn social auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.15.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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Socalnick/scn social auth, 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
GHSA-g6f5-4w43-2x63 Affected Socalnick/scn social auth Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
socalnick/scn-social-auth
|
Packagist |
< 1.15.2
|
1.15.2
|
References
Frequently Asked Questions
What is GHSA-g6f5-4w43-2x63?
Which Socalnick/scn social auth versions are affected?
What version fixes GHSA-g6f5-4w43-2x63?
Is socalnick/scn-social-auth affected?
What is the CVSS score of GHSA-g6f5-4w43-2x63?
What CWE is associated with GHSA-g6f5-4w43-2x63?
How can I check Packagist dependencies for GHSA-g6f5-4w43-2x63?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g6f5-4w43-2x63",
"modified" : "2024-05-29T13:04:32Z",
"published" : "2024-05-29T13:04:32Z",
"aliases" : [ ],
"summary" : "ScnSocialAuth Cross-site Scripting vulnerability in login redirect param",
"details" : "ScnSocialAuth version 1.15.2 has been released and includes a security for this vulnerability. Fix has been applied in https://github.com/SocalNick/ScnSocialAuth/commit/4a00966c41bc37251586d007564c5c891eba3700\n\n### Affected versions\nAll versions below 1.15.2 are affected. dev-master is fixed starting from https://github.com/SocalNick/ScnSocialAuth/commit/4a00966c41bc37251586d007564c5c891eba3700\n\n### Exploits\nBecause of missing escaping of the URL param redirect a XSS attack is possible.\nFor example: Setting the redirect param to `\"><a%20href=\"http://github.com\">GitHub.com</a><inpu%20type=\"hidden\"%20\"` would result in a link added to the login page.\n\n### Resolution\nIf you are using any version of ScnSocialAuth below 1.15.2 please upgrade immediately by running composer update.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "socalnick/scn-social-auth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.15.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/socalnick/scnsocialauth/issues/184"
}, {
"type" : "WEB",
"url" : "https://github.com/SocalNick/ScnSocialAuth/commit/4a00966c41bc37251586d007564c5c891eba3700"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/socalnick/scn-social-auth/2015-01-15.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SocalNick/ScnSocialAuth/commit"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-29T13:04:32Z",
"nvd_published_at" : null
}
}