Constrained Delegation

Constrained Delegation is a feature in the Kerberos authentication protocol that allows a service to request a Service Ticket for explicitly specified services on behalf of a user.

The Trust this computer for delegation to specified services only privilege must be enabled in the Delegation tab within the object/computer's properties.

Attribute: msDS-AllowedToDelegateTo

SQL can act on behalf of [Image From CRTOarrow-up-right]

When constrained delegation is enabled on a computer, it allows the computer to request a Service Ticket on behalf of another user for a specific service. This is done using the S4U2Self and S4U2Proxy Kerberos extensions.

Enumeration

Exploit

Scenario

SQL$ has constrained delegation rights to CIFS/DC$, and you have access to a host where the TGT of SQL$ is stored in memory.

The goal is to extract the TGT for SQL$ and use S4U2Proxy (which requires Kerberos tickets we can obtain using S4U2Self) to gain access to CIFS/DC$.

circle-info

You must have elevated privileges on the target computer in order to dump TGTs from LSASS.

Last updated