Tainted flow: 'request' from os.environ.get (line 423, 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 request = Request(url, data=raw_payload, headers=headers, method="POST") try: # No environment proxy or redirect may silently change the credential destination. with build_opener(ProxyHandler({}), NoCredentialRedirect()).open( request, timeout=timeout or self.timeout) as response: status = int(response.status) body = response.read()
