February 2020
Intermediate to advanced
404 pages
8h 42m
English
SQL injection is a process of attacking a database with malicious scripts. If one is not careful when defining URL routes, there may be an opportunity for SQL injection. These attacks can happen for all kinds of REST operations. For example, if we are allowing the client to pass parameters to the server, then there is a chance for an attacker to append an ill-formed string to those parameters. If we are using those variables/parameters directly into an SQL query executing on our database, it could lead to a potential vulnerability.
Look at the following Go code snippet that inserts username and password details into the database. It collects values from an HTTP POST request and appends raw values ...
Read now
Unlock full access