Skip to content

Tariqshinwar/dvwa-web-security-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

🛡️ DVWA Web Security Test (Project 15: Develop a Secure Web Application)

This project demonstrates how to securely set up and configure Damn Vulnerable Web Application (DVWA) on Kali Linux. DVWA is a widely used platform for learning and practicing web security vulnerabilities in a controlled environment.


🎯 Objective

Deploy and configure DVWA locally to explore common web vulnerabilities (like SQLi, XSS, CSRF) and strengthen hands-on web application security skills.


🧰 Tools & Technologies


🛠️ Steps Performed

✅ Step 1: Cleanup of Previous Installation

Removed old DVWA, Apache, MariaDB, and PHP configurations to avoid conflicts.

📸 Screenshot:

cleanup


✅ Step 2: Installed Required Packages

Installed Apache2, PHP, MariaDB, and required modules for DVWA.

📸 Screenshot:

dependencies


✅ Step 3: Started and Enabled Services

Ensured Apache and MariaDB were running properly using systemctl.

📸 Screenshot:

services


✅ Step 4: Created the DVWA Database

Logged into MariaDB and created the DVWA database, user, and granted privileges.

📸 Screenshot:

db-created


✅ Step 5: Adjusted PHP Settings

Edited /etc/php/8.2/apache2/php.ini to allow URL includes and enable display errors for DVWA functionality.

📸 Screenshot:

php-config


✅ Step 6: Successfully Created DVWA Tables

Navigated to http://localhost/DVWA/setup.php to run the database setup.

📸 Screenshot:

db-setup


🗂️ Screenshot Directory

All screenshots are inside the /screenshots/ folder.


🚀 Project Status

  • DVWA Installed
  • Apache and MariaDB Configured
  • Database Setup Complete
  • Ready for login and security testing (optional next step)

⚠️ Warning

DVWA is intentionally insecure. Do NOT expose it to the public internet or production environments. Use only in local or isolated test environments.


🙌 Author

Tariq Shinwari
Cybersecurity Student | George Mason University

About

Built a PHP-based login system with input validation, hashing, and role-based access control. Followed secure development lifecycle practices for backend security.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors