Skip to content
RCE Disclosed report Intermediate

Unauthenticated Remote Code Execution (RCE) via Trick Variable Server

The Trick variable server accepted and executed arbitrary Python code from any connected client without authentication or sandboxing. An attacker with network access could send a single TCP message containing a Python payload and gain full system compromise with the privileges of the simulation process.

hasanka Follow

Originally disclosed on Bugcrowd

Critical View original
  • Accepted in 5 days
  • Fixed in 55 days
  • Disclosed after 6 months

Summary by hasanka

A critical unauthenticated Remote Code Execution vulnerability was identified in the NASA Trick Simulation Environment’s “variable server” — a TCP service enabled by default on all network interfaces that accepted and executed arbitrary Python code from any connected client without authentication or sandboxing. Exploitation required only network access to the variable server port (discoverable via multicast or port scanning) and a single TCP message containing a Python payload, resulting in full system compromise with the privileges of the simulation process. The vulnerability was reported through the NASA Vulnerability Disclosure Program on Bugcrowd, triaged as P1, and resolved by the NASA team with a fix to the Trick codebase. This vulnerability was discovered and reported by Hasanka Amarasinghe through the NASA Vulnerability Disclosure Program on Bugcrowd.

The original report as published on Bugcrowd, by hasanka. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

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

How it worked

Root cause

The variable server was enabled by default on all network interfaces and executed arbitrary Python code from clients without authentication or sandboxing.

Impact

An attacker could achieve full system compromise with the privileges of the simulation process.

What the attacker needed

Network access to the variable server port

The fix

The NASA team fixed the Trick codebase.

How it was found

  1. Find the variable server port via multicast or port scanning.
  2. Connect to the variable server over TCP.
  3. Send a single TCP message containing a Python payload.
  4. The server executes the payload with the privileges of the simulation process.

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 report has not been written yet. The Original tab links to the source.

The software runs a network service that lets clients send commands. It did not check who was connecting or limit what commands could do, so anyone who could reach the port could send code that the server would run. This gave the attacker the same power as the user running the simulation.

What is RCE?

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

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

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.