Skip to content
Misconfiguration Write-up Intermediate

⏱️️ Timelapse — One Certificate. Full Compromise

A Domain Controller exposed an SMB share readable by anonymous guest users, which contained a password-protected backup archive holding a WinRM client certificate and private key. After cracking both passwords offline, the attacker could authenticate to WinRM with the certificate and obtain a shell as the user legacyy.

medium.com

Published on medium.com

We’re still on that CRTP learning train — getting reps in and sharpening the process. This time I’m practicing on a box from Hack The Box.

Jabaribrown, 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 SMB share was configured to allow anonymous guest read access and held sensitive credential material (a WinRM client certificate bundle) that was only protected by weak, crackable passwords.

Impact

An unauthenticated attacker could read the exposed share, crack the weak passwords and gain a remote shell as the user legacyy on the Domain Controller.

What the attacker needed

Network access to SMB and WinRM; no credentials needed initially; weak archive and PFX passwords

The fix

The share should not allow anonymous guest access and should not store credential material such as certificate bundles; any such archive should use a strong password.

How it was found

  1. Scan the target with Nmap to find open ports and services.
  2. Authenticate to SMB anonymously as guest and list the shares.
  3. Spider the readable Shares share and download the files found.
  4. Crack the zip archive password offline with John the Ripper.
  5. Crack the PFX password offline with John the Ripper.
  6. Split the PFX into a certificate and private key with OpenSSL and connect to WinRM using Evil-WinRM.

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.

A server was sharing files with anyone who connected, without asking for a real password. One shared file was a locked backup containing a certificate, which works like a digital ID card for logging in remotely. The author guessed the backup's password and then the certificate's password, and used the ID card to log in as an employee.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.