SQL INJECTION
Structured Query Language Injection (SQLi) is when an attacker can provide data (for example, via a a text input field) and the data is included as part of a SQL query. This can lead to an attacker accessing data that they are not supposed to access. NOTE: Basic cheat sheet for SQL queries can be found here: SQL Basics Cheat Sheet | DataCamp NOTE: SQLi Cheat sheet: SQL injection cheat sheet | Web Security Academy (portswigger.net) A simple example of an Sql injection could be visiting a a blog and viewing the post with the id of 1: https://example.com/blog?id=1 . If the application is using SQL, the query that is used to retrieve the post with the id of 1 would look something like: SELECT * FROM blog WHERE id=1 AND private=0 LIMIT 1; This would return to the user the one blog post with the id of 1, that had a private value of 0. In this case, the private value is used to determine if the blog post is private or not. One way an attacker could get arou...