The headers checklist
Three applications written by different teams run on the Verdi company portal: orders, customer support and intranet. Use a six-point checklist to see which security headers their login pages send, and hand in the audit report of the one in the worst shape.
Lab 9 of 11 in the Web Exploitation path. If you get stuck you have 3 hints, from the vaguest to the most precise: they cost 0, 40 and 100 XP.
What you learn
Objectives complete themselves while you work in the terminal; each one is worth experience points:
- Read the audit checklist (50 XP)
- Check the headers of the orders application (70 XP)
- Check the headers of the support application (70 XP)
- Check the headers of the intranet application (70 XP)
Topics: web, intestazioni, hardening, audit.
Commands you will use
The terminal is simulated and understands about forty Linux commands. In this lab you will mostly need these:
cat: prints the contents of a file: the most direct way to read configurations, notes and logs.curl: makes HTTP requests from the terminal and shows the server’s raw answer, headers included.
The simulated environment
The target is an invented host on a simulated private network: you can only reach it from the game terminal.
The target exposes these services:
- Web (HTTP): a web server with pages, APIs or admin panels: the most exposed part of almost every organisation.
The defensive lesson
Once the lab is solved, the write-up explains what went wrong and how to protect yourself:
Security headers cost one line of configuration each and remove whole groups of problems: HSTS enforces HTTPS, the Content-Security-Policy limits where a page loads content from, X-Frame-Options stops it being framed inside someone else’s site, nosniff forbids the browser to guess file types, and the Secure and HttpOnly attributes protect the session cookie. Three applications on the same server had three different levels of care, and the worst was the one facing customers. Defense: a single configuration template for all applications, set on the server and not application by application; an automatic check in the pipeline that fails when a header is missing; periodic reviews with tools that verify headers.
Before and after this lab
To unlock it you must have solved:
- The cookie that is trusted too much (Web Exploitation, medium)
- Headers tell tales (Recon & Scanning, medium)
It is one of the final labs: no other lab requires it.
The Web Exploitation path
Web Exploitation brings the basics into the world of websites and web applications, where a huge share of real attacks happen. You explore invented sites with HTTP requests from the terminal and discover folders someone hoped to hide, cookies the server trusts too much, factory credentials never changed, comments forgotten in the page source and error messages that say too much. The lessons follow the OWASP Top 10 categories, such as Broken Access Control and authentication failures, and each one explains the fix.