├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tutum/lamp:latest 2 | MAINTAINER Nikolay Golub 3 | 4 | ENV DEBIAN_FRONTEND noninteractive 5 | 6 | # Preparation 7 | RUN rm -fr /app/* && \ 8 | apt-get update && apt-get install -yqq git php5-curl dnsutils && \ 9 | apt-get upgrade -yqq ca-certificates && \ 10 | update-ca-certificates && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | # Deploy Mutillidae 14 | RUN \ 15 | git clone https://github.com/webpwnized/mutillidae.git && \ 16 | rm -rf /app/* && \ 17 | cp -r /mutillidae/* /app && \ 18 | rm -rf /mutillidae && \ 19 | sed -i 's/DirectoryIndex index.html.*/DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm/g' /etc/apache2/mods-enabled/dir.conf&& \ 20 | sed -i 's/static public \$mMySQLDatabaseUsername =.*/static public \$mMySQLDatabaseUsername = "admin";/g' /app/classes/MySQLHandler.php && \ 21 | echo "sed -i 's/static public \$mMySQLDatabasePassword =.*/static public \$mMySQLDatabasePassword = \\\"'\$PASS'\\\";/g' /app/classes/MySQLHandler.php" >> /create_mysql_admin_user.sh && \ 22 | echo 'session.save_path = "/tmp"' >> /etc/php5/apache2/php.ini 23 | 24 | EXPOSE 80 3306 25 | CMD ["/run.sh"] 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Description 2 | ================ 3 | 4 | Docker container for OWASP Mutillidae II Web Pen-Test Practice Application 5 | 6 | 7 | Quick start 8 | ================ 9 | Pull image: 10 | ```docker pull citizenstig/nowasp``` 11 | 12 | Start with random mysql password: 13 | ```docker run -d -p 80:80 citizenstig/nowasp``` 14 | 15 | Or specify it as environment variable: 16 | ```sudo docker run -d -p 80:80 -p 3306:3306 -e MYSQL_PASS="Chang3ME!" citizenstig/nowasp``` 17 | 18 | Additional information about parent image https://registry.hub.docker.com/u/tutum/lamp/ 19 | 20 | 21 | About NOWASP 22 | ================ 23 | OWASP Mutillidae II is a free, open source, deliberately vulnerable web-application providing a target for web-security enthusiest. Mutillidae can be installed on Linux and Windows using LAMP, WAMP, and XAMMP. It is pre-installed on SamuraiWTF, Rapid7 Metasploitable-2, and OWASP BWA. The existing version can be updated on these platforms. With dozens of vulns and hints to help the user; this is an easy-to-use web hacking environment designed for labs, security enthusiast, classrooms, CTF, and vulnerability assessment tool targets. Mutillidae has been used in graduate security courses, corporate web sec training courses, and as an "assess the assessor" target for vulnerability assessment software. 24 | 25 | Instructional videos are available on the ["webpwnized" YouTube channel](https://www.youtube.com/user/webpwnized) 26 | Project/video updates tweeted to https://twitter.com/webpwnized. 27 | 28 | [NOWASP (Mutillidae) Web Site](https://github.com/webpwnized/mutillidae/) 29 | 30 | NOWASP Features 31 | ================ 32 | * Has over 35 vulnerablities and challenges. Contains at least one vulnearbility for each of the OWASP Top Ten 2007 and 2010 33 | * Actually Vulnerable (User not asked to enter “magic” statement) 34 | * Mutillidae can be installed on Linux, Windows XP, and Windows 7 using XAMMP making it easy for users who do not want to install or administrate their own webserver. Mutillidae is confirmed to work on XAMPP, WAMP, and LAMP. XAMPP is the "default" deployment. 35 | * Installs easily by dropping project files into the "htdocs" folder of XAMPP. 36 | * Will attempt to detect if the MySQL database is available for the user 37 | * Preinstalled on Rapid7 Metasploitable 2, Samurai Web Testing Framework (WTF), and OWASP Broken Web Apps (BWA) 38 | * Contains 2 levels of hints to help users get started 39 | * Includes bubble-hints to help point out vulnerable locations 40 | * Bubble-hints automatically give more information as hint level incremented 41 | * System can be restored to default with single-click of "Setup" button 42 | * User can switch between secure and insecure modes 43 | * Secure and insecure source code for each page stored in the same PHP file for easy comparison 44 | * Provides data capture page and stores captured data in database and file 45 | * Allows SSL to be enforced in order to practice SSL stripping 46 | * Used in graduate security courses, in corporate web sec training courses, and as an "assess the assessor" target for vulnerability software 47 | * Mutillidae has been tested/attacked with Cenzic Hailstorm ARC, W3AF, SQLMAP, Samurai WTF, Backtrack, HP Web Inspect, Burp-Suite, NetSparker Community Edition, and other tools 48 | * Instructional Videos: http://www.youtube.com/user/webpwnized 49 | * Updates tweeted to @webpwnized 50 | * Updated frequently 51 | * Project Whitepaper: http://www.giac.org/paper/gwapt/3387/introduction-owasp-mutillidae-ii-web-pen-test-training-environment/126917 52 | --------------------------------------------------------------------------------