Mass Assignment

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

Your profile update endpoint copies every field from the request body straight onto the user record. A tester adds a field setting their role to admin and it works. Explain this vulnerability and how to prevent it.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →