Skip to content
Access control Write-up Intermediate

Welcome (HackSmarter)

A walkthrough of a HackSmarter Active Directory lab where a default password found in a password-protected PDF let the tester spray accounts and take over several users, then abuse a misconfigured certificate template (ESC1) to obtain an Administrator certificate and log in as domain admin. The attacker could escalate from a single low-privileged account to full domain compromise.

Daniel Lewis Follow

Published on medium.com

You are a member of the Hack Smarter Red Team. During a phishing engagement, you were able to retrieve credentials for the client’s Active Directory environment.

Daniel Lewis, 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 a combination of a shared default password left unchanged on multiple accounts and a certificate template that lets low-privileged users request certificates for other identities (ESC1).

Impact

An attacker with one low-privileged account could escalate to full domain administrator access in this lab environment.

What the attacker needed

Starting low-privileged credentials; access to internal network; SMB shares readable by user

How it was found

  1. Scan the target to find the domain controller and open services
  2. Use the starting credentials to list and download SMB shares
  3. Crack the password on the protected PDF to recover a default password
  4. Export the user list and spray the default password across accounts
  5. Use BloodHound to map an attack path and reset passwords of higher-privileged users
  6. Request an Administrator certificate via the vulnerable template and authenticate with it

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.

This is a practice lab, not a real bug report. The tester started with one normal user account, found a shared default password inside a locked PDF, and tried it against other accounts. Several people had never changed it, so the tester could reset their passwords and eventually trick the domain's certificate system into issuing an admin-level login certificate.

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.

More by Daniel Lewis

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.