Tainted flow: 'video_url' from requests.get (line 125, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
# Download video video_path = self.output_dir / f"video_{int(time.time())}.mp4" video_data = requests.get(video_url).content with open(video_path, 'wb') as f: f.write(video_data)- Confidence
- 82% confidence
- Finding
- The code downloads a video from a URL taken from an API response without validating the destination host or scheme. If the upstream service or response is compromised, this could be abused for SSRF-like outbound access or retrieval of unexpected content into the local environment.
