Search for "Mutillidae" and half the results are about wasps. Mutillidae is a family of wasps nicknamed velvet ants, famous for a very painful sting. The other half is OWASP Mutillidae II, a free, deliberately vulnerable web application with over 40 bugs and built-in hints. This Mutillidae tutorial covers the second one: install it with Docker, find the logins, learn the three security levels, and run your first SQL injection, command injection and cookie attack.
Every page in Mutillidae maps to a category of the OWASP Top 10, from the 2007 edition up to 2017. If you want to try the main technique while Docker downloads the images, the Query Quake lab gives you a hosted SQL injection target in your browser, nothing to install.
TL;DR: OWASP Mutillidae II is a free PHP/MySQL training app that is still maintained in 2026. Clone webpwnized/mutillidae-dockerhub, run docker compose up -d, open http://127.0.0.1/ and click the link to build the database. There is no single default login: the setup creates 40 accounts, including admin / adminpass. Use "Toggle Security" to move between level 0 (no defenses), 1 (client-side checks only) and 5 (secure).
What Is OWASP Mutillidae II?
OWASP Mutillidae II is a free, open-source, deliberately vulnerable web application for web security training. It contains over 40 vulnerabilities covering every OWASP Top 10 list from 2007 to 2017, with hints and video tutorials built in, and a switch that turns each page from insecure to secure.
The original Mutillidae 1.0 was written by Adrian "Irongeek" Crenshaw. Jeremy Druin, who publishes as webpwnized, rebuilt it as Mutillidae II and still leads the OWASP project. The code is under the GPLv3 license on GitHub.
Three things set it apart from the other classic practice apps:
- It is still updated. The source on GitHub carries version 2.12.8, and the official Docker Hub images were rebuilt in September 2026. bWAPP, by comparison, has not shipped a release since 2014.
- The menu is a map of the OWASP Top 10. You browse by list (OWASP 2017, 2013, 2010, 2007) and then by category, such as "A1 - Injection (SQL)" or "A7 - Cross Site Scripting (XSS)". The same page often appears under several categories, because one form can hold several bugs.
- It goes beyond the usual suspects. Next to SQL injection and XSS you get LDAP and XPath injection, XXE, JWT flaws, CORS misconfigurations, SSRF, HTML5 web storage attacks, and REST and SOAP web services to test.
You may have met it already without knowing. An older Mutillidae ships preinstalled on Metasploitable 2, Samurai WTF and OWASP Broken Web Apps. Those copies are years out of date, so for practice, run the current version.
How to Install Mutillidae With Docker
The old way was to drop the PHP files into XAMPP and fight with the database settings. Skip that. The project now publishes five ready-made containers: the web app (Apache and PHP), MySQL, an OpenLDAP directory, phpMyAdmin and phpLDAPadmin. One compose file starts them all.
- Check Docker works. Run
docker versionand make sure you see both a client and a server section. On Windows and macOS, Docker Desktop must be running. - Get the compose file. The
mutillidae-dockerhubrepository contains only the compose file for the prebuilt images, so nothing gets compiled on your machine:
The first start downloads all five images. After that, it takes seconds.git clone https://github.com/webpwnized/mutillidae-dockerhub.git cd mutillidae-dockerhub docker compose up -d - Free up the ports. The containers use ports 80, 443, 81 (phpMyAdmin), 82 (phpLDAPadmin) and 389 (LDAP) on your machine. If a local web server already holds port 80, stop it first, or the
wwwcontainer will fail to start. - Build the database. Open
http://127.0.0.1/. The first visit shows a warning that the database server cannot be found or is empty. That is expected. Click the "Click here" link, which runsset-up-database.php, and you land on the home page. - Apple Silicon only: the Docker Hub images are built for
amd64. Docker Desktop runs them under emulation, slower but fine for a PHP app. If Docker refuses to start them, runexport DOCKER_DEFAULT_PLATFORM=linux/amd64first.
The README says the site expects the hostname mutillidae.localhost. Chrome and Firefox already send any .localhost name to your own machine, so http://mutillidae.localhost/ works without editing your hosts file. Pause the lab with docker compose stop and resume it with docker compose start. docker compose down deletes the containers, so after it you will need to rebuild the database on your next visit.
Keep it local. The compose file binds every port to 127.0.0.1, so other devices on your network cannot reach the lab. Do not change that. Mutillidae lets anyone who can reach it run shell commands on the container, and the passwords in its database are stored in clear text on purpose.
Mutillidae Default Login and Security Levels
Mutillidae has no single default login. When you build the database, it creates 40 user accounts. The main administrator account is admin with the password adminpass, and other easy ones include samurai / samurai and jeremy / password.
You can also register your own account from "Login/Register" in the top menu. Most pages work without logging in at all, which surprises people coming from DVWA. You only need an account for pages that depend on who you are, like the blog or the profile editor.
That top menu also holds the most important controls in the app:
- Toggle Security cycles through three levels: 0, then 1, then 5, then back to 0. The header shows the current one.
- Toggle Hints appears only at level 0. Hints open in a panel on each page and explain what the bug is and how to find it.
- Reset DB rebuilds the database. Use it when an injection test leaves the data in a mess.
- View Log and View Captured Data show what the app recorded, which is handy for checking whether your XSS payload sent a cookie anywhere.
| Level | Header label | What changes |
|---|---|---|
| 0 | Hosed | No validation at all. Hints available. |
| 1 | Client-Side Security | JavaScript checks and HTML length limits in your browser. The server still trusts everything. |
| 5 | Secure | Server-side fixes: escaped SQL, output encoding, allowlist validation, POST-only forms. |
Level 1 is the clever one. It looks secure to a casual user, because the form pops up an alert the moment you type a quote. But the check runs in your browser, and anything in your browser is under your control. Every walkthrough below shows the same trick for beating it.
Walkthrough: SQL Injection on the User Info Page
Open OWASP 2017 > A1 - Injection (SQL) > SQLi - Extract Data > User Info (SQL). The page asks for a username and password, then shows that account's details. Behind the form, SQLQueryHandler.php builds this query:
SELECT * FROM accounts WHERE username='input' AND password='input'
Level 0: dump every account
- Break the query. Type a single quote
'as the username and submit. You get a detailed MySQL error, along with the full query that failed. That error is your proof of injection, and showing the query is its own bug: information disclosure. - Make the condition always true. Enter this as the username and leave the password empty:
The quote closes the string,' OR 1=1-- -OR 1=1matches every row, and-- -comments out the password check. The page reports "40 records found." and lists every account. - Read what came back. Each record shows the first name, last name, username, password, signature, client ID and client secret. The passwords are in clear text:
admin/adminpasssits right at the top.
No cracking needed, because Mutillidae stores passwords unhashed on purpose. In real applications, the dump would usually give you hashes, and the next step would be a cracker.
Level 1: the filter lives in your browser
Toggle to level 1 and try the payload again. An alert appears: "Dangerous characters detected. We can't allow these." The page's JavaScript rejects any non-alphanumeric character and anything over 15 characters. The server has not changed at all.
The form uses GET, so skip the form and put the payload in the URL yourself:
http://127.0.0.1/index.php?page=user-info.php&username=%27%20OR%201%3D1--%20-&password=&user-info-php-submit-button=View+Account+Details
%27 is the quote, %20 a space and %3D the equals sign. All 40 records come back. You could do the same with Burp Suite's Repeater, or by deleting the onsubmit handler in DevTools. In practice, this is one of the most common findings on real web tests: a developer adds JavaScript validation, ticks the box, and never checks it on the server.
Level 5: what the fix looks like
At level 5, the page accepts POST only, runs your input through MySQL's real_escape_string, encodes all output, and hides the password field in the results. The same payload now finds nothing. Escaping works here because the input sits inside quotes, but the comment in Mutillidae's own source says it best: escaping "is not the best defense." Prepared statements are, as the OWASP SQL Injection Prevention Cheat Sheet explains. Our SQL injection chapter walks through UNION, blind and error-based techniques that the other Mutillidae SQL pages expect you to know.
Bonus: the Login page (SQLi - Bypass Authentication) uses the same query. At level 0, a username of admin'-- - with any password logs you in as the administrator.
Walkthrough: Command Injection and XSS on DNS Lookup
Open A1 - Injection (Other) > Command Injection > DNS Lookup. It is a small form labeled "Hostname/IP". On levels 0 and 1, the server runs shell_exec("nslookup " . $input), pasting your text straight into a shell command.
- Level 0: enter
127.0.0.1; whoami. The semicolon ends the nslookup command and starts a new one, so the output ends with the account the web server runs as. Try127.0.0.1; lsand you will see the Mutillidae source files. - Level 1: the browser now blocks
; & | < >with the alert "Malicious characters are not allowed." The server reads the parameter from GET or POST, so send it in the URL:index.php?page=dns-lookup.php&target_host=127.0.0.1%3Bwhoami&dns-lookup-php-submit-button=Lookup+DNS. The command runs. - Level 5: the input must match an IPv4, IPv6 or domain name pattern, and the server no longer calls the shell at all. It uses PHP's
dns_get_record()instead. That second change is the real fix: no shell, no shell injection.
The same page also holds a reflected XSS bug. It prints "Results for" followed by your input, with no encoding on levels 0 and 1. Back on level 0, submit:
<script>alert(document.cookie)</script>
A popup lists the cookies the page can read, such as showhints. At level 5, the output is HTML-encoded and the payload is displayed as harmless text. One form, three bug classes, which is exactly how real applications fail.
Walkthrough: Become Admin by Editing a Cookie
This one is quick and teaches a lesson that DVWA never covers. Make sure you are on level 0 or 1, then log in as samurai / samurai. The header shows "Logged In User: samurai".
- Open your cookies. In Chrome, press F12, go to Application, then Cookies. In Firefox, the tab is called Storage.
- Find
uid. Next tousername, Mutillidae sets a cookie calleduidthat holds your account number from the database. - Change it to 1. The admin account was created first, so its ID is 1. Double-click the value, type
1and reload the page. - Check the header. It now reads "Logged In Admin: admin". You never typed a password.
On levels 0 and 1, index.php trusts that cookie to decide who you are. On level 5, it ignores the cookie and uses the server-side session, which is the correct design. Any time you see an ID, a role or an isAdmin flag in a cookie, try changing it. The free Hack the Cookie lab has you do exactly that on a hosted portal, with a Base64-encoded session to decode first.
Mutillidae vs DVWA vs bWAPP
All three are free PHP apps that run locally, and each one is best at something different.
| Mutillidae II | DVWA | bWAPP | |
|---|---|---|---|
| Still maintained | Yes, 2.12.x in 2026 | Yes | No, last release 2014 |
| Number of bugs | Over 40 | 19 modules | Over 100 |
| Built-in help | Hints panel and video tutorials | View Source and help pages | None |
| Security levels | 3 (0, 1, 5) | 4 (low to impossible) | 3 (low, medium, high) |
| Install | 5 containers | 1 container | 1 container |
| Best for | Client-side bypasses, APIs, unusual bugs | Your very first web hack | Many variants of one bug |
Our take: start with DVWA if you have never sent a SQL injection payload, because its four levels and View Source button explain a single bug very clearly. Move to Mutillidae second. Its level 1 trains the habit that matters most on real tests, checking whether a defense runs on the server or only in the browser, and it covers modern topics like JWT, CORS and REST APIs that the older apps skip. Keep bWAPP for when you want eighteen versions of the same injection. Mutillidae's weak point is its interface: the nested menus are dated and easy to get lost in, so use the route above instead of clicking randomly.
Legal and Ethical Considerations
Critical reminder: Always get explicit written authorization before testing any system. Mutillidae on your own machine is authorized by definition. Anything you do not own needs permission in writing.
- These payloads work on real sites.
' OR 1=1-- -,; whoamiand cookie edits behave the same way on production servers. Trying them on a site you do not own is unauthorized access under the CFAA in the US, the Computer Misuse Act in the UK, and similar laws elsewhere. - Public Mutillidae instances are not invitations. Some schools and strangers host copies online. You do not know who runs them or what else is on that server. Use your own containers.
- Do not expose your lab. Keep the
127.0.0.1port bindings. A Mutillidae open to the internet hands remote command execution to anyone who finds it. - Move to bug bounty programs for live targets. They give you written permission and a defined scope. Read the scope before you send a single request.
Frequently Asked Questions
What is the Mutillidae default username and password?
There is no single default. Building the database creates 40 accounts. The administrator is admin with the password adminpass. Other simple ones include samurai / samurai and jeremy / password. You can also register a new account from the Login/Register link.
Why does Mutillidae say the database is offline?
On a fresh install the database is empty, so the first page you load shows a warning. Click the "Click here" link to run set-up-database.php. If the warning keeps coming back, check that the database container is running with docker compose ps.
What do Mutillidae security levels 0, 1 and 5 mean?
Level 0 has no defenses and shows hints. Level 1 adds JavaScript and HTML checks in the browser only, so it teaches you to bypass client-side validation. Level 5 applies real server-side fixes. The "Toggle Security" link cycles through them in that order.
Is Mutillidae still maintained?
Yes. Jeremy Druin keeps updating it, the GitHub source is at version 2.12.8, and the official Docker Hub images were rebuilt in September 2026. That makes it one of the few classic PHP training apps still receiving changes.
Is Mutillidae included in Kali Linux or Metasploitable?
It is not part of Kali. An old version comes preinstalled on Metasploitable 2, Samurai WTF and OWASP Broken Web Apps. For practice, run the current Docker images instead, since those bundled copies lack years of new challenges.
Is Mutillidae good for beginners?
Yes, if you know basic HTTP and can open your browser's developer tools. The hints at level 0 explain each bug, and the video tutorials on the webpwnized YouTube channel cover most pages. Absolute beginners may find DVWA's simpler interface easier for the very first session.
Your Next Steps
A good first Mutillidae evening looks like this: start the five containers, build the database, then work through User Info (SQL), DNS Lookup and the uid cookie at levels 0, 1 and 5. For each level 1 bypass, write down where the check ran and why it failed. That note is the most useful thing this Mutillidae tutorial can leave you with, because the same mistake shows up in real applications every week.
Mutillidae tells you where every bug is. Real targets do not. When you are ready to find the bug yourself, try Query Quake for SQL injection, Ping Pwn for command injection, or the free Hack the Cookie lab, all running in your browser with flags to capture. For the theory behind each attack, follow the Web Application Attacks course. Start with HackerDNA's free tier - no credit card required.
Part of the OWASP Top 10 series
Related articles:
- OWASP Mutillidae II Tutorial
- DVWA Tutorial
- bWAPP Tutorial
- OWASP WebGoat Tutorial
- OWASP Juice Shop Tutorial
- SQL Injection Tutorial
- Broken Access Control