D-Link DIR-600L HNAP Handler Stack Buffer Overflow (CVE-2026-129354)
Overview
A vulnerability has been identified in the HNAP Handler component of D-Link DIR-600L routers running firmware version 2.17b02. The flaw resides in the hnap_main function within the htdocs/cgibin directory. An exploit for this issue has been published and can be triggered remotely, giving it a CVSS score of 10.0.
Technical Details
The hnap_main function processes incoming HNAP requests without proper bounds checking, leading to a stack-based buffer overflow. An attacker can craft a malicious request to the router's HNAP endpoint, causing memory corruption and arbitrary code execution. The issue is present in the HNAP Handler component of the firmware file htdocs/cgibin on version 2.17b02 of the DIR-600L device.
Impact
Successful exploitation grants the attacker remote code execution on the affected router, potentially allowing full control of the device, network reconnaissance, and lateral movement. All DIR-600L units running firmware 2.17b02 are exposed, especially if the management interface is reachable from untrusted networks.
Recommended Actions
- Patch the device using the vendor's advisory when a fix is released.
- Mitigate by disabling the HNAP service if it is not required.
- Restrict network access to the router's management interfaces to trusted hosts only.
- Monitor for abnormal HNAP request patterns and log any suspicious activity.
Detection
Review router logs for unexpected or malformed HNAP requests, particularly spikes in POST activity to the /htmldir/cgibin endpoint. Enable detailed logging if available, and set alerts for anomalous source IPs or payload sizes that could indicate exploitation attempts.