Tainted flow: 'base' from os.environ.get (line 35, 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 health(): base = validate_base(os.environ.get('MARKET_URL', 'http://127.0.0.1:8787')) with build_opener(NoRedirect).open(Request(base + '/health'), timeout=30) as response: return json.load(response)
