Tainted flow: 'OLLAMA' from os.environ.get (line 37, credential/environment) → httpx.post (network output)
Critical
- Category
- Data Flow
- Content
def _ollama_generate(model: str, prompt: str, timeout: int = 120) -> str: r = httpx.post(f"{OLLAMA}/api/generate", json={"model": model, "prompt": prompt, "stream": False, "options": {"temperature": 0}}, timeout=timeout)- Confidence
- 96% confidence
- Finding
- The Ollama endpoint is taken directly from the OLLAMA_HOST environment variable and used as the destination for an HTTP POST containing draft text and extracted claims. In this skill, that payload may include unpublished or sensitive manuscript content, so an attacker who can influence the environment can silently redirect the data to an external server, creating an SSRF-style exfiltration path and violating the tool's 'runs locally' expectation.
