' OR '1'='1
as the username and password, the query becomes:
Users
table, effectively bypassing authentication.
' OR '1'='1
' OR '1'='1
1; DROP TABLE Users; --
Users
table, causing data loss.
RestrictedUser
can only perform SELECT
operations on the Users
table, reducing the impact of a potential SQL injection attack.