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 POST target is derived from the TEAM_BASE_URL environment variable and the request includes the Bearer API key plus user-supplied prompt and optional base64-encoded local image/video data. If an attacker can influence that environment variable, the script will exfiltrate credentials and sensitive content to an arbitrary server, which is especially risky because the default behavior already transmits data off-host to a remote API.
