Lucene search

K
githubGitHub Advisory DatabaseGHSA-7726-43HG-M23V
HistoryJul 25, 2024 - 2:15 p.m.

OpenAM FreeMarker template injection

2024-07-2514:15:32
CWE-94
GitHub Advisory Database
github.com
6
openam
access management
vulnerability
template injection
realmoauth2providersettings
freemarker
user input
security
fix
version 15.0.4

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

7.3

Confidence

Low

EPSS

0.001

Percentile

24.8%

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 PingOne Advanced Identity Cloud login page,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 configurations

Vulners
Node
org.openidentityplatform.openamopenam-oauth2Range15.0.3
VendorProductVersionCPE
org.openidentityplatform.openamopenam-oauth2*cpe:2.3:a:org.openidentityplatform.openam:openam-oauth2:*:*:*:*:*:*:*:*

CVSS3

8.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

AI Score

7.3

Confidence

Low

EPSS

0.001

Percentile

24.8%

Related for GHSA-7726-43HG-M23V