Skip to content
Info disclosure Write-up Intermediate

Simple yet effective.

A script on a UCS server passed the machine account password in cleartext as a command-line argument, visible to any local user monitoring process creation. An attacker with a low-privileged domain account could capture this password and use it to retrieve all directory objects, including password hashes, leading to full domain compromise.

medium.com

Published on medium.com

Caution: This BlogPost is replicated here from my old company (with permission) as the company will be closed and I wanted to avoid that the articles vanish. If you can’t read the full BlogPost here, you can also read it at my github.

Kuhn Raphael, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the script passed the machine account password as a command-line argument instead of using a protected file or secure input method, exposing it to process monitoring.

Impact

An attacker could obtain password hashes for all domain users, including administrators, and use them to escalate to domain administrator, resulting in complete compromise of the network.

What the attacker needed

Low-privileged domain account; network access; SSH access to a server

The fix

The issue was fixed by removing the password from the command line and updating the script, with a patched version released.

How it was found

  1. Obtain a low-privileged domain user account and network access.
  2. Log in via SSH to a server using misconfigured permissions.
  3. Monitor process creation on the server.
  4. Observe the check_univention_joinstatus script running with the machine password in cleartext.
  5. Use the captured password to query the LDAP directory and retrieve all objects with attributes, including password hashes.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When a program runs on a computer, other users on that same computer can often see the full command line it was started with. Here, a maintenance script included a secret password directly in that command line, so anyone watching could read it. That password gave access to the central user database, letting an attacker steal password hashes for every account.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.