D-Link DIR-513 Stack-Based Buffer Overflow Vulnerability

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in the D-Link DIR-513 router, affecting firmware versions through 1.10. The issue arises in the HTTP POST request handler, specifically within the 'formSetWanL2TPcallback' function of the '/goform/formSetWanL2TPtriggers' file. The vulnerability can be exploited remotely, potentially leading to a denial-of-service condition or, with further exploitation, unauthorized shell access.

Impact

Exploitation of this vulnerability causes a stack-based buffer overflow, which can disrupt the normal operation of the device and potentially allow for remote code execution.

Reproduction

The vulnerability can be reproduced by sending a crafted POST request to the '/goform/formSetWanL2TP' endpoint. The request must include an oversized 'curTime' parameter, which is not properly validated before being processed. This causes a stack overflow that can crash the device or, with additional exploitation, provide shell access.

Remediation

It is recommended to add length validation for the 'curTime' parameter in the 'formSetWanL2TP' function to prevent buffer overflow.

Added: Jul 26, 2025, 9:17 AM
Updated: Jul 26, 2025, 9:17 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
5.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.