Slashdot Mirror


Critical Flaw Discovered In DD-WRT

MagicM writes "A critical flaw has been discovered in DD-WRT, a Linux based alternative open source firmware for WLAN routers such as the fan-favorite Linksys WRT54GL. The flaw can give an attacker instant root access to the router merely by embedding an image with a specially crafted URL in a Web page (CSRF attack)." The linked page notes that a fix is being rolled out (build 12533) and gives firewall rules to thwart the attack if the fix is not available yet for a particular device.

26 of 225 comments (clear)

  1. Worse than that by tomtomtom · · Score: 4, Informative

    It's worse than a specially crafted image - there's a code injection flaw in the httpd server so merely accessing a URL that looks like "http://routerIP/cgi-bin/;command_to_execute" will do the trick. That URL can be put in a malicious tag on an HTML page and the user most likely won't even notice it.

    See the Register article on it from a couple of days ago.

    1. Re:Worse than that by hoosbane · · Score: 2, Informative

      Um... no. The URLs that break this work just as well over HTTPS. And the firewall rule they offer to protect against the hack won't protect the HTTPS port, so you're actually *more* vulnerable over HTTPS. Of course, the CSFR attack can be mitigated by just not using the default IP range for your router.

  2. Re:Standard Practices by BigHungryJoe · · Score: 4, Informative

    Maybe I'm misunderstanding, but if the exploit is "injected from inside the browser" then won't the management of the device be coming from the local interface, not the internet side?

  3. Re:Standard Practices by gamefreak1450 · · Score: 5, Informative

    Basically, I would NEVER allow remote web management of a device if it's on the internet.

    Good idea, but this is a critical exploit because hackers can make an img tag load the malformed URL. If they can trick you into viewing that image, then your router will be compromised from your computer on the network. Disabling the external management will prevent internet users from compromising your router, but it is still vulnerable to local threats, as executed through the CSRF method.

  4. it sucks...but by Em+Emalb · · Score: 1, Informative

    Bravo to them for owning up to it and also posting the fix on the same page.

    The interesting thing I've read a lot here is how vulnerable and worthless Microsoft is when it comes to security...but it seems the people that think this automatically point to Linux as being secure.

    Linux is somewhat secure, but a LOT of the security of linux is due to a limited (unfortunately) market share. If Linux owned 30% or more of the market space for end-user goods, we'd see a HUGE influx of hacks, malware, adware, etc.

    It flabbergasts me that people don't see this. The greatest thing Linux has going for it is the collaboration and freedom of the code. With that freedom comes the ability to exploit it. Wait til market share gets larger, it'll start to happen a lot more than the rare article here and there. The good news, though, is again, they identified the problem AND THE FIX on the same page. (Something MS has to be drug kicking and screaming along in order to do that)

    --
    Sent from your iPad.
  5. Re:Standard Practices by tonyreadsnews · · Score: 2, Informative

    Yea, thats what I got from that statement too.

    The easy way is to go directly in through the remote Web GUI.

    slightly harder to go in through the browser running inside the network.

  6. Re:This is a common stack in wifi APs by Mad+Merlin · · Score: 4, Informative

    It's hardly an issue with every wireless router. For example, the Tomato firmware is not vulnerable to this. Furthermore, most routers with DD-WRT are custom flashed, they don't come stock with it.

  7. Re:wtf is a DD-WRT? by Pulse_Instance · · Score: 4, Informative

    DD-WRT is custom firmware that supports more than 200 different devices. This page will tell you if your device is supported. Someone who wants to use DD-WRT needs to get one of those devices then install this firmware. To answer your question no, someone can not find a list of actual routers that are affect by this. It is likely though that only geeks have it installed and that means that it is more likely that they will patch it.

  8. DD-WRT !GPL Compliant (or open source) by Anonymous Coward · · Score: 5, Informative

    DD-WRT just isn't compliant with the GPL on so many levels.calling it an "open source" firmware is a lie and a disgrace to the open source community.

    The open source parts are OpenWRT.

    1. Re:DD-WRT !GPL Compliant (or open source) by Anonymous Coward · · Score: 5, Informative

      DD-WRT is Harmful to open source

  9. Re:This is a common stack in wifi APs by Anonymous Coward · · Score: 5, Informative

    3. Homogeny? Huh?! Do you mean the homogeny that's defined has "a significant portion of huge nerds (though certainly not even close to a majority) uses this software" ? How many routers are being used in homes and small businesses around the world? You think enough of them are running DD-WRT to call it a homogeny? Name a router that you think has more instances of DD-WRT installed than the factory firmware.

    WRT54GL

    http://www.linksysbycisco.com/US/en/products/WRT54GL

  10. Re:wtf is a DD-WRT? by Anonymous Coward · · Score: 1, Informative

    If you don't know what is dd-wrt, then you are not affected. Those who have it installed it themselves. There are also a few companies selling routers pre-flashed with dd-wrt but again their market isn't the average joe. By the way, google is your friend.

  11. Re:This is a common stack in wifi APs by Anonymous Coward · · Score: 2, Informative

    +1 for Tomato, that firmware is awesome and rock solid.

  12. It's "homogeneity" by Merdalors · · Score: 2, Informative
    We have to nip this in the bud: it's "homogeneity" (Webster, Oxford)

    Sorry about that.

    --
    Slashdot entertains. Windows pays the mortgage.
  13. NoScript! by WD · · Score: 2, Informative

    NoScript actually mitigates this vulnerability. The ABE feature, in particular:
    http://noscript.net/abe/

    So although I added the firewall mitigation in dd-wrt, I was pleased to find that NoScript blocked the CSRF request before it even got to the router.

    1. Re:NoScript! by Vectronic · · Score: 2, Informative

      That might help some, but what about:
      1. Places that have 40 computers, running 3 different browsers.
      2. Your friend/relative that comes over with their laptop
      3. Embedded browsers in applications (even if they use your FF/Gecko does it load NoScript for those?)
      4. That time you disabled NoScript cause something was "all fucked up", and you may as well "test"
      5. What if someone got to the NoScript update servers?
      6. ???
      7. Loss of profit!

  14. Re:This issue is way overblown. FUD by abcabcabc · · Score: 3, Informative

    Nope, it affects https as well. Furthermore, it does not require remote web management since the attack can be carried out via CSRF.

  15. DD-WRT is a lie! by Anonymous Coward · · Score: 0, Informative

    Some jackass named brainslayer stole the openwrt source code, wrote a dinky (and obviously poorly written) web interface for it and branded the whole thing as "his" and probably said fuck the gpl and the golden goose it rode in on.

    See: http://www.bitsum.com/about-ddwrt.htm

  16. Re:Linksys suck by ShadowRangerRIT · · Score: 3, Informative

    If you paid even a lick of attention to TFA, you'd note that this is a vulnerability in third party software. If you've got stock firmware, you don't need to update, and if you don't have stock firmware, you couldn't get the update from Linksys anyway.

    --
    $_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
  17. Re:This is a common stack in wifi APs by Minwee · · Score: 3, Informative

    No, you've got it the wrong way around. Earlier models (up to v5.0) were hackable out-of-the-box. Linksys received quite some flak when they introduced the v5.0 model that had less memory and as such could not be easily re-flashed with third-party firmware. As a remedy they introduced the 54GL model that again had more memory (and a higher price of course).

    So you agree that earlier models which were released shortly before the WRT54GL, were stripped and crippled. Except for the part where you said he was wrong you just agreed with everything the grandparent poster said.

  18. Re:Sheesh, go RTFA by Tacvek · · Score: 2, Informative

    It can only be remotely exploited in that case. However, it can be exploited locally if you load any page that that has a tag of the form <img src="http://192.168.1.1/cgi-bin/;reboot"> replacing 192.168.1.1 with your router's actual IP, and the reboot command with whatever command is desired. So you visit any webpage in any browser and you don't have the browser set to not load images from another domain, and you can be exploited.

    --
    Stylish sheet to fix many problems in Slashdot's D3: https://gist.github.com/801524
  19. Re:This is a common stack in wifi APs by narfspoon · · Score: 2, Informative

    He's right also. I should've said "some of the earlier models (versions 5.0 -> 8.2)".

    I would have said "pre-2005" models, but that's not entirely accurate either.

    Last time I checked recently, stores mostly had the non-Linux versions in stock or they had the WRT54G"L" side-by-side with the low-memory non-Linux version of the same router. I know NewEgg sells both versions also. Local brick&mortar stores only carried the bad version.

  20. Re:This is a common stack in wifi APs by Khyber · · Score: 2, Informative

    "You think enough of them are running DD-WRT to call it a homogeny? Name a router that you think has more instances of DD-WRT installed than the factory firmware. "

    Buffalo WHR-HP-G54DD comes with it installed by default.

    --
    Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
  21. Re:Mod Parent Up by Sleepy · · Score: 2, Informative

    >If people just disabled remote admin (which you should do anyway)

    FYI, the exploit is Internet-ready even if you turn off remote management.

    It's in the article, if you read it. Webpages (or flash, etc) can just craft a request to exploit this and in the process, turn remote shell ON.

    Web-managed routers will always be LESS secure than router types managed via local telnet or ssh. Such designs are immune to browser and cross site attacks... but they're more difficult to manage for novice users, which is why these days only the serious and high-end routers lack web interfaces.

  22. Re:DD-WRT is not opensource! by mieses · · Score: 2, Informative

    I switched to OpenWRT as soon as I realized what DD-WRT is about.
    http://en.wikipedia.org/wiki/DD-WRT#Controversy

    The OpenWRT community is a bit more technical and far more competent.

  23. Re:How did this happen? by Anonymous Coward · · Score: 1, Informative

    I have a Linksys 350N. Aside from Tomato's confusing website (Firefox? Japanese?) it isn't supported. OpenWRT looks like it has support for bricking the router.. great..

    WARNING: Flashing the pre-build openwrt-wrt350n_v1-squashfs.bin from downloads.openwrt.org could very well disable all ethernet ports on the router, forcing you to install a serial port to recover.

    I've been using DD-WRT on this router for years and still the open source firmware maintainers still can't get their shit together. Don't worry though keep complaining about the freedom DD-WRT gives me when you don't even offer the same level of service.