Tainted flow: 'req' from os.environ.get (line 75, 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 try: req = Request(url, data=data, headers=headers, method=method) with urlopen(req, timeout=60) as response: raw = response.read().decode() try: return json.loads(raw)
