Tainted flow: 'req' from os.getenv (line 687, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
"""Download a file from *url* to *dest*, creating parent dirs as needed.""" dest.parent.mkdir(parents=True, exist_ok=True) req = urllib.request.Request(url, headers={"User-Agent": "qwencloud-ai/1.0"}) with urllib.request.urlopen(req, timeout=timeout) as resp: dest.write_bytes(resp.read()) return dest- Confidence
- 88% confidence
- Finding
- with urllib.request.urlopen(req, timeout=timeout) as resp:
