Skip to content
RCE Write-up Intermediate

Prayers at the foot of the Altar a.k.a. disclaimer

The Ruckus vRIoT web API concatenated user-supplied input into an OS command without sanitisation, and its authentication check could be bypassed with a hardcoded encrypted token. An unauthenticated attacker could chain these to run arbitrary commands as root.

adepts.of0x.cc

Published on adepts.of0x.cc

Dear Fellowlship, today’s homily is about two vulnerabilites (CVE-2020-26878 and CVE-2020-26879) found in Ruckus vRIoT, that can be chained together to get remote command execution as root. Please, take a seat and listen to the story.

The author, on adepts.of0x.cc

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 JSON fields were concatenated into an os.system() call without sanitisation, and the token check accepted a hardcoded encrypted value when the Authorization header lacked the word 'Token'.

Impact

An unauthenticated attacker could execute arbitrary commands as root on the vRIoT appliance.

What the attacker needed

Network access to the vRIoT web API; none (authentication bypassed)

How it was found

  1. Extract the OVA and mount the virtual disk to inspect the filesystem.
  2. Find the web service Python files and grep for os.system calls.
  3. Identify the /service/v1/createUser endpoint that concatenates username into a shell command.
  4. Confirm command injection using an HTTP canary with a valid token.
  5. Inspect the token_required function and find the N+1 authentication branch.
  6. Derive the encrypted token from the hardcoded key and salt, then use it to bypass authentication and exploit the injection.

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 web interface built a system command by gluing together text the user sent, so an attacker could add extra commands. Separately, the login check accepted a fixed secret value, letting anyone skip authentication. Together they gave full control of the device.

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.