Skip to content

Commit

Permalink
CVE-2018-14628: python:descriptor: add get_deletedobjects_descriptor()
Browse files Browse the repository at this point in the history
samba-tool drs clone-dc-database was quite useful to find
the true value of nTSecurityDescriptor of the CN=Delete Objects
containers.

Only the auto inherited SACL is available via a ldap search.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13595

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
  • Loading branch information
metze-samba committed Oct 16, 2023
1 parent 6e862bd commit 3be190d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/samba/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ def get_empty_descriptor(domain_sid, name_map=None):
# "get_schema_descriptor" is located in "schema.py"


def get_deletedobjects_descriptor(domain_sid, name_map=None):
if name_map is None:
name_map = {}

sddl = "O:SYG:SYD:PAI" \
"(A;;RPWPCCDCLCRCWOWDSDSW;;;SY)" \
"(A;;RPLC;;;BA)"
return sddl2binary(sddl, domain_sid, name_map)


def get_config_descriptor(domain_sid, name_map=None):
if name_map is None:
name_map = {}
Expand Down

0 comments on commit 3be190d

Please sign in to comment.