Skip to content

Commit

Permalink
stopgap fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tw1sm committed Oct 25, 2024
1 parent bf0eec9 commit 54b007b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bofhound/ad/adds.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,10 @@ def build_certificate_chain(start_ca_obj, all_ca_obj):
if not issuer_ca:
break
chain.append(issuer_ca)

if issuer_ca == current_ca:
# Found a circular reference (potentially a stopgap solution)
break
current_ca = issuer_ca

return [cert.Properties['certthumbprint'] for cert in chain]
Expand Down

0 comments on commit 54b007b

Please sign in to comment.