Tainted flow: 'download_url' from requests.get (line 85, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
print(f"📥 正在下载音乐至 {output_path}...") with open(output_path, "wb") as f: vr = requests.get(download_url, timeout=120) vr.raise_for_status() f.write(vr.content) print(f"✅ 音乐已保存: {output_path}")- Confidence
- 90% confidence
- Finding
- The script fetches a second URL taken directly from a prior network response and downloads its content without validating the hostname, scheme, or expected file characteristics. If the upstream API or response path is compromised, this creates an SSRF-style arbitrary outbound request/download primitive and can also lead to unsafe large-file downloads or retrieval from unexpected infrastructure.
