Tainted flow: 'req' from os.environ.get (line 10, 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 def get(path): req = urllib.request.Request(BASE + path, headers={'Authorization': 'Bearer ' + (KEY or '')}) with urllib.request.urlopen(req, timeout=20) as r: return json.loads(r.read().decode())
