Skip to content

Commit 0830de8

Browse files
authored
Merge pull request #20471 from zeroSteiner/feat/mod/ldap/esc-finder-updates
Update the ldap_esc_vulnerable_cert_finder to check enrollment permissions
2 parents c843e36 + 170fbcb commit 0830de8

File tree

3 files changed

+168
-151
lines changed

3 files changed

+168
-151
lines changed

documentation/modules/auxiliary/gather/ldap_esc_vulnerable_cert_finder.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,15 @@ if ($editFlags -band $EDITF_ATTRIBUTESUBJECTALTNAME2) {
240240

241241
## Options
242242

243-
### REPORT_NONENROLLABLE
244-
If set to `True` then report any certificate templates that are vulnerable but which are not known to be enrollable.
245-
If set to `False` then skip over these certificate templates and only report on certificate templates
246-
that are both vulnerable and enrollable.
243+
### REPORT
244+
What templates to report (applies filtering to results).
247245

248-
### REPORT_PRIVENROLLABLE
249-
If set to `True` then report certificate templates that are only enrollable by the Domain and Enterprise Admins groups.
250-
If set to `False` then skip over these certificate templates and only report on certificate templates that are
251-
enrollable by at least one additional user or group.
246+
* **all** - Report all certificate templates.
247+
* **published** - Report certificate templates that are published by at least one CA server.
248+
* **enrollable** - Same as above, but omits templates that the user does not have permissions to enroll in.
249+
* **vulnerable** - Report certificate templates where at least one misconfiguration is appears to be present.
250+
* **vulnerable-and-published** - Same as above, but omits templates that are not published by at least one CA server.
251+
* **vulnerable-and-enrollable** - Same as above, but omits templates that the user does not have permissions to enroll in.
252252

253253
## Scenarios
254254

lib/msf/core/exploit/remote/ldap/active_directory.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def adds_sd_grants_permissions?(ldap, security_descriptor, matcher, test_sid: ni
294294
case ace.body.sid
295295
when Rex::Proto::Secauthz::WellKnownSids::SECURITY_WORLD_SID
296296
matcher.apply_ace!(ace)
297+
when Rex::Proto::Secauthz::WellKnownSids::SECURITY_AUTHENTICATED_USER_SID
298+
matcher.apply_ace!(ace)
297299
when Rex::Proto::Secauthz::WellKnownSids::SECURITY_PRINCIPAL_SELF_SID
298300
matcher.apply_ace!(ace) if self_sid == test_sid
299301
when Rex::Proto::Secauthz::WellKnownSids::SECURITY_CREATOR_OWNER_SID

0 commit comments

Comments
 (0)