Tainted flow: 'OLLAMA_BASE' from os.environ.get (line 34, credential/environment) → requests.get (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python def check_ollama(): """检查 Ollama 是否在线(带超时与异常分类)""" try: resp = requests.get(f"{OLLAMA_BASE}/api/tags", timeout=OLLAMA_TIMEOUT) if resp.status_code != 200: print(f"[!] Ollama 返回异常状态码: {resp.status_code}") return False
