Tainted flow: 'endpoint' from os.getenv (line 39, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
print(f"Invoking model: {args.model} ...") try: response = requests.post(endpoint, headers=headers, json=payload) response.raise_for_status() result = response.json()- Confidence
- 95% confidence
- Finding
- The request destination is derived from TEAM_BASE_URL, an environment variable, and the code sends the Authorization bearer token plus user-supplied prompt/media to that URL without validation or allowlisting. In an agent/runtime context, environment configuration is often externally controlled, so this enables exfiltration of API credentials and sensitive image/video content to an attacker-controlled server.
