SQL Injection Vulnerability - KSU-CS-Software-Engineering/HSPC GitHub Wiki
We were notified from one of the Software Testing Teams that our project has a SQL Injection when creating accounts.
This bug was found when testing account registration. Testers were able to change values in the database by injecting SQL DML commands into the required fields upon account registration and drop values from the tables.
Steps to reproduce:
-
Navigate to the Login Page.
-
Register as a student account and note the email used.
-
Enter valid information to create an account.
-
At the Phone Number textbox, enter:
โ, โ1โ, โโ, โpasswordโ); update users set AccessLevel = 6 where Email= โ************@gmail.comโ;--โ
Where the
Email
is equal to the one used to start the new account. -
This will effectively update the new user to the highest permission level.
Reference:
Software Testing | Bugs Reference