Skip to content
RCE Write-up Intermediate

Expand file tree

Micro Focus Operations Bridge Reporter builds shell command strings from user-supplied login, logout and password fields and runs them through bash, so an unauthenticated attacker can execute commands as root on Linux. The advisory also documents SQL injection, hard-coded credentials, an unauthenticated JMX endpoint and weak folder permissions.

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

User-controlled input is concatenated into a command string that is executed via bash -c, with no escaping or validation.

Impact

An unauthenticated attacker could run arbitrary commands as root on Linux; on Windows the arguments are tokenised so the injection does not work there.

What the attacker needed

Network access to the OBR web console; Linux host (Windows not affected)

How it was found

  1. Send a login request to the logon endpoint with a username containing shell metacharacters.
  2. The server builds a BOAdapter command including that username and runs it through bash.
  3. The injected command executes as root even though the login response is a failure.

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 login page takes the username you type and pastes it into a command that the server runs in a shell. Because the shell treats certain characters as instructions, an attacker can add their own commands and the server runs them with full administrator rights, without needing an account.

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.