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
- 91% confidence
- Finding
- The request destination is taken from TEAM_BASE_URL without validation, and the script sends the Bearer API key plus prompt and possibly base64-encoded local media to that endpoint. If an attacker can influence the environment variable, they can redirect requests to an attacker-controlled server and exfiltrate credentials and user content.
