Tainted flow: 'req' from os.getenv (line 88, 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 url = f"https://api.telegram.org/bot{self.token}/sendMessage" data = json.dumps({"chat_id": self.chat_id, "text": message, "parse_mode": "Markdown"}).encode() req = urllib.request.Request(url, data=data, headers={"Content-Type": "application/json"}) with urllib.request.urlopen(req, timeout=10): pass return True except Exception as e:
