| 标题 | D-Link D-Link DMS-3130 / DXS-3130 Series Switch Operating System D-Link DMS/DXS-3130 1.20.P006 OS command |
|---|
| 描述 | Authenticated OS command injection in `369_copyfile.lua` through the `http_src_file` parameter.
V1 — `369_copyfile.lua` / `http_src_file`
Source-to-sink flow in `application/webroot/lua/DataStore/369_copyfile.lua`:
1. Line 509 obtains POST data through `get_user_input()`; lines 540-549 dispatch a POST containing `http_src_file` to `http_file_transfer_download()`.
2. Line 83 assigns `fpost.http_src_file` to `src_file`.
3. Lines 110-147 select the file-transfer operation and prepare the HTTP transfer. `hiddest_filetype=1` selects the firmware-image branch used by the PoC.
4. Line 150 applies `strip_filename(src_file)` only to derive `web_temp_file`.
5. Lines 154-156 construct and execute `mv %s %s%s` with the original, unquoted `src_file`. |
|---|
| 来源 | ⚠️ https://github.com/jiangnandiyishenqin/D-link-DMS_DXS-3130 |
|---|
| 用户 | Luminaa (UID 102745) |
|---|
| 提交 | 2026-11-05 11時32分 (24 日前) |
|---|
| 管理 | 2026-11-29 12時51分 (24 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 445159 [D-Link DMS-3130/DXS-3130 1.20.P006 369_copyfile.lua http_src_file 权限提升] |
|---|
| 积分 | 20 |
|---|