All practice problems Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.
Cybersecurity · Web security · Intermediate
Web security practice: One Equals One
There's a search box for products. It builds SQL from whatever you type. Make the products search return rows it should hide.
The problem
- Vulnerability class: Injection (SQL).
- Make the products search return rows it should hide.
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
Watch the Server log while you search.
What this teaches (spoiler)
Never build SQL by concatenating input. Parameterised queries keep data and code apart.