New We plan on releasing bi-monthly edits and updates to the OS-CFDB project! Please check out the search function!
Insecure Active Direcotry User ACLs
Service |
Internal Penetration Testing |
External Penetration Testing |
Author Name |
Twitter Handle |
Email |
Created |
Updated |
Alexander Rymdeko-Harvey |
@Killswitch-GUI |
|
09/27/2017 |
09/27/2017 |
Description
The technical overview of a finding, not meant to be all-inclusive.
Service Principal Names (SPNs) are a Microsoft way of designating and identifying where services are running in a domain. These SPNs are attached to accounts within active directory. Any Domain User has the ability to lookup these attributes and view the DACL (Discretionary Access Control List). A DACL is an access control list that is controlled by the owner of an object, and that specifies the access particular users or groups can have to the object. An attacker can enumerate these DACLS to find users in the Domain that have over permissive DACLS. This data allows an attacker to target specific users where the current user context is granted 'GenericAll/GenericWrite' rights over a given user object. An attacker can then modify the user’s 'serviceprincipalname,' conduct a Kerberos attack of the user SPN set by request the TGT (Ticket Granting Ticket). Immediately following attackers reset the 'serviceprincipalname' and begin offline brute-forcing.
Impact
How a finding result will affect an organization.
If an attacker gains access to any user within the domain, they can start to request all AD (Active Directory) DACLs. If an attacker can break the password due a weak password, they will have the ability to impersonate that users account. Which could lead to further Domain and system compromise.
Recommendation
Current plan of action recomended.
The assessment team recommends removing the 'GenericAll/GenericWrite' attribute for the affected systems. An audit of critical and high privileged accounts should be conducted to ensure they are following the least privileged model.