CVE-2024-41667
July 24, 2024
OpenAM is an open access management solution. In versions 15.0.3 and prior, the "getCustomLoginUrlTemplate" method in RealmOAuth2ProviderSettings.java is vulnerable to template injection due to its usage of user input. Although the developer intended to implement a custom URL for handling login to override the default OpenAM login, they did not restrict the "CustomLoginUrlTemplate", allowing it to be set freely. Commit fcb8432aa77d5b2e147624fe954cb150c568e0b8 introduces "TemplateClassResolver.SAFER_RESOLVER" to disable the resolution of commonly exploited classes in FreeMarker template injection. As of time of publication, this fix is expected to be part of version 15.0.4.
Affected Packages
org.openidentityplatform.openam:openam-oauth2 (JAVA):
Affected version(s) >=14.5.2 <15.0.4Fix Suggestion:
Update to version 15.0.4Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Control of Generation of Code ('Code Injection')
EPSS
Base Score:
69.86