Tainted flow: 'HEALTH_ENDPOINT' from os.environ.get (line 9, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
def health_check(): try: r = requests.get(HEALTH_ENDPOINT, timeout=5) return r.status_code == 200 except Exception: return False- Confidence
- 97% confidence
- Finding
- The request target is derived from the SEARXNG_BASE_URL environment variable without validation, so the script can be redirected away from localhost to an arbitrary host. In an agent context, this breaks the stated trust boundary of a local-only search service and enables SSRF-style outbound requests or exfiltration of user search queries to attacker-controlled infrastructure.
