Windows XP 'logon screen' runs as system account

From: Menso Heus (menso@r4k.net)
Date: 12/22/01


Date: Sat, 22 Dec 2001 03:06:13 +0100
From: Menso Heus <menso@r4k.net>
To: vuln-dev@securityfocus.com

Hi,

Recently I discovered that the process that shows the windows xp logon
screen (logonui.exe in your \winnt\system32\ folder) runs as the
'system' user. This process gets started whenever the user logon
screen gets shown, this is either after booting up Windows XP or
when switching users.

In my experience so far the system account in Windows NT/2000 has
(almost?) the same rights as the Administrator account.
I decided it might be nice to kick it a bit in order to see if I
could make it do things it isn't supposed to do.

I replaced the logonui.exe file with the task manager (which showed
the user 'system' owns the process).

From the taskmgr.exe process I tried spawning a new process, cmd.exe.
I received the error "Not enough quota available to process this command.'

I received the same error when I replaced the logonui.exe file directly
with cmd.exe. The command prompt would actually show, but any commands
not built into cmd.exe itself would not run.

After this I replaced the file with NT4's usrmgr.exe to see if I had
rights enough to adjust user settings. It turns out that this is also
restricted.

I also wrote some programs myself to try to push a user from the normal
user group into the admin group through the ADSI interface, but this
didn't work out either.

Please note that the logonui.exe file can only be replaced by a user
that already has administrative rights.

The thing is that a lot of Windows XP users are actually replacing this
file with copies they download of the net. From sites such as
www.themexp.org it is possible to download 'customized logon screens'
which show your favorite actor or sports car or whatever.

I would like to warn for the fact that, since Microsoft chose to use a
binary format for a file that only contains some info on where to place
what pictures during logon and the pictures themselves, it is trivial to
write a trojan that fakes a logon screen and e-mails the entered
usernames & passwords. I have already written & tested one succesfully
on my home network.

It is unclear to me why Microsoft chose to use a binary format for a
file that, as far as I can see, contains nothing more than layout info.
History has already proved that users will gladly trade in security if it
means they can see some chick or something funny during the logon process.

Still, a trojan ofcourse isn't a security bug. Since I do not know how
they restricted the system account I would like to ask you for advice
on this. I have a feeling that it hasn't been done nicely, though I
can't really tell why, probably because I don't understand *how* it
has been done :)

Any help with this would be greatly appreciated,

Menso

-- 
---------------------------------------------------------------------
Anyway, the :// part is an 'emoticon' representing a man with a strip 
of sticky tape across his mouth.   -R. Douglas, alt.sysadmin.recovery
---------------------------------------------------------------------



Relevant Pages

  • Re: When utilizing "Switch User" the music "NEVER" Stops!
    ... 2004 Windows MVP "Winny" Award ... Switch User, changing logons and checking the top of Zone ... >logging onto the 2nd logon and then logging off and back ... >>NEVER stopped thru any of the screens ?? ...
    (microsoft.public.windowsxp.general)
  • Re: visual style of login screen
    ... To configure Windows XP to use the classic logon and shutdown screens for ... every logon session, follow these steps: ... and then click Control Panel. ... How to change the logon window and the shutdown preferences in Windows XP ...
    (microsoft.public.windowsxp.customize)
  • Re: How so I disable the welcome screen for Windows Logon (Standar
    ... Thanks, Sean. ... Uncheck the two boxes in the Windows Logon component's settings ... tht enable the user friendly logon screens. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Enabling Ctl-Alt-Del sequence to logon to computer
    ... but I have Windows XP Professional. ... > the Welcome logon screen. ... > To configure Windows XP to use the classic logon and shutdown screens for ... Double-click User Accounts. ...
    (microsoft.public.windowsxp.security_admin)
  • Changing startup and shutdown screens
    ... Is there a way to change the start up and shutdown ... screens for XP? ... On windows 98 it was simply replacing the logo.sys ... I'm sorry but the windows stuff gets old after a time. ...
    (microsoft.public.windowsxp.customize)