Repository navigation
SQL Injections
Alexis edited this page Apr 16, 2020
·
8 revisions
#SQL Injections
SQL injections are one of the most common form of attacks on the web.
An SQL injection is pretty similar to an XSS attack except that, this time, the hacker enters SQL statements that could delete your whole database, or show sensitive information. SQL injections are extremelly dangerous for your web application and could cost you alot if one of them manages to make their way onto your website.
here's an example
txtUserId = getRequestString("UserId");
txtSQL = "SELECT * FROM Users WHERE UserId = " + txtUserId;