subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # Download using curl result = subprocess.run([ "curl", "-s", "--max-time", "60", "-o", tmp_path, url- Confidence
- 96% confidence
- Finding
- The code downloads a URL returned by the remote API without validating the scheme, host, or destination. Because curl is invoked on attacker-influenced output, a compromised or malicious upstream service could cause server-side request forgery, internal network probing, or unintended local/protocol access depending on curl-supported URL schemes.
