Tainted flow: 'url' from os.environ.get (line 106, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python if headers: request_headers.update(headers) try: with urllib.request.urlopen(urllib.request.Request(url, headers=request_headers), timeout=30) as response: body = response.read() return json.loads(body.decode("utf-8")) if "json" in response.headers.get("Content-Type", "") else body.decode("utf-8", errors="replace") except urllib.error.HTTPError as error:
