GHSA-267v-3v32-g6q5

Suggest an improvement
Source
https://github.com/advisories/GHSA-267v-3v32-g6q5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/10/GHSA-267v-3v32-g6q5/GHSA-267v-3v32-g6q5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-267v-3v32-g6q5
Aliases
Related
Published
2023-10-17T14:20:59Z
Modified
2023-11-08T04:13:38.984714Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L CVSS Calculator
Summary
Cross-site Scripting via missing Binding syntax validation
Details

Impact

The package does not validate the ACS Location URI according to the SAML binding being parsed.

If abused, this flaw allows attackers to register malicious Service Providers at the IdP and inject Javascript in the ACS endpoint definition, achieving Cross-Site-Scripting (XSS) in the IdP context during the redirection at the end of a SAML SSO Flow.

Consequently, an attacker may perform any authenticated action as the victim once the victim’s browser loaded the SAML IdP initiated SSO link for the malicious service provider.

Note: The severity is considered “High” because the SP registration is commonly an unrestricted operation in IdPs, hence not requiring particular permissions or publicly accessible to ease the IdP interoperability.

Patches

This issue is fixed in 0.4.14

Workarounds

Users of the package can perform external validation of URLs provided in SAML metadata, or restrict the ability for end-users to upload arbitrary metadata.

References

This issue was reported by Francesco Lacerenza from Doyensec.

Database specific
{
    "nvd_published_at": "2023-10-16T19:15:11Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-10-17T14:20:59Z"
}
References

Affected packages

Go / github.com/crewjam/saml

Package

Name
github.com/crewjam/saml
View open source insights on deps.dev
Purl
pkg:golang/github.com/crewjam/saml

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.14