Tainted flow: 'port' from os.environ.get (line 562, credential/environment) → urllib.request.build_opener.open (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 local_json(port, path): opener = urllib.request.build_opener(urllib.request.ProxyHandler({})) with opener.open(f'<redacted-url>}', timeout=2) as response: return json.load(response)
