Tainted flow: 'url' from os.environ.get (line 236, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
payload = {"q": query} try: response = requests.post(url, headers=headers, json=payload, timeout=30) response.raise_for_status() data = response.json()- Confidence
- 97% confidence
- Finding
- The request destination is derived from MINIMAX_API_HOST, an environment variable, and the code sends the Bearer API key plus user data to that host. If an attacker can influence the runtime environment, they can redirect traffic to an attacker-controlled endpoint and exfiltrate credentials, prompts, chat history, or image contents.
