Tainted flow: 'image_url' from requests.post (line 87, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
# 下载图片 local_path = self.output_dir / f"scene_{scene_id}.jpg" img_response = requests.get(image_url, timeout=30) with open(local_path, "wb") as f: f.write(img_response.content)- Confidence
- 94% confidence
- Finding
- The script downloads a URL returned by a remote service without validating scheme, host, or content type. If the upstream service is compromised or malicious, this can be abused for SSRF-like outbound access to arbitrary URLs or to retrieve unexpected content that is later processed locally.
