Remote Code Execution (RCE) via Insecure Deserialization in NASA GSFC HPLC Precision Analysis
The application deserialised untrusted cached report files with Python's pickle module, allowing an attacker to execute arbitrary commands. The issue was resolved by removing pickle and switching to a text-based format.
- Accepted in 33 days
- Fixed in 34 days
- Disclosed after 55 days
Summary by kernely
A Critical Remote Code Execution (RCE) vulnerability was identified in the NASA GSFC 'hplc-precision-analysis' repository due to insecure deserialization of untrusted data using the Python 'pickle' module (CWE-502).
The vulnerability resided in how the application handled cached report files, which could be weaponized to execute arbitrary commands in the analysis environment. I collaborated with the NASA security team to demonstrate the impact and suggest remediation. The issue was successfully resolved by removing the insecure 'pickle' functionality and migrating to a secure, text-based data format (.xlsx), ensuring both data integrity and system security.
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
Impact
An attacker could execute arbitrary commands in the analysis environment, though the text does not describe the exact conditions needed.
What the attacker needed
Ability to supply or influence a cached report file
The fix
The insecure pickle functionality was removed and replaced with a secure text-based format (.xlsx).
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.
Pickle is a way for Python programs to save and load objects. Loading a pickle file can run code hidden inside it, so if a program loads a file an attacker can control, the attacker can run their own commands on the server. Here the program loaded cached report files this way.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.