Tainted flow: 'request' from os.environ.get (line 29, 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 request = urllib.request.Request(API + path, data=data, method=method, headers={"User-Agent": USER_AGENT, "Content-Type": "application/json"}) try: with urllib.request.urlopen(request, timeout=30) as response: return response.status, json.loads(response.read().decode("utf-8")) except urllib.error.HTTPError as error: text = error.read().decode("utf-8", "replace")
