Improper Authentication Affecting github.com/crewjam/saml package, versions <0.4.9


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.16% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCREWJAMSAML-3150397
  • published29 Nov 2022
  • disclosed29 Nov 2022
  • creditFelix Wilhelm

Introduced: 29 Nov 2022

CVE-2022-41912  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade github.com/crewjam/saml to version 0.4.9 or higher.

Overview

github.com/crewjam/saml is a package that contains a partial implementation of the SAML standard in golang. SAML is a standard for identity federation, i.e. either allowing a third party to authenticate your users or allowing third parties to rely on us to authenticate their users.

Affected versions of this package are vulnerable to Improper Authentication when processing SAML responses containing multiple Assertion elements, resulting in a signature bypass. This allows an unauthenticated attacker in possession of a single valid signed SAML assertion to embed arbitrary data in a second, unsigned SAML assertion, which is then passed on to the application.

Note:

This vulnerability will affect a subsequent component (which is protected by the authentication mechanism), however, the attacker has no control over the information they can access or modify.

CVSS Scores

version 3.1