Skip to content
RCE Write-up Intermediate

FastX in a Box: Using Docker to Find Where a Pre-Auth RCE Lived (and How It Died)

A pre-authentication remote code execution vulnerability existed in FastX builds 3.0.41 through 3.1.27 because the web terminal's Socket.IO namespace lacked authentication and honoured client-supplied commands. An attacker could execute arbitrary commands as the FastX service account without any credentials.

Justin Bollinger Follow

Published on trustedsec.com

This one started with a FastX 3.0.47 server on an engagement and a web terminal emulation that would run commands for anybody who asked. FastX is StarNet's remote desktop server, the kind of thing HPC shops and university labs stand up so people can get a Linux desktop through a browser.

Justin Bollinger, on trustedsec.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

The Socket.IO namespace for the terminal was not protected by authentication, and the gritty library allowed the client to override the server-configured command.

Impact

An unauthenticated attacker could execute arbitrary commands as the FastX service account, which owns the JWT signing key and configuration, though the container's group ID was an artifact and not root-adjacent.

What the attacker needed

Network access to the FastX web port; no credentials required

The fix

The vulnerability was fixed by accident when the terminal feature broke in 3.2.27; the proper fix is to add an authentication callback and stop honouring client-supplied commands.

How it was found

  1. Connect to the /gritty Socket.IO namespace.
  2. Send a terminal event with a command.
  3. Receive the command output.

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.

FastX is a remote desktop server that lets people access a Linux desktop through a web browser. The web terminal feature used a library called gritty to run commands, but it didn't check who was connecting and let the client choose which command to run. This meant anyone who could reach the server could run commands on it without logging in.

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.