| Title | D-Link D-Link R95 A1 Router Operating System 1.04.04Beta OS command injection |
|---|
| Description | The `SetQoSHostInfo` SOAP handler extracts `Hostname`, inserts it into a single-quoted UCI shell command with `sprintf`, and calls `system()` without escaping the value. The vulnerable command fragment is:
```text
uci ... set qosinfo.@qosinfo[-1].Hostname='%s' > /dev/null
```
A hostname such as `x';id;#` closes the single-quoted value, executes `id`, and comments out the remaining quote and redirection. The payload fits within the 31-byte hostname limit.
The action is reachable without authentication because DHMAPI exempts an outer `API-ACTION: GetDeviceSettings` request from `API-CONTENT` validation while independently dispatching the inner XML action. A `SOAPAction` header satisfies an earlier request gate; no cookie or `API-CONTENT` value is required. |
|---|
| Source | ⚠️ https://github.com/jiangnandiyishenqin/D-link-R95A1 |
|---|
| User | Lumina (UID 101162) |
|---|
| Submission | 11/04/2026 11:49 (24 days ago) |
|---|
| Moderation | 11/28/2026 08:47 (24 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 445094 [D-Link R95 1.04B04Beta DHMAPI SOAP Interface /bin/ssi SetQoSHostInfo Hostname os command injection] |
|---|
| Points | 20 |
|---|