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
- 94% confidence
- Finding
- The request destination is taken from TEAM_BASE_URL without validation, and the Authorization bearer token plus user prompt/media are sent to that endpoint. If an attacker can influence the environment variable or deployment configuration, they can redirect requests to an attacker-controlled server and exfiltrate API credentials and potentially sensitive uploaded content.
