Prevent SQL Injection

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

  • medium
  • Pro

Your search feature builds a database query by gluing the user's search text into the SQL string, and a tester typed a quote mark followed by some SQL and dumped the users table. Explain how SQL injection works 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 →