Runtyme
All practice problems

Cybersecurity · Web security · Intermediate

Web security practice: Review Bomb

Product reviews are shown on the page exactly as written. Post a review that would run code in other visitors' browsers.

The problem

  • Vulnerability class: Injection (Cross-Site Scripting).
  • Post a review that would run code in other visitors' browsers.

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

Post a normal review first. Does the site change what you typed at all?

What this teaches (spoiler)

Cross-site scripting happens when user content is rendered as HTML. Escape output by default (React does unless you use dangerouslySetInnerHTML) and add a CSP as a second layer.

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