Exploit database

Vulnerability

CVE-2012-10021

D-Link DIR-605L Captcha Handling Buffer Overflow

Vulnerability details

Score
9.3
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Description

A stack-based buffer overflow vulnerability exists in D-Link DIR-605L Wireless N300 Cloud Router firmware versions 1.12 and 1.13 via the getAuthCode() function. The flaw arises from unsafe usage of sprintf() when processing user-supplied CAPTCHA data via the FILECODE parameter in /goform/formLogin. A remote unauthenticated attacker can exploit this to execute arbitrary code with root privileges on the device.

CVE Program

Exploit source choices

2 sources
D-Link DIR-605L Captcha Handling Buffer Overflow
MSF-linux--http--dlink_dir605l_captcha_bofMetasploitLinux / remote

This module exploits an anonymous remote code execution vulnerability on D-Link DIR-605L routers. The vulnerability exists while handling user supplied captcha information, and is due to the insecure usage of sprintf on the getAuthCode() function. This module has been tested successfully on D-Link DIR-605L firmware 1.13 (emulated) and firmware 1.12 (real).

2012-10-08dlink_dir605l_captcha_bof.rb