ZDI-CAN-21673: ZDI-24-043: D-Link DIR-X3260 prog.cgi SetAPClientSettings Stack-based Buffer Overflow Remote Code Execution Vulnerability
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-X3260 routers. Authentication is required to exploit this vulnerability. The specific flaw exists within the prog.cgi binary, which handles HNAP requests made to the lighttpd webserver listening on TCP ports 80 and 443. The issue results from the lack of proper validation of a user-supplied string before copying it to a fixed-size stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root.
Other sources
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DIR-X3260 routers. Authentication is required to exploit this vulnerability. The ZDI has assigned a CVSS rating of 6.8. The following CVEs are assigned: CVE-2023-51623.
— ZDI
Affected Software
Event History
Frequently Asked Questions
What is the severity of ZDI-CAN-21673?
The severity of ZDI-CAN-21673 is considered to be critical due to the ability of attackers to execute arbitrary code on the affected D-Link DIR-X3260 routers.
How do I fix ZDI-CAN-21673?
To fix ZDI-CAN-21673, ensure that your D-Link DIR-X3260 router firmware is updated to the latest version provided by D-Link.
What impact does ZDI-CAN-21673 have on my device?
ZDI-CAN-21673 allows network-adjacent attackers to execute arbitrary code, which can lead to unauthorized access and control over the router.
Is authentication required to exploit ZDI-CAN-21673?
Yes, authentication is required to exploit ZDI-CAN-21673, which means an attacker must have valid credentials to execute the attack.
Which devices are affected by ZDI-CAN-21673?
The devices affected by ZDI-CAN-21673 are specifically the D-Link DIR-X3260 routers.