Runtyme
All practice problems

Cybersecurity · Web security · Intermediate

Web security practice: The Chatty Search

The menu search glues your text straight into a SQL query. Make the search reveal menu items that aren't public.

The problem

  • Vulnerability class: Injection (SQL).
  • Make the search reveal menu items that aren't public.

You'll use: URLs & HTTP · Cookies & DevTools · SQL injection · XSS · Brute force · OWASP Top 10

Solve it free in your browser3–5 min · Read code — no writing
Show a hint

Open the Server log tab and search for something. Look at the query that gets built.

What this teaches (spoiler)

SQL injection happens when input is pasted into a query string. Always use parameterized queries (or an ORM that does) so input is data, never code.

Bug of the Day: a new problem every midnight, free for everyone. Keep a streak with your friends.