You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2026. It is now read-only.
As a developer I want to remove string interpolation from SQL queries in src/javascript/backend/database/queries.js and use parameterized queries So that the application is not vulnerable to SQL injection attacks
Acceptance Criteria
Replace constructs like const query = `SELECT * FROM users WHERE username = '${username}'`; with parameterized queries provided by the DB library (e.g., this.conn.query('SELECT * FROM users WHERE username = ?', [username])).
Details
Found usage of dynamic SQL building via template literals which permits injection. The file contains: SELECT * FROM users WHERE username = '${username}'.
As a developer
I want to remove string interpolation from SQL queries in
src/javascript/backend/database/queries.jsand use parameterized queriesSo that the application is not vulnerable to SQL injection attacks
Acceptance Criteria
const query = `SELECT * FROM users WHERE username = '${username}'`;with parameterized queries provided by the DB library (e.g.,this.conn.query('SELECT * FROM users WHERE username = ?', [username])).Details
Found usage of dynamic SQL building via template literals which permits injection. The file contains:
SELECT * FROM users WHERE username = '${username}'.