Tainted flow: 'headers' from os.environ.get (line 389, 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 print(f" Size : {args.size}") print(f" Quantity: {args.quantity}") resp = requests.post(url, headers=headers, json=payload, timeout=300) result = resp.json() if "code" in result:
