0
What is the actual briefing of 1 'or' 1 '=' 1 ?
I known this as a basic SQL query in ethical hacking but don't know the actual meaning of that query and why using that some website's admin panel got hacked? that's why i come to learn about SQL here. Anyone here to describe that query????
1 Respuesta
0
'1' = '1' gives true, so in a login form, the condition passes as true and you can log in without the correct password. That’s why some admin panels got hacked — if inputs aren’t properly filtered and prepared, an attacker can bypass the login or even run harmful queries on the database.
To prevent this, use prepared statements, like the ? operator, to securely handle user inputs.