![]() |
![]() |
|
October 06, 2003Windows PostThreadMessage() Arbitrary Process Killing VulnerabilitySecurityFocus has a report of a new vulnerability which can cause any process in Microsoft Windows to be killed with a specially crafted message, due to a design flaw in PostThreadMessage(). There is even an exploit showing how this could be done. What is scarey about this is the fact that if the reports are true a running process that has a message queue and is sent one of 3 different messages, the process may terminate. This termination will occur despite any security level differences between processes, as well as any safe guards to prevent this behaviour, such as requiring a password before the process is killed. I've seen something similar to this before in something Mark wrote at SysInternals. But this is one of those things that is so trival to exploit, but so hard to fix. Not sure what to make of it. One thing that never made sense to me is the lack of information on message processing based on privilege. Try it yourself. As a normal user, use runas to run something with Administrative privileges that requires UI updates. I use explorer.exe as an example. Right click in a folder and create a new file. You won't see the file, or be able to "edit" the name. When an update message is called, it gets gobbled. So in many cases, you have to manually get the app to refresh (F5) to see any changes. For some reason it supressed the messages. So why wouldn't the message processing between security contexts be able to do the same thing to reject a WM_QUIT message from a lower process? Seems silly if you ask me. Posted by SilverStr at October 6, 2003 12:46 PM | TrackBackComments
When I use RunAS in X/KDE, it seems to refresh fine... :-) Posted by: Wim at October 7, 2003 09:12 AMOf course, no body but security freaks use runas because the default in xp is to run as with admin privileges, so people use that. And because it's easy people aren't going to suddenly make it more diffucult for themselves I don't think. I think that OS/X got it right in their setup with a nice integrated sudo system. Posted by: Arcterex at October 8, 2003 11:23 AM |
![]() ![]()
My 5 Favorite Books
Writing Secure Code
Secure Programming Cookbook Security Engineering Secure Coding Principles & Practice Inside the Security Mind ![]()
My 5 Favorite Papers
Smashing the Stack
Penetration Studies Covert Channel Analysis of Trusted Systems DoD Trusted Computer System Evaluation Criteria NSA Security Recommendation Guides ![]()
Archives
December 2005
November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 February 2005 January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 ![]() |
|