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
- 95% confidence
- Finding
- The /v1/chat/completions proxy blindly forwards any Authorization header and request body from the browser to the backend agent without additional validation, CSRF protection, or origin restrictions. If the frontend is exposed beyond a trusted boundary, this creates a credential-forwarding proxy that can be abused to invoke privileged backend actions and relay sensitive prompt/file content.
