{"answers":{"affected":"4 open source packages ship an affected version, including Sustainsys.Saml2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5268 in the wild and no public exploit code.","fix":"Upgrade Sustainsys.Saml2 to a fixed version for your release line: 1.0.2 or 2.7.0.","what":"CVE-2020-5268 is a medium-severity authentication bypass vulnerability in Sustainsys Saml2, published on 21 Apr 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5268 and fix it if it is affected.\n\nWhat it is: CVE-2020-5268 is a medium-severity authentication bypass vulnerability in Sustainsys Saml2, published on 21 Apr 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5268 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Sustainsys.Saml2 (NuGet): affected all versions; fixed in 1.0.2\n- Sustainsys.Saml2 (NuGet): affected all versions; fixed in 1.0.2\n- Sustainsys.Saml2 (NuGet): affected from 2.0.0; fixed in 2.7.0\n- Sustainsys.Saml2 (NuGet): affected from 2.0.0; fixed in 2.7.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5268/ (Markdown: https://insights.sbomify.com/CVE-2020-5268/index.md)","id":"CVE-2020-5268","markdown":"https://insights.sbomify.com/CVE-2020-5268/index.md","name":"CVE-2020-5268","record":{"aliases":["GHSA-9475-xg6m-j7pw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"SAML2 authentication library","requires_auth":"low_privilege","summary":"Attackers can bypass authentication by using SAML2 tokens with non-bearer confirmation methods, allowing unauthorized session creation.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"saml2","vendor":"sustainsys"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"description":"In Saml2 Authentication Services for ASP.NET versions before 1.0.2, and between 2.0.0 and 2.6.0, there is a vulnerability in how tokens are validated in some cases. Saml2 tokens are usually used as bearer tokens - a caller that presents a token is assumed to be the subject of the token. There is also support in the Saml2 protocol for issuing tokens that is tied to a subject through other means, e.g. holder-of-key where possession of a private key must be proved. The Sustainsys.Saml2 library incorrectly treats all incoming tokens as bearer tokens, even though they have another subject confirmation method specified. This could be used by an attacker that could get access to Saml2 tokens with another subject confirmation method than bearer. The attacker could then use such a token to create a log in session. This vulnerability is patched in versions 1.0.2 and 2.7.0.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Subject Confirmation Method not validated in Saml2 Authentication Services for ASP.NET","id":"CVE-2020-5268","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"auth_bypass","year":"2020"},"n_packages":4,"n_references":4,"next":{"headline":"Reflected XSS on AdminFeatures page of PrestaShop","id":"CVE-2020-5269"},"packages":[{"ecosystem":"NuGet","fixed":["1.0.2"],"introduced":["0"],"last_affected":[],"package":"Sustainsys.Saml2","purl":null,"source":"GHSA-9475-xg6m-j7pw"},{"ecosystem":"NuGet","fixed":["1.0.2"],"introduced":["0"],"last_affected":[],"package":"Sustainsys.Saml2","purl":"pkg:nuget/Sustainsys.Saml2","source":"GHSA-9475-xg6m-j7pw"},{"ecosystem":"NuGet","fixed":["2.7.0"],"introduced":["2.0.0"],"last_affected":[],"package":"Sustainsys.Saml2","purl":null,"source":"GHSA-9475-xg6m-j7pw"},{"ecosystem":"NuGet","fixed":["2.7.0"],"introduced":["2.0.0"],"last_affected":[],"package":"Sustainsys.Saml2","purl":"pkg:nuget/Sustainsys.Saml2","source":"GHSA-9475-xg6m-j7pw"}],"prev":{"headline":"Possible XSS vulnerability in ActionView","id":"CVE-2020-5267"},"products":["Saml2"],"published":"2020-04-21","related":[{"cvss_score":8.2,"headline":"Missing Token Replay Detection","id":"CVE-2020-5261","kev_date_added":null,"published":"2020-03-25"},{"cvss_score":7.5,"headline":"Sustainsys.Saml2 Insufficient Identity Provider Issuer Validation","id":"CVE-2023-41890","kev_date_added":null,"published":"2023-09-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Sustainsys"]},"summary":"Attackers can bypass authentication by using SAML2 tokens with non-bearer confirmation methods, allowing unauthorized session creation.","url":"https://insights.sbomify.com/CVE-2020-5268/"}