| 标题 | D-Link D-Link DIR-X1860Z Rev A Router Operating System D-Link DIR-X1860Z Rev A 1.0.7.260821.161908 Stack-based buffer overflow leading to control-flow hijacking an |
|---|
| 描述 | The anonymous `routerd.get_rand_key` method accepts an arbitrarily long hexadecimal `key_index` string. `routerd` supplies a 32-byte stack buffer to `liblubus.so!hexString2bin`, but neither the caller nor the conversion routine enforces the destination capacity. The conversion loop writes `strlen(key_index) / 2` bytes into the 32-byte buffer.
A 1,024-character hexadecimal string decodes to 512 bytes and overwrites saved registers and the return address. GDB confirmed attacker control of the PC and multiple registers. A ROP chain then invoked `routerd` `system@plt` with an attacker-controlled shell command. Command output and a fresh random marker were retrieved through an independent HTTP request, confirming end-to-end command execution rather than inferring success from a crash or timeout.
This is an independent memory-corruption vulnerability. It does not require another command-injection flaw or an authenticated session. |
|---|
| 来源 | ⚠️ https://github.com/jiangnandiyishenqin/D-link-DIR-X1860Z |
|---|
| 用户 | Luminaa (UID 102745) |
|---|
| 提交 | 2026-11-04 12時49分 (24 日前) |
|---|
| 管理 | 2026-11-28 16時21分 (24 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 445103 [D-Link DIR-X1860Z 1.0.7.260821.161908 routerd liblubus.so hexString2bin key_index 内存损坏] |
|---|
| 积分 | 20 |
|---|