SQL Injection
Last updated
Last updated
SQL Injection is a type of cybersecurity vulnerability where an attacker manipulates a SQL query by injecting malicious SQL code into user inputs (e.g., login forms, search boxes) that are not properly sanitized. This allows the attacker to bypass authentication, access, modify, or delete database data, or even execute administrative operations on the database. SQL injection exploits occur when applications fail to validate or escape user-supplied input, making it possible to alter the intended behavior of SQL queries.
Below you can find examples of unsafe code leading to SQL Injection.
If you want to correct the sanatize the input and do not use string concatenation.
Fuzz String
INTO OUTFILE
In some cases you can spawn the webshell using SQL Injection.