News for hackers. Stuff that matters.
Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by blinkingled on Tuesday April 14, 2015 @11:12PM (#9378701)
It's 2015 and Microsoft still has a kernel space HTTP component, thus needing to run some part of the web server code paths in SYSTEM user's context!

I am curious as to what the reasons are - what are the benefits of this that outweigh the huge risk (as demonstrated repeatedly by the various vulnerabilities) of running in HTTP code in the kernel? Only thing I can think of is they are trying to squeeze the last bit of performance / scalability but surely that could only mean that there are parts of the kernel (ctx switching overhead, threading scalability, page cache performance, etc.) that need to be fixed in order to not need these type of hacks in 2015?

Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by ComputerGuru on Tuesday April 14, 2015 @11:23PM (#9378733)
It's actually not "still has" - this was a major feature that brought significant performance improvements and something they pushed hard for: http://www.microsoft.com/technet/prodtechnol/WindowsServer20...

(Not saying I agree or disagree, just saying that this isn't so much an ancient artifact as it is a fairly recent and purposeful addition.)

Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by blinkingled on Tuesday April 14, 2015 @11:36PM (#9378770)
• Kernel-mode caching. Requests for cached responses are served without switching to user mode.

-- NT is missing sendfile()? Also syscalls are fast on x86_64, most stuff is dynamic now a days and serving static files straight from page cache is fast enough.

• Kernel-mode request queuing. Requests cause less overhead in context switching

-- This one is somewhat valid but given you can ctx switch pretty fast on modern CPUs it is not clear how big the gains are.

Yeah but there would be some gains - that's not deniable. Question is whether they are big enough to risk something like the vulnerability at hand.

Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by enigmo on Wednesday April 15, 2015 @04:00AM (#9379475)
It has TransmitFile and TransmitPackets: https://msdn.microsoft.com/en-us/library/windows/desktop/ms7...

They were in use (at least TransmitFile was) by IIS long before http.sys was conceived.

Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by kogir on Wednesday April 15, 2015 @03:42AM (#9379417)
I imagine the thinking was similar to that behind FreeBSD's accf_http kernel module? https://www.freebsd.org/cgi/man.cgi?accf_http

HTTP.sys obviously does a lot more, but especially back in the Windows 2000 days, the performance difference was substantial.

Re:Vulnerability in HTTP.sys Could Allow Remote Code Execution by justincormack on Wednesday April 15, 2015 @04:27AM (#9379556)
Linux used to have in kernel httpd too, called tux[1].

[1] https://en.wikipedia.org/wiki/TUX_web_server