News for hackers. Stuff that matters.
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by cremno on Wednesday April 15, 2015 @09:11AM (#9380698)
From the exploit code:

    memset(&serv_addr, '0', sizeof(serv_addr));
That doesn't seem to be correct. The digit character 0 is not the same as the null character ('\0'). Just write 0 or use `struct sockaddr_in serv_addr = { 0 };`.
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by mnw21cam on Wednesday April 15, 2015 @09:44AM (#9380885)
It is common for code which is designed to trigger security bugs in systems to be published with several errors, so that skiddies can't just compile and run.
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by e12e on Wednesday April 15, 2015 @08:51PM (#9385265)
Which makes me sad. Makes it just as easy for dedicated crackers, makes it harder on busy, overworked sysadmins to check.

All the script-kids need to do is find someone to help them, so I don't really think this helps anyone.

Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by benjamincburns on Wednesday April 15, 2015 @09:15AM (#9380715)
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by masklinn on Wednesday April 15, 2015 @09:21AM (#9380751)
But '0' is not ascii NUL (0x00), it's ascii 0 (0x30).
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by eis on Wednesday April 15, 2015 @09:31AM (#9380811)
Additionally there are a bunch of other things very wrong with the exploit code.

If the connect() fails, it will use file descriptor 1 which is usually stdout and write the request to it and try to read from it.

And there is a problem with strstr() not getting a null terminated string (if the stack memory for recvBuff wasn't automatically zero'd out which some compilers can do).

Why do these people bother writing the exploit in C? A curl one liner is good enough.

Also the check for 'The request has an invalid header name' seems dubious to me because a proxy in front would likely return a different error (the header name is not invalid but rather the range not satisfyable).

Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by ehmmm on Wednesday April 15, 2015 @09:23AM (#9380766)
'0' != '\0'

'0' == 48

Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by benjamincburns on Thursday April 16, 2015 @05:03AM (#9386701)
I wasn't suggesting anything to the contrary...
Re:Remote Kernel Code Execution Via HTTP Request In IIS On W... by ehmmm on Friday April 17, 2015 @05:56AM (#9393230)
Yes, but there also isn't any NULs in the parent. So you can understand the confusion.