Fix a SQL injection
Mid · debugging · 20 min · runtime python
Brief
A query is built with an f-string from user input. Explain the vulnerability and rewrite it with parameter binding.
3 progressive hints are available in the editor.
Public checks
- uses binding — expected:
placeholder with a parameter tuple