Tainted flow: 'api_key' from os.environ.get (line 46, 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 if back_image: with open(back_image, "rb") as back_f: files["back_image"] = _file_part(back_image, back_f) response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files, data=data, timeout=120) else: response = requests.post(API_URL, headers={"x-api-key": api_key}, files=files,
