Tainted flow: 'request' from os.environ.get (line 69, 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 url = ORIGINS[args.environment] + API_PATH + args.command + '?' + urlencode(query) request = Request(url, headers={'Authorization': f'Bearer {key}', 'Accept': 'application/json'}) try: with build_opener(NoRedirect()).open(request, timeout=90) as response: data = json.load(response) except HTTPError as exc: # Decode user-facing structured errors from the service. Avoid printing a proxy error page.
