LoneWolf210@gmail.com wrote:
> I'm sure that most of you have heard of the privilege escalation
> technique of replacing logon.scr with cmd.
We've heard a lot about it, but this still doesn't make it a privilege
escalation. To replace logon.scr, you already need to have admin rights.
> However when the prompt was not run with system rights
> as when it is when it replaces logon.scr.
Of course not, it is run with the rights of the user.
> I was wondering if anyone knew why this was?
WinLogon uses Impersonation to execute the CreateProcess() call with the
credentials of the user. On Windows Server 2003 and later, it uses
CreateProcessAsUser().