Tainted flow: 'token' from os.environ.get (line 63, credential/environment) → requests.post (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 img_bytes = r.content filename = image_source.split("?")[0].split("/")[-1] or "image.jpg" files = {"photo": (filename, img_bytes, "image/jpeg")} resp = requests.post( f"{TELEGRAM_API_BASE}/bot{token}/sendPhoto", data=data, files=files,
