Command Injection via Unsanitized Filename in NASA OCSSW Matchup Tools
A NASA scientific analysis tool passed an unsanitized filename directly into a system command execution sink, allowing arbitrary command execution. An attacker could run commands without authentication or user interaction.
Originally disclosed on Bugcrowd
- Accepted in 21 days
- Fixed in 25 days
- Disclosed after 31 days
Summary by KaranKurani
Discovered a P1 Remote Code Execution (RCE) vulnerability in a NASA scientific analysis tool used across NASA's cloud research infrastructure. Unsanitized input flowed directly into a system command execution sink, allowing arbitrary command execution with no authentication or user interaction required. Validated with a local proof-of-concept - no NASA systems were accessed. The vulnerability was accepted at the highest severity, remediated by NASA, and a Letter of Recognition was issued.
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
Likely the tool concatenated a user-supplied filename into a shell command string without sanitising or escaping it.
Impact
An attacker could execute arbitrary commands on the system running the tool, with no authentication or user interaction required.
What the attacker needed
Access to the tool; ability to supply a filename
The fix
The vulnerability was remediated by NASA.
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.
This is a command injection bug: a program builds a shell command using a filename that a user can control, without cleaning it first. If the filename contains special shell characters, the shell runs extra commands chosen by the attacker. Here that meant an attacker could run their own commands on the machine running the tool.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.