Tainted flow: 'request' from os.environ.get (line 230, 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_id = None try: with urllib.request.build_opener(NoPostRedirect()).open(request, timeout=args.timeout) as response: request_id = safe_id(response.headers.get('x-request-id') or response.headers.get('request-id'), key) result = json.loads(bounded_read(response, MAX_RESPONSE_BYTES)) if not isinstance(result, dict):
