Command Injection in D-Link DIR-845L hnap_main()
A command injection vulnerability exists in D-Link DIR-845L router firmware version 1.01KRb03 and earlier. The vulnerability is present in the hnap_main() function, which fails to properly sanitize user-supplied input, allowing attackers to inject and execute arbitrary system commands on the device.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary commands on the router with the privileges of the web server process, potentially leading to full device compromise, unauthorized configuration changes, or use of the device as a pivot point for further attacks.
If you can’t patch tonight, do this now.
Restrict network access to the router's management interface to trusted hosts only. Disable remote management if not required. Employ network segmentation and monitoring to detect suspicious activity targeting the device.
Patch, then assume compromise.
Upgrade the D-Link DIR-845L router to a firmware version that addresses this vulnerability. If no patched firmware is available, contact D-Link support for further guidance.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.