Tainted flow: 'url' from os.environ.get (line 61, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
'model': 'image-01', 'prompt': prompt } resp = requests.post(url, headers=headers, json=payload, timeout=60) if resp.status_code != 200: return {"error": f"API error {resp.status_code}: {resp.text[:200]}"}- Confidence
- 93% confidence
- Finding
- The request target is derived from MINIMAX_BASE_URL, an environment-controlled value, and the code sends the Authorization bearer token to that URL. If an attacker can influence the environment, they can redirect requests and exfiltrate the API key and user prompts to an arbitrary server. In a skill context, environment variables are often trusted implicitly, which makes this more dangerous than a normal configurable endpoint.
