Tainted flow: 'req' from os.environ.get (line 422, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
url = _GATEWAY + path data = json.dumps(body, ensure_ascii=False).encode("utf-8") req = _Request(url, data=data, headers=headers, method="POST") with _urlopen(req, timeout=120) as resp: return json.loads(resp.read().decode("utf-8")) # 1. Create task- Confidence
- 95% confidence
- Finding
- The LLM backend builds its destination from LINKFOX_TOOL_GATEWAY and then sends prompts plus Authorization credentials from environment variables to that endpoint. If an attacker can influence the environment, they can redirect requests and exfiltrate API keys, product context, and mined keywords to an arbitrary server.
