Question 1
You are building a login feature for a web application. The frontend sends the user’s email and password to the backend API. The backend validates credentials against a database. Which security issues exist in the code given below?
Frontend: script.js
Backend: app.py
The SQL query is vulnerable to SQL injection attacks
Passwords are stored and compared in plain text
No authentication token (session/JWT) mechanism is implemented
All of these.
