News for hackers. Stuff that matters.
Re:Reverse Engineering a D-Link Backdoor by ttctciyf on Saturday October 12, 2013 @10:16PM (#6541214)
As a couple of reddit commenters point out, the user agent string that bypasses auth (according to the post) can be read backwards as "Edit by 04882 Joel Backdoor", and one possible Joel is CTO Alpha Networks, whose thttpd this appears to be.

I've no security expertise, but this seems cataclysmically bad!

Re:Reverse Engineering a D-Link Backdoor by jyap on Sunday October 13, 2013 @06:59AM (#6542171)
He's not the CTO.

Specific title: Senior Director-Chief Technology Office

Via: http://www.joesdata.com/executive/Joel_Liu_421313008.html

Re:Reverse Engineering a D-Link Backdoor by ttctciyf on Sunday October 13, 2013 @07:00PM (#6544467)
Sigh. Should never have trusted that reddit comment!
Re:Reverse Engineering a D-Link Backdoor by acqq on Sunday October 13, 2013 @03:55AM (#6541847)
CTO of Alpha Networks is named Kang Ting-Kan.

http://www.bloomberg.com/quote/3380:TT/profile

Where did you get "Joel"?

Re:Reverse Engineering a D-Link Backdoor by xyzzy123 on Sunday October 13, 2013 @04:25AM (#6541897)
I hope Joel doesn't get in trouble :( He was kind enough to leave his employee number in there.
Re:Reverse Engineering a D-Link Backdoor by brokenparser on Sunday October 13, 2013 @04:53AM (#6541932)
And if he did, I wonder which door they've shown him on the way out.
Re:Reverse Engineering a D-Link Backdoor by Nitramp on Sunday October 13, 2013 @10:39AM (#6542719)
Apart from the backdoor, this code seems completely ridden with bugs. E.g.

    if(strstr(header, "User-Agent:") != NULL)
    {
        http_request_t->0xD0 = header + strlen("User-Agent:") + strspn(header, " \t");
    }
Note how you could have a header some includes 'User-Agent:' somewhere back in the value, and the arrive with an entirely incorrect pointer to what you think is the value - strstr just finds the needle anywhere in the haystack, not necessarily at the beginning. This particular piece (AFAICT) cannot be exploited for e.g. overruns or similar, maybe just for a subsequent crash or unexpected behaviour due to lack of input sanitization, but still, crazy strstr juggling on untrusted user input? oh oh.

If the rest of this code looks like that, this should never, ever be exposed to the wild wild web.

Re:Reverse Engineering a D-Link Backdoor by __david__ on Sunday October 13, 2013 @04:27PM (#6544049)
So while you're right that the strstr() is lazy (should probably be a strncmp() or something), it's probably not that big of a deal in this particular case. The worst an attacker could do here is get a weird user agent string, which they could already do by just setting the User-Agent field to something weird...
Re:Reverse Engineering a D-Link Backdoor by conductor on Sunday October 13, 2013 @06:04AM (#6542058)
I wonder why they didn't remove the debug symbols from the released firmware?
Re:Reverse Engineering a D-Link Backdoor by zapu on Sunday October 13, 2013 @06:27AM (#6542106)
I wonder the same. It's probably by mistake. I remember some Wii games kept symbols, some other had .svn (or was it other vcs?) directories on disk.
Re:Reverse Engineering a D-Link Backdoor by thefreeman on Sunday October 13, 2013 @12:37PM (#6543134)
This type of negligence should really be illegal.
Re:Reverse Engineering a D-Link Backdoor by wyager on Sunday October 13, 2013 @03:51PM (#6543913)
Or you could just, you know, not buy their products.
Re:Reverse Engineering a D-Link Backdoor by joe_the_user on Sunday October 13, 2013 @05:37PM (#6544243)
The problem is I suffer when other people buy products like this.
Re:Reverse Engineering a D-Link Backdoor by lignuist on Tuesday October 15, 2013 @02:56AM (#6551900)
Please point me to a backdoor-free option.
Re:Reverse Engineering a D-Link Backdoor by Qantourisc on Tuesday October 15, 2013 @03:03AM (#6551924)
Running own software (this leaves you open to hardware backdoors).
Re:Reverse Engineering a D-Link Backdoor by throwaway2048 on Monday October 14, 2013 @04:06AM (#6545985)
i trust you evaluate all software for backdoors before purchase
Re:Reverse Engineering a D-Link Backdoor by nicolast on Sunday October 13, 2013 @07:21AM (#6542217)
Doesn't this mean if '/admin/factory_reset' normally requires authentication, requesting '/admin/factory_reset?_=graphic/' would bypass this without the need for custom headers...
Re:Reverse Engineering a D-Link Backdoor by pritambaral on Sunday October 13, 2013 @09:38AM (#6542546)
The check seems to happen in the path portion of the url, and the parameters part isn't checked.
Re:Reverse Engineering a D-Link Backdoor by zwily on Sunday October 13, 2013 @09:36AM (#6542538)
No, the query string is not part of the URL.
Re:Reverse Engineering a D-Link Backdoor by bigiain on Sunday October 13, 2013 @06:08PM (#6544327)
I wonder if '/admin/graphic/../factory_reset' woud work?
Re:Reverse Engineering a D-Link Backdoor by xyzzy123 on Monday October 14, 2013 @03:55AM (#6545960)
Or /admin;graphic/factory_reset (URI path parameters)
Re:Reverse Engineering a D-Link Backdoor by barrkel on Sunday October 13, 2013 @10:18AM (#6542658)
Does anyone know how to view this page in desktop mode on any Android browser? The pictures are not fully visible, and I've tried AOSP, Chrome, Firefox, Phony Firefox extension. Nothing works...
Re:Reverse Engineering a D-Link Backdoor by 3rd3 on Sunday October 13, 2013 @05:14AM (#6541969)
What is this backdoor for?
Re:Reverse Engineering a D-Link Backdoor by booop on Sunday October 13, 2013 @05:53AM (#6542032)
I would guess for both good and evil.

The good reason being able to login to the router to reset the password if the customer forgot it (I remember some home/small office routers don't reset the admin password when you use the reset button).

The evil reason being able to login remotely to any router and snoop around.

Re:Reverse Engineering a D-Link Backdoor by 3rd3 on Sunday October 13, 2013 @08:20AM (#6542337)
But itn’t the web interface usually not accessible from WAN?
Re:Reverse Engineering a D-Link Backdoor by homeomorphic on Sunday October 13, 2013 @09:33AM (#6542531)
Sure, but all the adversary needs is for the user to visit a webpage that makes his/her browser contact the router (i.e. from within the LAN). If the adversary has to take into account defeating the user's password, this becomes an impractical attack. With the backdoor, however…
Re:Reverse Engineering a D-Link Backdoor by xyzzy123 on Monday October 14, 2013 @03:54AM (#6545955)
Might be hard to set the user-agent for a JavaScript cross-origin request though...
Re:Reverse Engineering a D-Link Backdoor by throwaway2048 on Monday October 14, 2013 @04:09AM (#6545992)
flash allows you to generate UPNP requests, just generate one to forward the web server port to the internet, and you have an easy solution.
Re:Reverse Engineering a D-Link Backdoor by smtddr on Sunday October 13, 2013 @10:40AM (#6542723)
Well, I have a router that has remote-WAN-access disabled[1] ....and yet, if you type that (blurred out) IP:PORT into your browser you STILL get the prompt for user/pass. And if you type it correctly, you STILL access my router!!!!! So if my router has the same kind of UserAgent:roodkcabvogasn backdoor, I'm screwed.

I really should get a new router... like...very soon.

Also, I'm a conspiracy-nut and I think a significant amount of these "bugs" happen on purpose.

1. http://i.imgur.com/W06W1oB.png

Re:Reverse Engineering a D-Link Backdoor by nfoz on Monday October 14, 2013 @04:38PM (#6549494)
Any statement from D-Link regarding this vulnerability?