Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 146965 - Last Review: October 31, 2006 - Revision: 1.2
GetAdmin Utility Grants Users Administrative Rights
This article was previously published under Q146965
A utility, Getadmin.exe, is being circulated on the Internet that grants
normal users administrative rights by adding them to the Administrators
group. This utility can be run from any user context except Guest and
grants a local user account administrative rights.
This problem does not occur on Windows NT 3.51.
Getadmin.exe works because of a problem in a low-level kernel routine that
causes a global flag to be set which allows calls to NtOpenProcessToken to
succeed regardless of the current users permissions. This in turn allows a
user to attach to any process running on the system, including a process
running in the system's security context, such as WinLogon. Once attached
to such a process, a thread can be started in the security context of the
process.
In the specific case of GetAdmin, it attaches to the WinLogon process,
which is running in the system's security context, and makes standard API
calls that add the specified user to the administrators group.
It is important to note that any account which has been granted the rights
to "Debug Programs" will always be able to run Getadmin.exe successfully,
even after the application of the hotfix. This is because the "Debug
Programs" right allows a user to attach to any process. The "Debug
Programs" right is initially granted to Administrators and should be only
granted to fully trusted users.
Also, if Getadmin.exe is run with an account that is already a member of
the administrators local group, it will still work (even after applying
the hotfix). This is by design. Members of the administrators group always
have the rights to make the calls GetAdmin needs in order to succeed.
A fix to the Windows NT Kernel routine, which was being used to set the
global flag, has been developed by Microsoft. This fix prevents an
application, such as Getadmin.exe, from attaching to WinLogon (or any
other process not owned by the user) and from granting administrative
rights to users.
To resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows NT Server 4.0, Terminal Server Edition. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
152734Â
(http://kbalertz.com/Feedback.aspx?kbNumber=152734/EN-US/
)
How to Obtain the Latest Windows NT 4.0 Service Pack
For your convenience, the English version of this post-SP3 hotfix has been
posted to the following Internet location. However, Microsoft recommends
that you install Windows NT 4.0 Service Pack 4 to correct this problem.
Microsoft has confirmed this problem could result in some degree of
security vulnerability in Windows NT version 4.0.
This problem was first corrected in Windows NT 4.0 Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 4.
Getadmin.exe must be executed locally and works for accounts on a
workstation or member server and for domain accounts on a primary domain
controller (PDC). The utility does not function on a backup domain
controller (BDC) because the account database on a BDC is read only. The
only way to use GetAdmin to modify a domain account database is to log on
to a primary domain controller and run the utility locally on the PDC.
For more information on Windows NT security, please see the following
Internet sites:
NOTE: Because the Microsoft Web site is regularly updated, the site
address may change without notice. If this occurs, link to the Microsoft
home page at the following address:
http://www.microsoft.com/
(http://www.microsoft.com/)
APPLIES TO
- Microsoft Windows NT Server 4.0, Terminal Server Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
- Microsoft Windows NT Server 4.0 Standard Edition
| kbbug kbfile kbfix kbnetwork KB146965 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please