| عنوان | youzan ZanProxy 5.1.0 Server-Side Request Forgery (CWE-918) |
|---|
| الوصف | ZanProxy 5.1.0 provides unauthenticated remote-import operations on its Manager service, which defaults to x.x.x.x:40001. POST /rule/import and POST /host/import both accept a URL in the JSON body field url. The controllers pass this value to their respective services, which call request.get without restricting the destination to approved hosts or excluding loopback and private addresses.
The rule-import path in src/core/services/rule.ts parses the fetched JSON as a rule file, saves it and returns the resulting rule object. The host-import path in src/core/services/host.ts saves a host configuration, which can subsequently be retrieved through GET /host/get?name=<name>. Read-back depends on the target response matching the expected JSON structure; arbitrary response bodies are not guaranteed to be returned.
The public PoC starts a test HTTP service on 127.0.0.1:18924 and supplies its URL to both import endpoints. It reports that the local service received the requests and that compatible test data was returned directly or read back from the saved host configuration. A reachable client can induce requests to services accessible from the ZanProxy host and infer information from the results. |
|---|
| المصدر | ⚠️ https://github.com/youzan/zan-proxy/issues/156 |
|---|
| المستخدم | fifker (UID 101353) |
|---|
| ارسال | 12/11/2026 02:24 PM (22 أيام منذ) |
|---|
| الاعتدال | 04/12/2026 01:27 PM (22 days later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 449731 [Youzan ZanProxy حتى 5.1.0 Manager Service rule.ts fetchRemoteRuleFile url تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|