Thursday, April 10, 2025
HomeCVE/vulnerabilityPoC Exploit Released For D-LINK RCE Zero-Day Vulnerability

PoC Exploit Released For D-LINK RCE Zero-Day Vulnerability

Published on

SIEM as a Service

Follow Us on Google News

Two critical vulnerabilities have been discovered in D-Link DIR-X4860 routers which were associated with Authentication bypass due to HNAP port and remote code execution.

Moreover, exploiting these vulnerabilities together could lead to a complete compromise of the vulnerable device.

However, even after reporting this vulnerability to the vendor, there seems to be no update or response from them.

- Advertisement - Google News

Researchers have publicly disclosed this vulnerability due to no response in the past 30 days.

Free Webinar on Live API Attack Simulation: Book Your Seat | Start protecting your APIs from hackers

Authentication Bypass Due To Incorrect Implementation

This flaw exists due to the handling of HNAP login requests, which does not have proper implementation of authentication algorithms.

Successful exploitation of this flaw results in an escalation of privileges and also provides access to execute code under the router’s context.

To provide more details on this flaw, the login request to the router uses the HNAP protocol, which has an XML request embedded with a username and password.

The response to this login request contains three main parameters: Challenge, Cookie, and PublicKey.

The Cookie header is used for all the subsequent requests whereas the Challenge and PublicKey headers are used to encrypt the password and generate a HNAP_AUTH authentication in the HTTP header.

However, if the username and password parameters in the XML request are modified to “Admin”, the PublicKey is generated from the value of the “Admin”.

This means that during the login request, a threat actor can use “Admin” as the username and password, which allows the threat actor to bypass the authentication.

This flaw exists due to the /bin/prog.cgi file which handles the login request with a function.

To add more details, there is a LoginResult XML parameter, which responds with Success for successful authentication and failed for failed authentication. 

LocalIPAddress Command Injection

This flaw exists in the same prog.cgi which handles the HNAP requests that are made to the lighttpd web server.

This web server listens on ports 80 and 443. Moreover, this flaw results from a lack of validation in a user-supplied string before using it to execute a system call. 

Further, successfully exploiting this vulnerability executes code under the context of “root”.

The prog.cgi file present in the /bin/ directory contains a function that handles SetVirtualServerSettings.

The LocalIPAddress parameter uses a user-supplied input to call the FCGI_popen function. 

By providing malicious input, the attacker can call the FCGI_popen function and execute malicious commands.

Furthermore, a proof of concept has been published by SSD researchers, which provides detailed information.

On-Demand Webinar to Secure the Top 3 SME Attack Vectors: Watch for Free

Eswar
Eswar
Eswar is a Cyber security content editor with a passion for creating captivating and informative content. With years of experience under his belt in Cyber Security, he is covering Cyber Security News, technology and other news.

Latest articles

Researchers Uncover Hacking Tools and Techniques Shared on Russian-Speaking Cybercrime Forums

Trend Micro, a cybersecurity firm, has released its 50th installment report on the Russian-speaking...

SideCopy APT Hackers Impersonate Government Officials to Deploy Open-Source XenoRAT Tool

The Pakistan-linked Advanced Persistent Threat (APT) group known as SideCopy has significantly expanded its...

Russian APT Hackers Use Device Code Phishing Technique to Bypass MFA

Russian state-backed advanced persistent threat (APT) group Storm-2372 has exploited device code phishing to...

Threat Actors Exploit Messaging Services as Lucrative Cybercrime Platforms

Threat actors are exploiting weaknesses in SMS verification systems to generate massive, fraudulent message...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

Researchers Uncover Hacking Tools and Techniques Shared on Russian-Speaking Cybercrime Forums

Trend Micro, a cybersecurity firm, has released its 50th installment report on the Russian-speaking...

SideCopy APT Hackers Impersonate Government Officials to Deploy Open-Source XenoRAT Tool

The Pakistan-linked Advanced Persistent Threat (APT) group known as SideCopy has significantly expanded its...

Russian APT Hackers Use Device Code Phishing Technique to Bypass MFA

Russian state-backed advanced persistent threat (APT) group Storm-2372 has exploited device code phishing to...