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.
Problem types
CWE-121 Stack-based Buffer Overflow
Product status
1.12 (semver)
Credits
Craig Heffner
References
raw.githubusercontent.com/...tp/dlink_dir605l_captcha_bof.rb
web.archive.org/...2012/10/exploiting-a-mips-stack-overflow/
www.exploit-db.com/exploits/29127
forums.dlink.com/index.php?topic=51923.0
www.vulncheck.com/...ha-handling-stack-based-buffer-overflow