Tainted flow: 'request' from os.getenv (line 538, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
request = urllib.request.Request(url, data=data, headers=headers, method="POST") try: with urllib.request.urlopen(request, timeout=timeout) as response: raw = response.read() text = raw.decode(response.headers.get_content_charset() or "utf-8", errors="replace") return 200 <= response.status < 300, text- Confidence
- 95% confidence
- Finding
- The script builds a network request using a caller-controlled URL from --url and includes the Authorization bearer token in the request headers. Because urlopen() will send that request to the supplied destination, an attacker can redirect the token and all query/location data to an arbitrary server, causing credential exfiltration and data leakage.
