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.
"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."
[ Stopping malware is so yesterday -- eclectic groups of security people have banded together to make life difficult for attackers. See Security Startups Focusing On Threats, Not Malware. ]
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.
Have a comment on this story? Please click "Add Your Comment" below. If you'd like to contact Dark Reading's editors directly, send us a message.