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...
If the rest of this code looks like that, this should never, ever be exposed to the wild wild web.