talira

Damn Vulnerable Web Application: a deliberately insecure PHP app for practising web security in a legal environment

open sourceGPL-3.0-or-laterself-hostablefree

DVWA (Damn Vulnerable Web Application) is a PHP and MariaDB web application that is deliberately vulnerable, made by Robin Wood (digininja) to help security professionals test their skills and tools legally, web developers understand how to secure web applications, and teachers and students learn web security in a classroom. It covers many of the most common web vulnerabilities at several levels of difficulty, with both documented and undocumented flaws to find. Prebuilt Docker images are published from every commit to the main branch. It's GPL-3.0-or-later licensed.

Problems it solves

  • I want a safe, legal target to practise SQL injection and XSS
  • I need a vulnerable web app to test my security scanner against
  • I'm teaching a web security class and need a lab app for students

Features

  • Common web vulnerabilities to practise exploiting and fixing
  • Several difficulty levels
  • Documented and undocumented vulnerabilities
  • Prebuilt Docker images
  • README in many languages

Limitations

  • It's deliberately vulnerable: never put it on an internet-facing server, and run it in a virtual machine on an isolated network.1

Alternatives

The same job

These do what DVWA does.

  1. OWASP Juice Shop A deliberately insecure web shop for security training, CTFs and testing security tools
  2. Vulhub A collection of ready-to-run vulnerable Docker environments for security research and learning.

Compare DVWA with the top 3