Diving into Pre-Created Computer Accounts
Pre-created computer accounts with the 'Assign this computer account as a pre-Windows 2000 computer' option have a password equal to the computer name in lowercase. An attacker who can list such accounts can authenticate and potentially exploit a certificate template vulnerability.
Published on trustedsec.com
Penetration Testing Red Team Adversarial Attack Simulation Security Testing & Analysis
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
Impact
An attacker could authenticate as the computer account and then exploit a certificate template vulnerability to escalate privileges.
What the attacker needed
Domain user account; vulnerable certificate template; pre-created computer account with predictable password
The fix
Administrators should avoid using the pre-Windows 2000 computer account option and ensure pre-created accounts are properly managed or removed.
How it was found
- Search Active Directory for computer accounts with UserAccountControl value 4128 (pre-created and never used).
- For each candidate, try authenticating with the computer name in lowercase as the password.
- If authentication returns STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, the password is correct.
- Change the password using a tool like rpcchangepwd.py or kpasswd.
- Use the account to request a certificate from the vulnerable template.
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.
In Windows networks, computers have accounts too. If an administrator creates a computer account in advance and ticks a certain box, the password for that account is simply the computer's name in lowercase. If that account is never used, the password stays that way. An attacker who can see the list of computer accounts can guess the password and log in as that computer.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.