Lucene search

K
vulnrichmentGitHub_MVULNRICHMENT:CVE-2024-41667
HistoryJul 24, 2024 - 5:29 p.m.

CVE-2024-41667 OpenAM FreeMarker template injection

2024-07-2417:29:58
CWE-94
GitHub_M
github.com
4
openam
freemarker
template injection
realmoauth2providersettings
version 15.0.3
commit fcb8432aa77d5b2e147624fe954cb150c568e0b8

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

9

Confidence

High

EPSS

0.001

Percentile

24.8%

SSVC

Exploitation

none

Automatable

no

Technical Impact

total

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.

ADP Affected

[
  {
    "cpes": [
      "cpe:2.3:a:openidentityplatform:openam:*:*:*:*:*:*:*:*"
    ],
    "vendor": "openidentityplatform",
    "product": "openam",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "15.0.4",
        "versionType": "custom"
      }
    ],
    "defaultStatus": "unknown"
  }
]

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

9

Confidence

High

EPSS

0.001

Percentile

24.8%

SSVC

Exploitation

none

Automatable

no

Technical Impact

total

Related for VULNRICHMENT:CVE-2024-41667