Tainted flow: 'req' from os.environ.get (line 23, 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 _post(path, body): data = json.dumps(body).encode() req = urllib.request.Request(f"{BASE_URL}{path}", data=data, headers=HEADERS) with urllib.request.urlopen(req, timeout=300) as resp: return json.loads(resp.read()) def _get(path):
