Tainted flow: 'LOCAL_OPENAI_COMPLETIONS_URL' from os.getenv (line 28, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
# 直接透传请求体和 Authorization header 到后端 auth_header = request.headers.get("Authorization", "") try: r = requests.post( LOCAL_OPENAI_COMPLETIONS_URL, json=request.get_json(silent=True), headers={- Confidence
- 97% confidence
- Finding
- The app exposes a generic OpenAI-compatible proxy at /v1/chat/completions and forwards any caller-supplied Authorization header and request body to the internal agent service. This turns the frontend into a programmatic relay to privileged local services, expanding access beyond the declared UI role and potentially enabling abuse of backend capabilities, credential replay, and data exfiltration through the proxy.
