D-Link DCS-5020L Stack-Based Buffer Overflow Vulnerability in websReadEvent Function

Vulnerability

A critical stack-based buffer overflow vulnerability has been identified in the D-Link DCS-5020L camera, specifically in firmware version 1.01_B2. The issue arises in the websReadEvent function within the ptDC.cgi file, where improper handling of the Authorization header in POST requests creates a potential for remote exploitation. This vulnerability affects devices that are no longer supported by the manufacturer.

Impact

Exploitation of this vulnerability leads to a stack-based buffer overflow, which can commonly result in arbitrary code execution or causing the device to crash.

Reproduction

The vulnerability can be reproduced by sending a POST request to the /rame/ptdc.cgi endpoint with a crafted Authorization header. The header must include the string 'Authorization: Digest Basic' followed by a payload that exploits the buffer overflow by including excessive data that exceeds the buffer's capacity.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
10.0
exploitability
6.2
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.8

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