Tainted flow: 'image_url' from requests.post (line 238, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
output_path.parent.mkdir(parents=True, exist_ok=True) print("Downloading image...") img_response = requests.get(image_url, timeout=30, verify=not args.no_verify_ssl) img_response.raise_for_status() # Save the image- Confidence
- 96% confidence
- Finding
- The script downloads from `image_url` returned by the remote API without validating the scheme, host, or destination. If the upstream service or its response is compromised, this creates an SSRF-style second request primitive that can be abused to reach attacker-chosen endpoints, including internal network locations, and then write the response to disk.
