On GameSpot: Share your Modern Warfare 2 experiences
BNET Business Network:
BNET
TechRepublic
ZDNet

May 19th, 2009

D-Link router's CAPTCHA flawed, WPA passphrase retrieved

Posted by Dancho Danchev @ 9:01 am

Categories: Browsers, Complex Attacks, Exploit code, Hackers, Malware, Passwords, Pen testing, Wi-Fi security

Tags: WPA, D-Link Systems, CAPTCHA, Passphrase, Router, Malware, Routers & Switches, Spyware, Adware & Malware, Cyberthreats, Dancho Danchev

It took only a week for the researchers at SourceSec to find a flaw in the CAPTCHA implementation of D-Link’s recently introduced CAPTCHA in its routers, originally aimed to prevent DNS changing malware from automatically achieving its objective.

According to SourceSec, the flawed implementation allows an attacker/malware to retrieve the router’s WPA passphrase with user-level access only, and without even a properly solved CAPTCHA. Moreover, a combination of a simple Javascript code using anti-DNS pinning doesn’t even require the attacker to have malware installed on the router, instead, the attack can be triggered by visiting a web site.

Here’s how the attack works:

  • Malware loads the router’s index page and glean the salt generated by the router
  • The malware uses the salt to generate a login hash for the D-Link User account (blank password by default)
  • The malware sends the hash to the post_login.xml page
  • The malware sends a request to the wifisc_add_sta.xml page, activating WPS
  • The attacker uses WPSpy to detect when the victim’s router is looking for WPS clients, and connects to the WiFi network using a WPS-capable network card

Ironically, the first router with CAPTCHA implementation can in fact be undermining the secure combination of strong passphrases and strong encryption protocols, which of course doesn’t mean that these best practices are in wide circulation at places they’re supposed to be.

Dancho DanchevDancho Danchev is an independent security consultant and cyber threats analyst, with extensive experience in open source intelligence gathering, malware and cybercrime incident response. He's been an active security blogger since 2007, and maintains a popular security blog. See his full profile and disclosure of his industry affiliations.

Email Dancho Danchev

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 18 Talkback(s)
Snore?
Wow, instead of snoring perhaps you had better head back to school! Sounds like it has been a decade or so since you got your "true professional" certifications if you are not familiar with salt. By the way what is that slang you used? I believe it was IT....
LMAO ... (Read the rest)
Posted by: Timewellwasted Posted on: 05/25/09 You are currently: a Guest | | Terms of Use
Any comment from Dlink yet?  MGP2 | 05/19/09
re: If you have questions regarding D-Link product specifications, product  djzoey | 05/21/09
How relevent is this?  Roger Ramjet | 05/19/09
For sure, but...  JCitizen | 05/20/09
ABSOLUTELY CORRECT  Timewellwasted | 05/25/09
RE: Writers That Know How to Write  ken.bld@... | 05/20/09
salt is a legitimate term  frank_s | 05/20/09
Your link's nonexistent!  ulrichburke@... | 05/20/09
Odd that link didn't work  DNSB | 05/21/09
Slang?  DNSB | 05/21/09
Snore?  Timewellwasted | 05/25/09
RE: D-Link router's CAPTCHA flawed, WPA passphrase retrieved  adityabhelke | 05/20/09
Salt  JeeR | 05/20/09
Ha! Very punny! ... wink ...(nt)  JCitizen | 05/20/09
RE: D-Link router's CAPTCHA flawed, WPA passphrase retrieved  badkid32 | 05/20/09
RE: D-Link router's CAPTCHA flawed, WPA passphrase retrieved  phatkat | 05/20/09
Captcha: Good. User: Bad.  dclhacker | 05/24/09
RE: D-Link router's CAPTCHA flawed, WPA passphrase retrieved  JeremyBoden | 05/25/09

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

  • Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
  • More from IBM
  • Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
  • Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report
Click Here