Tainted flow: 'request' from os.environ.get (line 58, 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(body): request = urllib.request.Request(ENDPOINT, data=body, headers=HEADERS, method="POST") try: with urllib.request.urlopen(request, timeout=90) as response: text = response.read().decode("utf-8") streamed = "text/event-stream" in response.headers.get("Content-Type", "") except urllib.error.HTTPError as error:
