Tainted flow: 'payload' from os.getenv (line 25, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
} try: response = requests.post(url, json=payload, timeout=30) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e:- Confidence
- 99% confidence
- Finding
- The script embeds a hardcoded fallback Tavily API key via os.getenv(..., <secret>) and then transmits it in an outbound request body to a third-party service. This exposes a credential to anyone with code access and can enable unauthorized API use, billing abuse, and possible revocation of the legitimate service account; in this fact-checking skill context, automatic external transmission also increases privacy risk because user queries are sent off-platform.
