Tainted flow: 'api_key' from os.environ.get (line 118, 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 def post(path: str, payload: dict, api_key: str) -> dict: response = requests.post( f"{BASE_URL}{path}", headers={"x-api-key": api_key, "Content-Type": "application/json"}, json=payload,
