Daniel Bae
Menu

Defensive edition

What a helpdesk account can change in a directory

Daniel BaeOriginally published

SecurityHack The BoxActive Directory

The helpdesk client was meant to look up users. Its embedded credentials, readable directory attributes, and the support group’s permissions each granted a different kind of access.

A distributed client cannot keep the directory’s password

Installation software was available on an anonymous file share. The helpdesk utility it contained had a reusable LDAP credential embedded in the binary, and the client shipped with the information needed to recover that value. Obfuscation inside a program its recipients hold is not secrecy. The client also bound without transport encryption, a separate finding. TLS would close that one, but the credential was already present on the recipient’s machine.

I would have the client use the caller’s identity, or place the narrow lookup operation behind a service that enforces the caller’s permissions. Existing copies of the client make credential rotation part of such a change. Removing anonymous access to the share is a separate fix worth verifying on its own.

Readable attributes deserve a content review

A directory attribute visible to the lookup account contained another account’s password. The lookup feature needed a small set of user fields. The actual read permissions covered more information, and an ordinary descriptive field had become a place to store a secret.

I would review the attributes exposed to the helpdesk role, remove credentials from descriptive fields, and rotate values that had been readable. Membership granting remote access warrants a separate review from the permission to look up a colleague.

Who can change a resource’s trust rules

The support group held full control over the domain controller’s computer object. Those permissions included settings that govern delegation. Kerberos honored the directory’s configured trust relationships, including ones the support role had sufficient authority to change.

I would remove broad write access to that object and review computer-account creation rights as a separate permission. Tightening who may create computer accounts is worthwhile, but it does not substitute for removing the write access; the permission on the domain controller’s object is the root problem. Monitoring changes to delegation policy alongside computer-account creation would help an administrator investigate whether a trust relationship was expected and who approved it.