Skip to content
RCE Write-up Advanced

Expand file tree

IBM Data Risk Manager contained an authentication bypass that let an unauthenticated attacker associate an arbitrary session ID with a valid username and obtain a new password, plus a command injection via nmap script upload and an insecure default password. Chaining these allowed unauthenticated remote code execution as root.

github.com

Published on github.com

History

The author, on github.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 endpoint trusted user-supplied sessionId and userName parameters without verifying the caller, and the nmap scan feature passed user-controlled file paths to a script option without validation.

What the attacker needed

Network access to the IDRM appliance; no authentication needed for bypass; authentication needed for command injection

The fix

IBM should fix the authentication bypass by not trusting user-supplied session IDs and should validate or restrict the nmap script option; the text notes IBM claims fixes in version 2.0.6.2 or higher but the author did not confirm this.

How it was found

  1. Send a GET request to the SAML idpSelection endpoint with a chosen session ID and the admin username.
  2. Send a POST to the user login endpoint with the same username and session ID to receive a new random password.
  3. Use that password to log in and obtain an administrative bearer token.
  4. Upload a file containing commands via the patch upload endpoint.
  5. Send a POST to the nmap scan endpoint with an ipAddress parameter that includes the --script option pointing to the uploaded file.
  6. The nmap command executes the uploaded script, running the attacker's commands.

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.

The software had a flaw where anyone could pretend to be an administrator by sending a special request that linked a made-up session ID to the admin username, and the system then handed out a new password. Separately, an authenticated user could upload a file and trick a network scanning tool into running it as a command. Together, these let an outsider take full control of 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.