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
- 93% confidence
- Finding
- The request target is taken from the TEAM_BASE_URL environment variable and used directly for an authenticated POST request, causing the Bearer token and all prompt/media content to be sent to whatever host the runtime environment specifies. In an agent or plugin environment where environment variables may be influenced by deployment configuration, this becomes a credential and data exfiltration path rather than a harmless configurability feature.
