Unauthenticated RCE on hydrology.czdt.smce.nasa.gov via the CZDT flood agent's execute_custom_code tool
An unauthenticated endpoint on a NASA hydrology service passed attacker-controlled input to a tool that executed custom Python code in the backend. An attacker could run arbitrary Python in the application context without authentication.
Originally disclosed on Bugcrowd
- Accepted in 2 days
- Fixed in 10 days
- Disclosed after 18 days
Summary by infernosalex
An unauthenticated NASA Hydrology Copilot endpoint routed attacker-controlled input to an execute_custom_code tool, resulting in Python execution in the backend application context. Execution was demonstrated with fresh nonce digests and harmless hostname and working-directory checks; testing stopped after sufficient proof without modifying files, establishing persistence, or moving laterally.
Bugcrowd validated the submission as P1 Remote Code Execution, NASA fixed the vulnerability, and NASA issued a Letter of Recognition. I appreciate the coordinated handling by both teams.
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 endpoint exposed a code-execution tool to unauthenticated callers without validating or restricting the input that reached it.
Impact
An unauthenticated attacker could execute arbitrary Python in the backend application context; the researcher demonstrated only harmless checks and did not modify files, establish persistence, or move laterally.
What the attacker needed
No authentication required; network access to the endpoint
The fix
The vulnerability was fixed by NASA after Bugcrowd validated the report.
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.
A web service had a feature that could run Python code on its server. The service did not check who was asking, so anyone on the internet could make it run code. That is dangerous because the attacker can then do whatever the server's own program is allowed to do.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.