Tainted flow: 'download_url' from requests.get (line 114, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
download_url = result["file"]["download_url"] print(f"正在下载视频 (约 3-5MB)...\n") video_resp = requests.get(download_url, timeout=180) with open(save_path, 'wb') as f: f.write(video_resp.content)- Confidence
- 89% confidence
- Finding
- The code blindly trusts a download_url returned by a remote API and performs a second requests.get to that URL without validating the scheme, host, or redirect behavior. If the upstream service is compromised, misconfigured, or attacker-controlled, this can turn the client into a server-side request gadget to fetch unexpected resources or download maliciously large content.
