Tainted flow: 'api_url' from os.environ.get (line 35, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
if semantic: payload["semantic_analysis"] = "fast" response = requests.post( f"{api_url}/verify/text", json=payload, headers=headers,- Confidence
- 95% confidence
- Finding
- The API destination is taken from the TRUSTAGENTS_API_URL environment variable and used directly in requests.post, so anyone who can influence the process environment can redirect scanned content to an arbitrary server. In this CLI, the transmitted payload is the user-supplied text being scanned, which may contain sensitive prompts or agent messages, making this a real exfiltration and SSRF-style risk in shared or automated environments.
