CVE-2023-37471
OpenAM vulnerable to user impersonation using SAMLv1.x SSO process
Description
Impact
OpenAM up to version 14.7.2 does not properly validate the signature of SAML responses received as part of the SAMLv1.x Single Sign-On process. Attackers can use this fact to impersonate any OpenAM user, including the administrator, by sending a specially crafted SAML response to the SAMLPOSTProfileServlet servlet.
Patches
This problem has been patched in OpenAM 14.7.3-SNAPSHOT and later
Workarounds
One should comment servlet SAMLPOSTProfileServlet in web.xml or disable SAML in OpenAM
<servlet>
<description>SAMLPOSTProfileServlet</description>
<servlet-name>SAMLPOSTProfileServlet</servlet-name>
<servlet-class>com.sun.identity.saml.servlet.SAMLPOSTProfileServlet</servlet-class>
</servlet>
...
<servlet-mapping>
<servlet-name>SAMLSOAPReceiver</servlet-name>
<url-pattern>/SAMLSOAPReceiver</url-pattern>
</servlet-mapping>
References
#624
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.openidentityplatform.openam » openam-federation-library | < 14.7.3 | 14.7.3 |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 114 |
| 2 hops | 82 |
Most used dependents
- org.openidentityplatform.openam » OpenFM7 usages
- org.openidentityplatform.openam » openam-jaxrpc-schema3 usages
- org.openidentityplatform.openam » openam-server-only3 usages
- org.openidentityplatform.openam » openam-cli-impl2 usages
- org.openidentityplatform.openam » openam-publish-sts2 usages
- org.openidentityplatform.openam » openam-rest-sts2 usages
- org.openidentityplatform.openam » openam-token-service-sts2 usages
- org.openidentityplatform.openig » openig-saml2 usages
- org.openidentityplatform.openam » openam-auth-saml21 usages
- org.openidentityplatform.openam » openam-console1 usages
- org.openidentityplatform.openam » openam-distribution-fedlet-unconfigured1 usages
- org.openidentityplatform.openam » openam-distribution-ssoadmintools1 usages
- org.openidentityplatform.openam » openam-fedlet-unconfigured-war1 usages
- org.openidentityplatform.openam » openam-oauth2-saml21 usages
- org.openidentityplatform.openam » openam-server1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-37471 | nvd.nist.gov |
| Package | OpenIdentityPlatform/OpenAM | github.com |
| Web | OpenIdentityPlatform/OpenAM advisory GHSA-4mh8-9wq6-rjxg | github.com |
| Web | OpenIdentityPlatform/OpenAM pull request #624 | github.com |
| Web | OpenIdentityPlatform/OpenAM commit 7c18543 | github.com |
