| Title | D-link D-Link DMS-3130 / DXS-3130 Series Switch Operating System D-Link DMS/DXS-3130 1.20.P006 OS command |
|---|
| Description | Authenticated OS command injection in `898_ssl_global.lua` through the `file_name` parameter.
Source-to-sink flow in `application/webroot/lua/DataStore/898_ssl_global.lua`:
1. Lines 63 and 158-164 obtain POST input and dispatch a request containing `file_name` after the read/write privilege check.
2. Line 69 assigns `form_post.file_name` to `src_file`.
3. Line 96 calls `usmDbHttpTransferFilePrepare`; line 99 obtains the SSL temporary path.
4. Line 100 derives the destination basename, but lines 104-106 interpolate and execute the original `src_file` without quoting.
`radisCertFile=1` selects the certificate-import branch. The same handler also supports private-key import, but the supplied PoC uses the certificate branch.
|
|---|
| Source | ⚠️ https://github.com/jiangnandiyishenqin/D-link-DMS_DXS-3130 |
|---|
| User | Luminaa (UID 102745) |
|---|
| Submission | 11/05/2026 11:34 (24 days ago) |
|---|
| Moderation | 11/29/2026 12:51 (24 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 445160 [D-Link DMS-3130/DXS-3130 1.20.P006 SSL Certificate Import Endpoint 898_ssl_global.lua file_name os command injection] |
|---|
| Points | 20 |
|---|