HackBlue

Labs / Web config review

Database backups with a directory listing

An nginx location serves the backup folder with autoindex on. Read the config, browse it as a visitor would with curl, and use the access log to see who downloaded what.

  • Terminal mission
  • Beginner
  • 3 objectives
  • 0 of 3 solved

What you’re looking at

An nginx location serves the backup folder with autoindex on. Read the config, browse it as a visitor would with curl, and use the access log to see who downloaded what.

Your goal: Find the folder listing that exposed database backups and who downloaded them.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Words you will meet

HTTPS
HTTP protected with TLS encryption
IP
Internet Protocol address, the number that identifies a machine on a network

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

A cron job writes nightly database dumps to /srv/backups/shop. A developer exposed the folder over HTTPS “for a day” so a contractor could fetch one dump.

autoindex on makes nginx print a clickable list of every file in the directory. The access log records every request with status and bytes sent.

analyst@web-01

web-01 · Web config review

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 258 words, about 2 min. It gives away every answer, so try the steps first.