CVE-2023-32142 in DAP-1360info

Summary

by MITRE • 05/03/2024

D-Link DAP-1360 webproc var:page Stack-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-1360 routers. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of requests to the /cgi-bin/webproc endpoint. When parsing the var:page parameter, the process does not properly validate the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. . Was ZDI-CAN-18422.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 05/16/2025

The CVE-2023-32142 vulnerability represents a critical stack-based buffer overflow flaw in D-Link DAP-1360 wireless routers that exposes a remote code execution vector with severe operational implications. This vulnerability resides within the webproc component of the router's firmware, specifically targeting the /cgi-bin/webproc endpoint that handles web-based administrative requests. The flaw manifests when the system processes the var:page parameter without adequate input validation, creating a condition where attacker-supplied data can overflow a fixed-size stack buffer and overwrite adjacent memory locations. This type of vulnerability falls under CWE-121 Stack-based Buffer Overflow, which is classified as a fundamental memory safety issue that has been consistently identified as a primary attack vector in cybersecurity incidents.

The exploitation of this vulnerability requires only network adjacency, meaning attackers do not need authentication credentials to leverage the flaw, significantly increasing the attack surface and potential impact. The remote code execution occurs with root privileges, as the vulnerable process runs with elevated permissions, allowing attackers to gain complete control over the affected router. This privilege escalation capability enables adversaries to modify router configurations, install malicious firmware, redirect network traffic, or establish persistent backdoors within the network infrastructure. The vulnerability's characteristics align with ATT&CK technique T1059.007 for Command and Scripting Interpreter: JavaScript, as attackers can leverage the web interface to inject malicious code through the parameter parsing flaw. The fact that this vulnerability was assigned ZDI-CAN-18422 indicates it was recognized and tracked by the Zero Day Initiative, highlighting its significance in the cybersecurity community.

The operational impact of CVE-2023-32142 extends beyond individual device compromise to potentially affect entire network infrastructures. When exploited successfully, the vulnerability allows attackers to gain persistent access to the router's management interface, enabling them to manipulate network traffic, conduct man-in-the-middle attacks, or use the compromised device as a pivot point for further attacks within the local network. The stack-based buffer overflow creates a stable exploitation environment that attackers can reliably reproduce, making this vulnerability particularly dangerous for enterprise and home network environments where D-Link DAP-1360 devices are deployed. Organizations with multiple affected devices face the risk of coordinated attacks that could compromise their entire network security posture. The vulnerability's exploitation does not require specialized tools or deep technical knowledge, as it can be leveraged through standard web-based attack vectors, making it accessible to threat actors across different skill levels. Network administrators should prioritize immediate mitigation measures including firmware updates from D-Link, network segmentation to limit adjacent access, and monitoring for suspicious traffic patterns that may indicate exploitation attempts.

Reservation

05/03/2023

Disclosure

05/03/2024

Moderation

accepted

CPE

ready

EPSS

0.01101

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!