Tainted flow: 'req' from requests.get (line 60, network input) → urllib.request.urlopen (network output)
Medium
- Category
- Data Flow
- Content
output = f"/tmp/douyin_{video_id}.mp4" req = urllib.request.Request(video_url, headers={'User-Agent': HEADERS['User-Agent']}) with urllib.request.urlopen(req) as resp, open(output, 'wb') as f: while True: chunk = resp.read(8192) if not chunk:- Confidence
- 92% confidence
- Finding
- The script fetches a share page, extracts a playback URL from untrusted remote content, and then performs a second network request to that derived URL without validating the destination host, scheme, or content type. This creates a server-side request/redirect risk and allows unbounded downloading of attacker-influenced content, which is more concerning in an agent skill that auto-processes user-supplied links.
