bypass login with SQL Injection

preview_player
Показать описание
Let's log in as administrator of this website without knowing the password. By bypassing the login mechanism using an SQL Injection attack.

By injecting SQL code into the login form, an attacker can circumvent basic checks made by the database. Usually a website (that's badly coded) will have some form of this SQL query:

"SELECT * FROM users WHERE username='$user-name-input' AND password='$password-input' "

So if an attacker can Inject some SQL (hence the term SQL Injection) he can pass in a username like:

$user-name-input = " administrator' -- " and it will translate into this query:

"SELECT * FROM users WHERE username='administrator' -- ' AND password='$password-input' "

which will comment out the AND part and not check for the password AT ALL.

SQL Injections are usually a sign of bad coding practices and could be a lead for more vulnerabilities. So bypassing a login with SQLI is just the beginning :D

------------------------------

Share this video with a friend:

---------------------------------------------
** Similar Channels **

---------------------------------------------
Let’s connect:

Twitter – @zanidd
Twitch – dev_null1337

* I may earn a small commission for my endorsement, recommendation, testimonial, and/or link to any products or services from this website. Your purchase helps support my work in bringing you real information about security and computer science.

Thank you for watching :)

-~-~~-~~~-~~-~-
Please watch: "5 Hacking Mistakes That Make You A BAD Hacker"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

It's always 420! No for real though, great videos.

RoughGanome
Автор

Yepp looks like you learn something!!?

friday.