All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Cybersecurity · Web security · Hard
Web security practice: Download Anything
Invoices are downloaded by filename. Any filename. Download a file from the server that isn't an invoice.
The problem
- Vulnerability class: Broken Access Control (Path Traversal).
- Download a file from the server that isn't an invoice.
You'll use: URLs & HTTP · Cookies & DevTools · SQL injection · XSS · Brute force · OWASP Top 10
Solve it (expert level)3–5 min · Read code — no writing
Show a hint
Open an invoice and look at the URL. The server reads whatever filename you give it.
What this teaches (spoiler)
Path traversal: never build file paths from user input. Resolve the final path and check it's inside the allowed folder — or better, map IDs to files on the server.