app/search.py:14SQL injection in the search endpoint
conn = sqlite3.connect("items.db")conn.row_factory = sqlite3.Rowcur = conn.cursor()cur.execute(f"SELECT id, name, price FROM items WHERE name = '{q}'")search_items reads q from request.args at line 10. The cur.execute call at line 14 then puts q into the SQL string with an f-string. A value such as ' OR '1'='1 changes the WHERE clause.
Found by semgreppython.flask.security.injection.tainted-sql-string.tainted-sql-string