Samba 4.x < 4.0.24 / 4.1.16 UF_SERVER_TRUST_ACCOUNT AD DC Privilege Escalation
High Nessus Plugin ID 80916
SynopsisThe remote Samba server is affected by a privilege escalation vulnerability.
DescriptionAccording to its banner, the version of Samba on the remote host is 4.x prior to 4.0.24 / 4.1.16. It is, therefore, affected by a flaw in the Active Directory Domain Controller (AD DC) component due to a failure to implement a required check on the 'UF_SERVER_TRUST_ACCOUNT' bit of the 'userAccountControl' attributes. This vulnerability could allow a remote, authenticated attacker to elevate privileges.
Note that this issue only affects Samba installations acting as Active Directory Domain Controllers that allow delegation for the creation of user or computer accounts.
Also note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.
SolutionInstall the patch referenced in the project's advisory or upgrade to 4.0.24 / 4.1.16 or later.
Alternatively, as a workaround, do not delegate permission to create users or computers to entities other than Domain Administrators.