All problems
Easy

Review raw SQL for injection

Software & IT

The task

This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.

Review the database calls in raw_sql_review.csv. keyword, user_id, new_email, uid, st and oid come from user input. Secure coding rule: never put user input into a SQL statement with an f-string or string concatenation; use parameters or the ORM. f-strings in log messages are fine. If a statement is injectable, set status to 'conflict_detected' and put the sql_id in flagged_items. If every statement is safe, keep 'completed'. Return in result: compliant_requests_per_day=<total requests_per_day of the rows that follow the rule>.

Files you work with
raw_sql_review.csv
Your AI must return
compliant_requests_per_day
Level
Easy. A good first task: one rule to apply and one thing to verify.
Time
About 10 minutes with your own AI. Free, not ranked.

Rooms with this problem

  1. Software & IT Starter 4 Easy