[Cyberwar Central Links & Resources][Cyberwar Central][Cyberwar Central Members Area]



 Return to Cyberwar Central  

Advanced JavaScript Attack Threatens SOHO Routers

June 20 2012 at 11:29 PM

Coalde  (Login cwc.mgmt)
CWC Member


Thought I would post this here as I imagine many CWC readers have a SOHO router/firewall on their Internet connection. Not sure there is much you can do about it at this moment besides ensuring your browser and router firmware is updated.

antivirus-23.jpgUsing JavaScript and cross-site request forgery, two researchers plan to show it's possible to attack routers leveraging computers on the internal network.

By Robert Lemos, Dark Reading, Jun 19, 2012 05:24 PM

A technique for sending requests to devices on an internal network could be used by online attackers to compromise home and small-business routers, according to two researchers who plan to demonstrate the attack at the Black Hat security conference next month.

The two researchers, Phil Purviance and Joshua Brashars of AppSec Consulting, build on a technique showed at the Black Hat conference in 2006, using a combination of JavaScript and cross-site request forgery to send requests to devices on an internal network from an external Web site. The attack will be able to send a compromised binary to an internal router, reflashing the router's memory with the malicious firmware, according to the researchers.

"With this attack, you can actually start compromising network devices with little to zero user intervention," says Brashars, a senior security consultant at AppSec. "At that point, once a network device is compromised, you are no longer reliant on a user keeping their Web browser open."

At the Black Hat security conference in 2006, and again in 2007, Web security experts Jeremiah Grossman and Robert Hansen showed that cross-site request forgery (CSRF) could be used to force browsers to send requests from a malicious website to devices on the internal network. Yet Grossman and Hansen never refined the technique to allow binaries to be communicated through the CSRF channel. Instead, the attacker would have to social engineer victims into entering in their usernames and passwords for internal devices.

"There was quite a bit of social engineering that had to be done in order to make it work," says AppSec's Purviance, a security consultant. He and Brashars have cleared that hurdle. "The advantage of this attack is that there is no social engineering required."

While the pair of researchers declined to give details of the technique, their attack will allow fully automated infection of devices on the network, they claim. Because the attack makes use of HTML 5 and other new browser technologies, more modern browsers are more susceptible to the attack, Purviance says.

After the browser is conscripted by the attacker, the second part of the attack is uploading the rogue firmware to the router. The two researchers have found ways to get past the requirement of authenticating to the router. Purviance and Brashars would not discuss details, but there are three possibilities, Grossman says: The device authentication could be bypassed, the password could be guessed, or a vulnerability in the router could be exploited.

The internal interfaces of routers make perfect targets. While they are inside the network, they present a Web interface just like any other site on the Internet and buggier than most, says Grossman, who is chief technology officer of Whitehat Security.

"You have to get past the notion that these are routers," Grossman says. "They are really just websites with the same Web applications flaws as everything else. And they are never updated."

While enterprise routers may not be easily compromised, home and small-office routers could be compromised at the firmware level with an attacker's software, making recovery extremely difficult.

"Once a device is compromised, there is no good way to determine that it has been compromised," AppSec's Purviance says. "And once the network device is infected, how can you remove it? The firmware on a network device has full control."

Fixing the general issue of CSRF has also posed problem. Grossman and Hansen have discussed the problem with browser vendors since their original 2006 presentation, but failed to get the software makers to adopt restrictions to prevent browsers from sending requests from the external Internet to internal nonroutable addresses.

"We talked to the browser vendors year after year, and didn't get any movement on this," Grossman says.



 Respond to this message   
Response TitleAuthorDate
 ....E7Jun 21, 2012, 1:42 AM
 Re: Advanced JavaScript Attack Threatens SOHO RoutersCoaldeJun 21, 2012, 2:05 AM
Find more forums on SocietyCreate your own forum at Network54
 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement  
      free countersMember of The Internet Defense League   [Exchange Links with CWC]