| Title | D-Link DIR-878 1.20B05 NULL Pointer Dereference (CWE-476) |
|---|
| Description | A NULL pointer dereference vulnerability was discovered in D-Link DIR-878 (REV A) firmware v1.20B05. The GetCAPTCHAsetting HNAP handler in bin/prog.cgi (0x436158) executes strcpy(malloc(0xb), uid) when registering a new uid; when the request carries no Cookie header at all, the cookie parser (0x424610) leaves uid NULL and strcpy reads from address 0, causing an immediate SIGSEGV. The endpoint serves the login page and requires no authentication. Reproduction: curl -X POST /HNAP1/ with SOAPAction GetCAPTCHAsetting and an empty SOAP body returns HTTP 500 and kills the FastCGI worker (core dump attributed to prog.cgi), while the identical request with any Cookie header returns 200 OK. An unauthenticated adjacent-network attacker can repeatedly crash the web management interface with a single trivial request (denial of service). Proposed CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (6.5). Discovered by Zhaoyang-haha via dynamic differential testing (Cookie present vs. absent) with core attribution and static root-cause analysis. |
|---|
| Source | ⚠️ https://github.com/Zhaoyang-haha/DIR-878-cves/tree/main/04-captcha-no-cookie-null-deref |
|---|
| User | ha ha-yang (UID 102151) |
|---|
| Submission | 11/09/2026 17:11 (25 days ago) |
|---|
| Moderation | 12/04/2026 07:51 (25 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 449613 [D-Link DIR-878 1.20B05 HNAP /bin/prog.cgi GetCAPTCHAsetting uid null pointer dereference] |
|---|
| Points | 20 |
|---|