Tainted flow: 'req' from os.environ.get (line 1459, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
headers = {"Authorization": "Bearer " + require_key(), "User-Agent": user_agent()} try: req = urllib.request.Request(url, headers=headers, method="GET") with urllib.request.urlopen(req, timeout=TIMEOUT_SEC) as resp: note_release(resp.headers) ctype = resp.headers.get("Content-Type", "") body = resp.read()- Confidence
- 70% confidence
- Finding
- The export/download path writes arbitrary response bodies to a caller-supplied local path via --out, with no restriction on destination, symlink handling, or overwrite policy. In an agent context, a malicious or confused instruction could cause sensitive local files to be overwritten or planted with attacker-controlled content fetched from the remote service.
