An open API service indexing awesome lists of open source software.

https://github.com/trivediayush/dvwa-application

Damn Vulnerable Web Application (DVWA) on a local Kubernetes cluster using Minikube and then simulate common web application attacks.
https://github.com/trivediayush/dvwa-application

dvwa kubernetes minikube security-lab

Last synced: 5 months ago
JSON representation

Damn Vulnerable Web Application (DVWA) on a local Kubernetes cluster using Minikube and then simulate common web application attacks.

Awesome Lists containing this project

README

          

๐Ÿ›ก๏ธ DVWA on Kubernetes - Local Security Lab
===========================================

This project demonstrates how to deploy **Damn Vulnerable Web Application (DVWA)** on a local Kubernetes cluster using **Minikube** and then simulate common web application attacks.

๐Ÿ“ธ Screenshots
--------------

* Minikube Running:
*
*
*

* DVWA Deployment:
*

* Command Injection Result:
*

* SQL Injection Result:
*

* Stored XSS Alert:
*
*

๐Ÿ›  Setup Steps
--------------

### 1\. Start Minikube

minikube start --driver=docker

### 2\. Create `dvwa.yaml`

### 3\. Apply the Configuration

kubectl apply -f dvwa.yaml

### 4\. Access DVWA

minikube service dvwa -n dvwa

Open the given URL (usually `http://192.168.49.2:30001`) in your browser.

### 5\. Login

* Username: `admin`
* Password: `password`

Go to **DVWA Security** tab and set security level to `LOW`.

๐Ÿงช Attack Demonstrations
------------------------

### 1๏ธโƒฃ Command Injection

* Go to: **DVWA โ†’ Command Injection**
* Input: `127.0.0.1; whoami`
* Result: Displays container user like `www-data`

### 2๏ธโƒฃ SQL Injection

* Go to: **DVWA โ†’ SQL Injection**
* Input: `1' OR '1'='1`
* Result: Database returns all users bypassing login filters

### 3๏ธโƒฃ Stored Cross Site Scripting (XSS)

* Go to: **DVWA โ†’ Stored XSS**
* Input:

alert('XSS attack!')

* Result: Alert pops up when viewing the page

๐Ÿงน Cleanup
----------

To remove the deployment and stop the cluster:

kubectl delete namespace dvwa
minikube stop

๐Ÿ“š References
-------------

* [DVWA GitHub](https://github.com/ethicalhack3r/DVWA)
* [OWASP Attack References](https://owasp.org/www-community/attacks/)

* * *

Created for practicing security testing.

๐Ÿ“Œ Author
-------------
# Ayush Trivedi