Runtyme
All practice problems

Cybersecurity · Web security · Hard

Web security practice: Profile Plus

The profile form saves whatever fields it receives. Change your role through the profile form.

The problem

  • Vulnerability class: Mass Assignment (Broken Object Property Authorization).
  • Change your role through the profile form.

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

Save the form and watch the Server log: which columns get updated?

What this teaches (spoiler)

Never pass request bodies straight to the database. Pick the fields a user is allowed to change.

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