DVWA is a PHP and MariaDB web application filled with common web vulnerabilities. It helps professionals, developers, and students practice attacks in a controlled setting.
Overview
Damn Vulnerable Web Application (DVWA) is a deliberately insecure web app meant for legal security training. Its goal is to let people exercise skills and tools against realistic flaws through a simple interface, with difficulty levels that can be adjusted.
The project warns that it must not be exposed on the public internet because systems will be compromised. Guidance recommends isolated environments such as virtual machines with NAT networking, or local stacks like XAMPP that bundle Apache, MariaDB or MySQL, and PHP.
Labs cover widespread web weakness categories; some issues are undocumented on purpose so learners can discover them. Docker Compose can run a prebuilt container image, listening on a non-default host port in that setup. Debian-based hosts can also use helper installation scripts or manual package-based installs.
Configuration covers database credentials, optional authentication bypass for tools that struggle with login, Apache rewrite for an API lab module, and PHP settings such as visible errors or remote file inclusion when a lab requires them.
Key features
- Adjustable vulnerability difficulty
- SQL injection practice labs
- Web UI for each module
- Docker Compose deployment
- XAMPP-friendly install path
- Optional auth disable for tools
- Multi-language readme support
Use cases
- Penetration testing practice
- Classroom web security teaching
- Tool evaluation in a safe app
- Developer awareness training