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 script sends an Authorization bearer token plus user prompt and optional base64-encoded local media to a network endpoint derived from TEAM_BASE_URL without validating or restricting the destination. If that environment variable is changed to an attacker-controlled host, the skill will exfiltrate credentials and potentially sensitive local file contents.
