Skip to content

Conversation

@chvancooten
Copy link
Contributor

@chvancooten chvancooten commented May 3, 2024

This (VERY simple) PR fixes an edge case I encountered in our production environment, where user and computer objects would have an SPN set for delegation in the following format:

Service/HOSTNAME\E0FOOBAR:1337

This would be parsed incorrectly by BloodHound.py, leading to a fatal error with the \e0 escape (UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 11: invalid continuation byte) upstream in pyasn1.

Since the SAM should not contain the extraneous information from this SPN anyway, the fix for this is simple, we add another split call to remove anything that does not belong to the ASN. In my testing, this fixed the edge case.

@chvancooten chvancooten changed the title Fix edge-case in constrained delegation parsing logic for users Fix edge-case in constrained delegation parsing logic May 3, 2024
@dirkjanm dirkjanm merged commit 92521a0 into dirkjanm:master Jul 26, 2024
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.

2 participants