This is a demo application which is vulnerable to sql injections on purpose. There are plenty of predefined inputs which can be experimented with.
The application features the following types of SQL injections:
- In-band
- Tautology
- Error based
- UNION based
- Blind
- Boolean based
- Time based
- Second order
It does not cover Out-of-band SQL injections.
- Import the database called
sql-injections
into some kind of MySQL database. - Serve the application on some webserver like e. g. Apache.
- Play around with it.
This is only an example to raise awareness of SQL injections. Never concatenate user input directly into your SQL statements.
Always use Prepared Statements!
To learn more about SQL injections feel free to read the paper I wrote:
SQL Injections (German)