Skip to content

Commit b3602b2

Browse files
authored
Merge pull request rapid7#19919 from jheysel-r7/fix/nil_check/esc_cert_finder
Ldap vulnerable cert finder minor fix for ESC13 detection
2 parents 36b13f5 + 62b8ded commit b3602b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/gather/ldap_esc_vulnerable_cert_finder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ def find_esc13_vuln_cert_templates
453453
groups = []
454454
entry['mspki-certificate-policy'].each do |certificate_policy_oid|
455455
policy = get_pki_object_by_oid(certificate_policy_oid)
456-
next if policy['msds-oidtogrouplink'].blank?
456+
457+
next if policy&.[]('msds-oidtogrouplink').blank?
457458

458459
# get the group and check it for two conditions
459460
group = get_group_by_dn(policy['msds-oidtogrouplink'].first)

0 commit comments

Comments
 (0)