From 77412bb98d0a69155c0d3f97a64eb68c615289c2 Mon Sep 17 00:00:00 2001 From: Tatiana Bradley Date: Mon, 23 Oct 2023 15:06:11 -0400 Subject: [PATCH] data/reports: add GO-2023-2114.yaml Aliases: CVE-2023-45683, GHSA-267v-3v32-g6q5 Fixes golang/vulndb#2114 Change-Id: I56640223c8858f9f176dbec77e99e1f3b330180c Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/537136 Run-TryBot: Tatiana Bradley TryBot-Result: Gopher Robot Reviewed-by: Damien Neil --- data/osv/GO-2023-2114.json | 58 ++++++++++++++++++++++++++++++++++ data/reports/GO-2023-2114.yaml | 30 ++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 data/osv/GO-2023-2114.json create mode 100644 data/reports/GO-2023-2114.yaml diff --git a/data/osv/GO-2023-2114.json b/data/osv/GO-2023-2114.json new file mode 100644 index 00000000..cd3a0e4a --- /dev/null +++ b/data/osv/GO-2023-2114.json @@ -0,0 +1,58 @@ +{ + "schema_version": "1.3.1", + "id": "GO-2023-2114", + "modified": "0001-01-01T00:00:00Z", + "published": "0001-01-01T00:00:00Z", + "aliases": [ + "CVE-2023-45683", + "GHSA-267v-3v32-g6q5" + ], + "summary": "Cross-site scripting via missing binding syntax validation in github.com/crewjam/saml", + "details": "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 loads the SAML IdP initiated SSO link for the malicious service provider.", + "affected": [ + { + "package": { + "name": "github.com/crewjam/saml", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.4.14" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/crewjam/saml" + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/crewjam/saml/security/advisories/GHSA-267v-3v32-g6q5" + }, + { + "type": "FIX", + "url": "https://github.com/crewjam/saml/commit/b07b16cf83c4171d16da4d85608cb827f183cd79" + } + ], + "credits": [ + { + "name": "Francesco Lacerenza from Doyensec" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-2114" + } +} \ No newline at end of file diff --git a/data/reports/GO-2023-2114.yaml b/data/reports/GO-2023-2114.yaml new file mode 100644 index 00000000..cb5862fb --- /dev/null +++ b/data/reports/GO-2023-2114.yaml @@ -0,0 +1,30 @@ +id: GO-2023-2114 +modules: + - module: github.com/crewjam/saml + versions: + - fixed: 0.4.14 + vulnerable_at: 0.4.13 + packages: + - package: github.com/crewjam/saml +summary: |- + Cross-site scripting via missing binding syntax validation in + github.com/crewjam/saml +description: |- + 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 loads the SAML + IdP initiated SSO link for the malicious service provider. +cves: + - CVE-2023-45683 +ghsas: + - GHSA-267v-3v32-g6q5 +credits: + - Francesco Lacerenza from Doyensec +references: + - advisory: https://github.com/crewjam/saml/security/advisories/GHSA-267v-3v32-g6q5 + - fix: https://github.com/crewjam/saml/commit/b07b16cf83c4171d16da4d85608cb827f183cd79 +notes: + - The fix introduced functions Endpoint.UnmarshalXML and IndexedEndpoint.UnmarshalXML, but we currently do not have a way to mark uses of xml.Unmarshal on a certain type as vulnerable.