Tainted flow: 'url' from os.environ.get (line 235, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
except RuntimeError as e: return {"_error": str(e)} try: r = requests.post(url, json=body or {}, headers=headers, timeout=timeout) return r.json() except Exception as e: body_text = ""- Confidence
- 93% confidence
- Finding
- The POST destination is derived from environment-controlled base URLs via _login_base() and _agent_user_base(), then used with sensitive request bodies and authorization headers. In an agent/runtime environment where env vars can be influenced, this becomes an SSRF/exfiltration primitive that can leak SMS login data, access tokens, refresh tokens, and issued API keys to an attacker-controlled endpoint.
