| tiêu đề | youzan ZanProxy 5.1.0 Missing Authentication for Critical Function |
|---|
| Mô tả | ZanProxy 5.1.0 exposes an unauthenticated plugin installation endpoint, allowing a client that can reach the Manager service to install and execute JavaScript from a requester-controlled npm registry. The Manager listens on x.x.x.x:40001 by default; actual network reachability depends on firewall and network settings.
POST /plugins/add accepts the name and registry parameters. In src/core/manager/controller/plugin.ts, registry is passed into the npm configuration and name is passed to pluginManager.add. In src/core/services/plugin.ts, the bundled npm client installs the package, after which setPlugins calls refreshPlugins and requirePlugin loads the package entry module. There is no authentication on this management endpoint or validation that the registry and package are trusted. Any package integrity value supplied by an attacker-controlled registry does not establish that the package is trustworthy.
Reproduction in an isolated test environment:
1. Start ZanProxy 5.1.0 and run the complete proof of concept in section 3.2 of the linked report. It starts a test npm registry at 127.0.0.1:18923 with the package zanproxy-rce-poc; the package entry module writes a marker file when loaded.
2. The PoC sends an unauthenticated POST request to http://127.0.0.1:40001/plugins/add using application/x-www-form-urlencoded parameters name=zanproxy-rce-poc and registry=http://127.0.0.1:18923/.
3. The report says the endpoint returns HTTP 200 and the package creates <data directory>/plugins/RCE-DEMO.txt, containing a marker beginning with "RCE confirmed". The PoC removes the demo plugin afterward.
A remote attacker able to reach the Manager port can supply a registry they control and execute code with the privileges of the user running ZanProxy.
Project: https://github.com/youzan/zan-proxy
Full PoC and source locations: https://github.com/youzan/zan-proxy/issues/153 |
|---|
| Nguồn | ⚠️ https://github.com/youzan/zan-proxy/issues/153 |
|---|
| Người dùng | fifker (UID 101353) |
|---|
| Đệ trình | 05/11/2026 03:42 (cách đây 24 ngày) |
|---|
| Kiểm duyệt | 28/11/2026 20:18 (24 days later) |
|---|
| Trạng thái | được chấp nhận |
|---|
| Mục VulDB | 445130 [Youzan ZanProxy đến 5.1.0 Plugin Installation plugin.ts add registry xác thực yếu] |
|---|
| điểm | 20 |
|---|