Anthem
Executive summary — Anthem is an Easy Windows room built around a blog running the Umbraco CMS. Nothing is "exploited" in the classic sense: the whole box falls to careful reading. A password leaks through robots.txt, a nursery rhyme identifies the administrator, a sibling email address reveals the naming pattern, RDP accepts the guessed credentials, and a backup file on disk holds the Administrator password. A Web OSINT → Username guessing → RDP → ACL tampering → runas Administrator journey.
| Platform | TryHackMe |
| Operating system | Windows |
| Difficulty | Easy |
| Room | Anthem |
| Target IP | MACHINE_IP |
Attack map
[80/HTTP] Umbraco blog "Anthem.com"
| robots.txt -> stray string that looks like a password
| poem on a post -> Solomon Grundy -> admin = S.G.
| "We are hiring" post -> JD@anthem.com -> pattern is initials@anthem.com
| page source / author profile -> 4 flags hidden in meta tags and form text
v
[3389/RDP] hydra confirms sg : (robots.txt string)
| xfreerdp -> desktop as SG, user.txt
| C:\backup\restore.txt -> "Access is denied"
v
[PRIVESC] SG owns/edits the ACL -> grant Users read access
| restore.txt -> Administrator password
v
[ROOT] runas /user:Administrator cmd.exe -> root.txt
1. Reconnaissance
A single Nmap pass with service detection and the default script set is enough to map the attack surface. -Pn skips host discovery, which matters on Windows hosts that drop ICMP and would otherwise look "down".
sudo nmap -sV -sC -Pn MACHINE_IP
PORT STATE SERVICE VERSION
80/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
3389/tcp open ms-wbt-server Microsoft Terminal Services
| rdp-ntlm-info:
| Target_Name: WIN-LU09299160F
| Product_Version: 10.0.17763
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows
Analysis: only two ports answer. Port 80 serves the website and port 3389 is Remote Desktop. There is no SMB, no WinRM and no database exposed, so the realistic path is "find valid credentials on the website, then log in over RDP". Product version 10.0.17763 corresponds to Windows Server 2019 / Windows 10 1809.
The room questions ask which ports serve the web and remote-desktop roles: 80 and 3389.
2. Web enumeration
The site is a small blog titled "Anthem.com". Before touching any tooling heavier than a browser, check the places developers forget about. First, HTML comments (the Nmap http-comments-displayer script finds none), then robots.txt, which lists paths the owner does not want crawled and is therefore a free map of interesting locations:
curl http://MACHINE_IP/robots.txt
UmbracoIsTheBest!
# Use for all search robots
User-agent: *
# Define the directories not to crawl
Disallow: /bin/
Disallow: /config/
Disallow: /umbraco/
Disallow: /umbraco_client/
Two findings at once. The Disallow entries (/umbraco/, /umbraco_client/) identify the CMS, and the stray first line is clearly a password that somebody pasted into the wrong file. WhatWeb agrees with the picture (Bootstrap, jQuery 1.11, title Anthem.com - Welcome to our blog):
whatweb -a 3 MACHINE_IP
| Question | Answer |
|---|---|
| Password-looking string in the crawler file | UmbracoIsTheBest! |
| CMS | Umbraco |
| Domain of the site | anthem.com |
3. Identifying the administrator
A password is useless without a username. The blog post A cheers to our IT department praises the unnamed admin with a poem:
Born on a Monday,
Christened on Tuesday,
Married on Wednesday,
Took ill on Thursday,
Grew worse on Friday,
Died on Saturday,
Buried on Sunday.
That was the end...
Searching those lines returns the English nursery rhyme Solomon Grundy, so the admin is Solomon Grundy. This is a small piece of open-source intelligence: the author never states the name, but the poem is a public text that any search engine resolves.
For the email address we need the company's naming convention. The We are hiring post (/archive/we-are-hiring/) lists Jane Doe's address, JD@anthem.com, i.e. initials at the company domain. Applied to the admin that gives SG@anthem.com.
| Question | Answer |
|---|---|
| Name of the administrator | Solomon Grundy |
| Administrator's email | SG@anthem.com |
4. Flags hidden in the site
Task 2 of the room is a scavenger hunt through the content the CMS renders. All four locations teach the same habit: read the page source, not only the rendered page.
| Flag | Where it hides |
|---|---|
| Flag 1 | The og:description meta tag in the head of /archive/we-are-hiring/ (view-source) → FLAG |
| Flag 2 | The placeholder text of the search box in the same page's HTML form, after a long run of spaces → FLAG |
| Flag 3 | Jane Doe's author profile at /authors/jane-doe/ → FLAG |
| Flag 4 | The og:description meta tag in the source of /archive/a-cheers-to-our-it-department/ → FLAG |
Analysis: Open Graph tags are generated for social-media previews, so people rarely look at them in the browser. Anything that goes into a CMS field can end up in markup nobody reviews, which is why secrets must never be stored in content.
5. Initial access over RDP
We now hold one password and a handful of plausible usernames. Rather than guess by hand, list the candidates in a file and let Hydra try each against RDP with the single known password. Using one password and a short user list keeps the attempt count tiny, so there is no risk of an account lockout:
printf 'sg\nSG\nSG@anthem.com\nsg@anthem.com\n' > usernames.txt
hydra -L usernames.txt -p 'UmbracoIsTheBest!' rdp://MACHINE_IP
-Lreads a list of logins,-p(lowercase) supplies one fixed password.- Hydra's RDP module is experimental and reduces the task count automatically, as it warned during the run.
[3389][rdp] host: MACHINE_IP login: sg password: UmbracoIsTheBest!
[3389][rdp] host: MACHINE_IP login: SG password: UmbracoIsTheBest!
[3389][rdp] account on MACHINE_IP might be valid but account not active for remote desktop: login: sg@anthem.com ...
Analysis: the local account issg(Windows usernames are case-insensitive, so both spellings pass). The email form is not a Windows account, which is why Hydra reports it as not usable for RDP. The password that leaked inrobots.txtis reused for the real login: a textbook credential-reuse failure.
Log in with FreeRDP. /cert:ignore accepts the self-signed certificate and +clipboard enables copy/paste between the machines:
xfreerdp /v:MACHINE_IP /cert:ignore /u:sg /p:'UmbracoIsTheBest!' /h:1024 /w:1500 +clipboard
The user flag sits on the Desktop of sg: user.txt → FLAG.
6. Finding the Administrator password
The room tells us the password is "hidden". A reasonable assumption is that it lives in a plain text file, so enumerate every .txt on the system drive with the built-in where utility (/R recurses from the given root):
where /R C:\ *.txt
C:\backup\restore.txt
C:\inetpub\wwwroot\Web\robots.txt
C:\inetpub\wwwroot\Web\App_Data\Logs\UmbracoTraceLog.WIN-LU09299160F.txt
...
A C:\backup\restore.txt in a non-standard top-level folder stands out immediately. Reading it fails:
type C:\backup\restore.txt
Access is denied.
The file's ACL denies read access to our user, but the room expects the permissions themselves to be editable by sg. In File Explorer (with hidden items shown, because C:\backup is a hidden folder), open the file's Properties → Security tab and grant the local Users group read (or full) access. The command-line equivalent is icacls C:\backup\restore.txt /grant Users:R; the room itself uses the GUI. Afterwards the file reads normally and holds the Administrator password:
ChangeMeBaby1MoreTime
Analysis: the weakness is not the missing read permission, it is that an unprivileged user is allowed to change the permissions (the owner or WRITE_DAC right is what permits this). Hiding a folder and denying a read is not a control when the same user can rewrite the ACL. The deeper issue is a plaintext credential backup in the first place.
7. Privilege escalation to Administrator
With the password in hand, runas launches a new command prompt under the Administrator account. It asks for the password interactively (typing it into the console is intentional, since runas has no password argument for safety reasons):
runas.exe /user:Administrator cmd.exe
A second console window opens running as Administrator. From there locate and print the flag:
where /R C:\Users root.txt
type C:\Users\Administrator\Desktop\root.txt
Result: root.txt → FLAG.
Vulnerability summary
| Phase | Component | Vulnerability | Impact |
|---|---|---|---|
| Recon | robots.txt | Password stored in a public file | Valid credential disclosed |
| Recon | Blog content | Public poem and email pattern reveal admin identity | Username derivation |
| Recon | CMS pages | Sensitive strings in meta tags and form markup | Information disclosure |
| Access | RDP (3389) | Credential reuse, no lockout or MFA | Interactive desktop as sg |
| Privesc | C:\backup\restore.txt | Plaintext admin password; user can change the ACL | Administrator credentials |
Lessons learned
- Never put secrets in
robots.txt, page markup or CMS content fields. Treat anything web-reachable as public. robots.txtis a pentester's shortcut: itsDisallowlines fingerprint the software and point to sensitive paths.- Identity leaks through "harmless" content. A poem plus a colleague's email address is enough to derive an admin's account name; keep admin personas and naming schemes out of public posts.
- Do not reuse web-facing passwords for system accounts, and put RDP behind a VPN, network-level authentication, MFA and account lockout.
- Permissions matter more than hidden folders: users must not hold rights to modify ACLs of backup data, and credentials should never be backed up in plaintext.
- Offensively: read page source, enumerate files by extension with
where /Rordir /s, and always test whether you can edit an ACL you cannot read through.