Tainted flow: 'req' from os.environ.get (line 19, 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 headers = {"Content-Type": "application/json", "X-Proxy-Token": PROXY_TOKEN} req = urllib.request.Request(PROXY_URL, data=body, headers=headers, method="POST") try: with urllib.request.urlopen(req, timeout=PROXY_TIMEOUT) as resp: result = json.loads(resp.read().decode("utf-8")) return result if result is not None else {} except urllib.error.HTTPError as e:
