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 target is taken from the TEAM_BASE_URL environment variable and used directly for an authenticated POST request. If that variable is altered, the script will send the bearer token, prompt text, and any base64-encoded local image/video data to an attacker-controlled endpoint, creating a clear exfiltration path.
