Get all usernames and password | sql injection union attack retrieving data from other tables
CyberWorldSec
https://youtu.be/BpJp9EV9_JQ Sql injection union attack to get number of colums
sql injection union attack retrieving data from other tables, lab sql injection union attack retrieving data from other tables
This lab contains an SQL injection vulnerability in the product category filter. The results from the query are returned in the application's response, so you can use a UNION attack to retrieve data from other tables. To construct such an attack, you need to combine some of the techniques you learned in previous labs.
The database contains a different table called users, with columns called username and password.
To solve the lab, perform an SQL injection UNION attack that retrieves all usernames and passwords, and use the information to log in as the administrator user.
Using an SQL injection UNION attack to retrieve interesting data
When you have determined the number of columns returned by the original query and found which columns can hold string data, you are in a position to retrieve interesting data.
Suppose that:
The original query returns two columns, both of which can hold string data.
The injection point is a quoted string within the WHERE clause.
The database contains a table called users with the columns username and password.
In this situation, you can retrieve the contents of the users table by submitting the input:
' UNION SELECT username, password FROM users--
Of course, the crucial information needed to perform this attack is that there is a table called users with two columns called username and password. Without this information, you would be left trying to guess the names of tables and columns. In fact, all modern databases provide ways of examining the database structure, to determine what tables and columns it contains. LAB SQL injection UNION attack, retrieving data from other tables
In this video, CyberWorldSec shows you how to check for sql injection
🆘🆘NEED HELP?? Join the Discord Server: https://discord.gg/W5vJaaBw
FOLLOW ME EVERYWHERE
Instagram : https://www.instagram.com/bug_bunty Telegram group : https://t.me/ethical_hacker_learn Discord: https://discord.gg/W5vJaaBw
Disclaimer :
These materials are for educational and research purposes only.
These videos teach you cyber secuirty and all the practicals are conducted on a safe to test learning labs provided by PortSwigger's Web Security Academy.
PortSwigger's Web Security Academy enables the world to secure the web. Featuring over 190 topics and interactive labs. To know more go to https://portswigger.net/about
SUBSCRIBE for ... https://www.youtube.com/watch?v=KtEKtODbO6o
26941164 Bytes