Tainted flow: 'req' from os.environ.get (line 35, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
) try: with urllib.request.urlopen(req, timeout=60) as response: result = json.loads(response.read().decode('utf-8')) if result.get('base_resp', {}).get('status_code') == 0: return result- Confidence
- 96% confidence
- Finding
- The request destination is derived from the MINIMAX_API_HOST environment variable and then used directly in urllib.request.urlopen. That allows a modified runtime environment to redirect requests, carrying the bearer token and user-derived prompt data to an attacker-controlled host, which is a real exfiltration and SSRF-style risk.
