If a website isn't "sanitizing" user input, an attacker can use these tricks to:
: The attacker is trying to match the number of columns in the original query. If the page loads "34," they know the table has two columns and they can start pulling real data (like usernames or passwords) in those slots. -1469 UNION ALL SELECT 34,34#
Are you looking to write a on how to prevent these attacks, or more of a beginner's overview of web security? If a website isn't "sanitizing" user input, an
SQL injection is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. Breaking Down the Payload: -1469 UNION ALL SELECT 34,34#