Template Injection Affecting org.openidentityplatform.openam:openam-oauth2 package, versions [,15.0.4)
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.06% (26th
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 ID SNYK-JAVA-ORGOPENIDENTITYPLATFORMOPENAM-7558672
- published 25 Jul 2024
- disclosed 24 Jul 2024
- credit AfterSnows
Introduced: 24 Jul 2024
CVE-2024-41667 Open this link in a new tabHow to fix?
Upgrade org.openidentityplatform.openam:openam-oauth2
to version 15.0.4 or higher.
Overview
Affected versions of this package are vulnerable to Template Injection in the getCustomLoginUrlTemplate()
function. An attacker can inject templates containing executable elements into a custom URL on a malicious oauth2 proxy, and convince a user to visit it. To exploit this vulnerability the attacker must be in possession of a valid iPlanetDirectoryPro
cookie value, and brute force the max_age
parameter in a request.
PoC
<#assign value="freemarker.template.utility.Execute"?new()>${value("calc")}