| 제목 | D-Link DIR-645 1.01–1.03 Stack-based Buffer Overflow |
|---|
| 설명 | The D-Link DIR-600 is a wireless router designed for home and small office environments, and it is still deployed in some actual network scenarios.
In early firmware versions of the D-Link DIR-645 router (such as v1.01–v1.03), the core function `hedwigcgi_main` of `/cgi-bin/hedwig.cgi` has a stack-based buffer overflow vulnerability.
When processing HTTP requests, the program retrieves the user session identifier (Session UID), which can be indirectly controlled by client requests. Then, it uses `sprintf` to concatenate it into a fixed-size stack buffer without performing length checks.
If an attacker constructs overly long input, it can cause a stack buffer overflow, overwriting registers and the return address ($ra) on the stack, thereby hijacking the program's execution flow. By carefully crafting the data, an attacker can achieve remote code execution (RCE) and ultimately gain full control of the device. |
|---|
| 원천 | ⚠️ https://github.com/Pers1st0/CVE/blob/main/stack-based%20buffer%20overflow%20vulnerability%20exists%20in%20the%20hedwig.cgi%20of%20D-Link%20DIR-645.md |
|---|
| 사용자 | Pers1st (UID 96793) |
|---|
| 제출 | 2026. 03. 25. PM 01:01 (4 개월 ago) |
|---|
| 모더레이션 | 2026. 04. 08. PM 05:30 (14 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 356263 [D-Link DIR-645 1.01/1.02/1.03 /cgi-bin/hedwig.cgi hedwigcgi_main 메모리 손상] |
|---|
| 포인트들 | 20 |
|---|