Live data from Hacker News

How I Hacked a Router

disconnected.io

81–90 of 96 posts

Re: How I Hacked a Router

#81
post #75

Doesn't the target need to have an active router admin session for the CSRF to work? Unless I'm missing something...

I don't know about this specific bug, but there have been consumer routers bugs before (Netgear specifically) where not only were they vulnerable to CSRF, but authentication bypass at the same time if the request was crafted carefully.

Re: How I Hacked a Router

#82

tl;dr: Social engineering won. It was over the moment he got tricked into clicking on a link in an email.

So we live in a world where you can browse to a page and have your network compromised? Consider reading the story.

I did. He couldn't attack the router from outside, he had to get his victim to do it from within the network.

Re: How I Hacked a Router

#83

While this is an interesting article and this is certainly feasible, I'm left with the opinion that this is fiction and didn't actually happen.

Would anyone give a more in-depth comment regarding why this didn't happen?

I find it hard to believe that an infosec professional would click a link in an email. Anybody who has ever run an phishing campaign as part of a pentest wouldn't. I only moonlight in the infosec industry, but I know that the Right Thing, upon receiving an unsolicited notification email from a website ("Friend" request, LinkedIn connection requests, "Track a package", etc) is to visit the site in your browser manually, versus clicking some link in an email that could likely be bogus.

Re: How I Hacked a Router

#84
post #79
post #73

"It took about a week before Bill decided to upgrade notepad++ to the new version." Which is why I'm always wary of installing unsigned software. In such cases I try to check some hashes some way. Obviously if the download page lists them I check against those, but in most cases it's insufficient because that page is not HTTPS. So I always help myself with google, both by googling the filename to find some pages list…

I didn't understand which hashes you are talking about. Do installs usually provide a checksum or? I have not found any that do, or maybe I just ignore it.

The hashes of downloaded files, computed locally. E.g. with 'sha1sum' command or Microsoft's 'fciv'.

Suppose I download Putty and am unsure of whether it's the real thing or whether it's a Trojan, e.g. due to someone having hacked my router. I compute the hash of the file and google it: http://lmgtfy.com/?q=44ac2504a02af84ee142adaa3ea70b868185906... . I find many sites saying that's putty.exe. If I didn't, I'd be very suspicious.

Re: How I Hacked a Router

#86
post #75

Doesn't the target need to have an active router admin session for the CSRF to work? Unless I'm missing something...

UPnP is made to have application automatically open ports without being logged into the web config.

Re: How I Hacked a Router

#88
post #85

I guess it's a good thing I have my laptop setup to use google's dns no matter what network i'm on.

Not really. Control of the router (of the kind he describes) can set up routing in such a way that it still goes to system under his control. It's easiest if he can get a shell with access to (e.g.) iptables, but even without a shell, it's possible to set up routing to do that.

Re: How I Hacked a Router

#89
post #73

"It took about a week before Bill decided to upgrade notepad++ to the new version." Which is why I'm always wary of installing unsigned software. In such cases I try to check some hashes some way. Obviously if the download page lists them I check against those, but in most cases it's insufficient because that page is not HTTPS. So I always help myself with google, both by googling the filename to find some pages list…

Sounds extremely involved.

>sha1sum putty.exe

>google "44ac2504a02af84ee142adaa3ea70b868185906f"

>see results are mostly "putty.exe"

Three steps, all relatively painless.

Re: How I Hacked a Router

#90
post #41

Earlier quoted context omitted.

Not really. Depending on the protocol CSRFs are often an easy 1-click exploit on noscript-enabled browsers. Something like this: " /> Is the corresponding 1-click that works on noscript.

Hmm, I thought ClearClick would catch that, but apparently it doesn't. That's unnerving. Even ABE lets it through. That said, it would still require the victim to load the fake LinkedIn page (with the wrong domain), which is more likely to look suspicious. And it would've loaded the router page after the POST (instead of redirecting to LinkedIn), which would definitively signal that something was wrong.

Nah, you just set target="iframe name" on the form and post into a (hidden) iframe. Then in 2 seconds you redirect to LinkedIn. In my experience, getting clicks from targets is easy. One simple way is to show a page with a single link that just says "Redirecting". After a moment most users will just click the link.
Post reply on HN