Skip to content
RCE Write-up Advanced

Exploiting Other Remote Protocols in IBM WebSphere

The authentication check in the wsadmin SOAP endpoint failed to reject an unauthenticated Subject when token-based authentication was used, allowing an attacker to reach deserialisation code and execute arbitrary code. A separate file-upload processor in WebSphere Extended Deployment had a directory traversal flaw, enabling arbitrary file upload to any location.

zerodayinitiative.com

Published on zerodayinitiative.com

In a recent blog post, we disclosed how a vulnerability in the Internet InterORB Protocol (IIOP) protocol of IBM WebSphere can result in remote code execution. In this blog post, we explore how two additional protocols supported by this application server can also be leveraged to achieve the same result.

The author, on zerodayinitiative.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the authentication method checked only for a null return value instead of detecting the special 'Unauthenticated' Subject, so a failed token validation was treated as success.

Impact

An attacker could execute arbitrary code on the server, though IBM Java SDK mitigations make finding a working gadget non-trivial; the second bug allowed arbitrary file upload to any location.

What the attacker needed

Network access to the wsadmin SOAP endpoint; a valid gadget for the Java SDK mitigations

The fix

IBM fixed the SOAP issue by checking that the returned Subject is authenticated, and fixed the deployment issue by deprecating the file upload functionality.

How it was found

  1. Send a SOAP request to the wsadmin endpoint that selects token-based authentication and supplies an invalid token.
  2. Because the authentication check is flawed, the request proceeds to the deserialisation code path.
  3. Embed a serialised object in the request that uses a gadget to bypass the Java SDK mitigations and achieve code 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 write-up has not been written yet. The Original tab links to the source.

This is about two bugs in IBM WebSphere, a large Java application server. In the first, a login check was written incorrectly: when a bad token was supplied, the code returned a special 'not logged in' marker, but the check only looked for an empty value, so the marker was treated as a successful login. That let an attacker send a crafted request that reached code which rebuilds Java objects from data, and that can lead to running their own code. The second bug let an attacker upload files to any folder on the server.

What is RCE?

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

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.