Hacking VaultGate: Three Paths to One Flag
Target: http://192.168.122.1:3000 — a local Docker deployment of VaultGate on my lab network (your target IP will differ). Download VaultGate: it's open-source — grab it and spin up your own copy in one command (see Section 8): https://github.com/todorslavovv/three-paths-ctf Rig: a Kali Linux VM attacking the target across a private network. The app runs in a disposable Docker container. The flag…
VaultGate, an open-source CTF challenge, is hosted locally on a Docker container for easy testing and practice. The app is built using Node.js, Express, and SQLite, and features a chatbot called VaultBot. The flag, CTF{vaultgate_three_paths_one_flag}, is hidden on the server, and the objective is to recover it.
There are three independent ways to access the app, all leading to the flag. Path 1 involves guessing the admin password, opening the maintenance console, and pivoting through a hidden helper service to read the flag file. Path 2 exploits an outdated dependency to run commands without logging in. Path 3 involves interacting with the site's chatbot to leak the secret.
The reconnaissance phase involves gathering information about the target before attempting any attacks. This includes asking the server for its identity (curl -sSI), cross-checking the server information with another tool (whatweb), reading the robots.txt file (curl -s), and examining the /api/status endpoint (curl -s) to discover the app's exact version and dependencies.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.