Submit #1074425: 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 aninfo

TitleD-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
DescriptionThe 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.
Source⚠️ https://github.com/jiangnandiyishenqin/D-link-DIR-X1860Z
User
 Luminaa (UID 102745)
Submission11/04/2026 12:49 (24 days ago)
Moderation11/28/2026 16:21 (24 days later)
StatusAccepted
VulDB entry445103 [D-Link DIR-X1860Z 1.0.7.260821.161908 routerd liblubus.so hexString2bin key_index stack-based overflow]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!