Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for a custom additional ticket for S4U2Proxy #1183

Merged
merged 3 commits into from
Oct 22, 2021

Conversation

ShutdownRepo
Copy link
Contributor

In this blogpost Elad Shamir explains that Kerberos Constrained Delegations configured without Protocol Transition (a.k.a. with "Kerberos only" set) prevents a service from obtaining a forwardable TGS when conducting an S4U2Self. He demonstrates a technique using RBCD to bypass that. The steps are as follows

  1. serviceA is configured for KCD Kerberos only
  2. serviceA's msDs-AllowedToActOnBehalfOfOtherIdentity attribute is set to serviceB
  3. serviceB's credentials are used to ask for admin's forwardable ticket for one of serviceA's SPNs (common rbcd abuse): getST.py -spn cifs/serviceA -impersonate admin domain/serviceB:password
  4. serviceA's credentials are then used to operate an S4U2Proxy to obtain a forwardable TGS for admin to one of the services serviceA can delegate to. For this to work, the TGS obtained in step 3 has to be included as an additional ticket. This PR allows this step to work: getST.py -spn cifs/target -impersonate admin -additional-ticket admin.ccache domain/serviceA:password

@p0dalirius
Copy link
Contributor

This is cool!! Congrats @ShutdownRepo

@ShutdownRepo
Copy link
Contributor Author

50d1ec9 well that commit title was a failure 😢 the change was brought co-authored by @GeisericII

@0xdeaddood 0xdeaddood added the in review This issue or pull request is being analyzed label Oct 22, 2021
Copy link
Collaborator

@0xdeaddood 0xdeaddood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ShutdownRepo!

This is great! I left a couple of change requests related to typos.

Thanks a lot for this contribution!!!

examples/getST.py Outdated Show resolved Hide resolved
examples/getST.py Outdated Show resolved Hide resolved
examples/getST.py Outdated Show resolved Hide resolved
@0xdeaddood
Copy link
Collaborator

Thanks again! It works great, merging....

@0xdeaddood 0xdeaddood merged commit 4229481 into fortra:master Oct 22, 2021
@0xdeaddood 0xdeaddood removed the in review This issue or pull request is being analyzed label Oct 22, 2021
@ShutdownRepo ShutdownRepo deleted the getST-for-kcd-kerberos-only branch October 23, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants