Skip to content

The Damn Vulnerable Web Application (DVWA) is a popular web application designed to help security professionals and enthusiasts practice their skills in a legal and controlled environment. This repository specifically focuses on SQL Injection vulnerabilities, providing detailed explanations and step-by-step solutions for each challenge level.

Notifications You must be signed in to change notification settings

kashrathod19/SQL-Injection-DVWA-SOLUTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 

Repository files navigation

SQL-Injection-DVWA-SOLUTION

The Damn Vulnerable Web Application (DVWA) is a popular web application designed to help security professionals and enthusiasts practice their skills in a legal and controlled environment. This repository specifically focuses on SQL Injection vulnerabilities, providing detailed explanations and step-by-step solutions for each challenge level.

image

Welcome to the repository containing comprehensive solutions for SQL Injection vulnerabilities in the Damn Vulnerable Web Application (DVWA). This repository is curated and maintained by Nihar Rathod, also known as Bugbot19, a seasoned security researcher and ethical hacker.

Repository Contents

Low-Level Solutions: Detailed walkthroughs for exploiting SQL Injection vulnerabilities at the 'Low' security level of DVWA. These solutions demonstrate basic techniques and concepts for beginners.

Medium-Level Solutions: Comprehensive solutions for the 'Medium' security level, showcasing intermediate techniques and methods to bypass slightly more complex protections.

High-Level Solutions: Advanced SQL Injection techniques and solutions for the 'High' security level, aimed at overcoming sophisticated security mechanisms.

SQL (LOW)

First, we try to understand the working by inserting 1 in the textbox

image

We can observe that it had given us the detail of user-id 1

Now, we will try to get all the details of users by using a simple but effective payload i.e ' or 1=1#

image

Will try to get the pieces of information related to the table such as table_name will inject ' union select table_name,null from information_schema.tables#

image

We can notice that we have many table names and one of the table names is usersThere is a potential chance that table users must contain some credentials, Now we will go through the column name because through column name we can get the columns at which the credentials are store so the payload looks like this ' union select column_name,null from information_schema.columns from table_name='users'

image

We can observe from above that columns name such as id,login,password have high chances of containing credentials so will be using the final payload to get all the details 'UNION select user,password from users#

image

We have found out the username and password of many users

SQL (Medium)

We have the final payload Union select user,password from users# this will work on both the level medium and hard we just need to find the injected parameter this level will be performed with the help of Burp Suite

First Intercept the request

image

We will be using the id parameter to inject SQLi the payload will be the same i.e 1 UNION select user,password from users#

image

Now click on forward we can observe that we have all the credentials

image

SQL (Hard)

We have the final payload Union select user,password from users#This will work on both the levels medium and hard we just need to find the injected parameter this level will be performed with the help of Burp Suite

Click on here to change the id

image

after clicking a different prompt will appear

image

Try to insert the same payload i.e ' Union Select user,password from users#

image

Click on submit and check out the first prompt all the user credentials are displayed

image

About

The Damn Vulnerable Web Application (DVWA) is a popular web application designed to help security professionals and enthusiasts practice their skills in a legal and controlled environment. This repository specifically focuses on SQL Injection vulnerabilities, providing detailed explanations and step-by-step solutions for each challenge level.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published