Tainted flow: 'req' from os.environ.get (line 27, 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 # Add a standard user agent just in case req.add_header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)") with urllib.request.urlopen(req) as response: data = json.loads(response.read().decode('utf-8')) if "error" in data:
