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
- 90% confidence
- Finding
- The request destination is taken from TEAM_BASE_URL without validation, and the script sends the Authorization bearer token plus user prompt and possibly base64-encoded local files to that endpoint. If an attacker can influence the environment variable or package configuration, this becomes credential and data exfiltration to an arbitrary remote server.
