Tainted flow: 'req' from os.environ.get (line 104, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
data=data, headers={"Content-Type": "application/json"}, ) with urllib.request.urlopen(req, timeout=30) as resp: return json.loads(resp.read().decode())- Confidence
- 93% confidence
- Finding
- The code builds outbound HTTP requests using COMFYUI_URL from an environment variable with no validation or localhost restriction. If an attacker can influence the environment, the tool will send the full workflow and user prompt to an arbitrary host and interact with that host as if it were trusted ComfyUI, creating SSRF-style behavior and prompt/data exfiltration risk.
