TODO: Add privilege levels TODO: Make it super cool to be an administator TODO: Add more authentication types TODO: Add password recovery page TODO: Add password hashes into the project TODO: Make these videos: buffer overflows, xml entity expansion Date: 5/18/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.11: --- --- Fixed typos found by J.Townsend aka L1ghtn1ng @jay_townsend1 --- Date: 4/24/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.10: --- --- Added examples of remote file inclusion and local file inclusion into hint for Insecure Direct Object Reference (IDOR) --- Date: 3/2/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.9: --- --- BUG FIX: Set up database throws error on latest version of Maria DB due to creation of store procedures. Removed procedures since they are not used. --- Date: 2/14/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.8: --- --- BUG FIX: Cross-site Request Forgery (CSRF) hints typo --- Date: 1/23/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.7: --- --- BUG FIX: Docker file had typo from previous merge conflict --- Date: 1/5/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.6: --- --- Added more logging to make it easier to do log poisoning --- --- Minor update to log page --- --- Added log entry when users logs out --- Date: 1/5/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.5: --- --- Deleted several images that are no longer in use to make project size smaller --- --- Consolodated all YouTube icons into one --- Date: 1/4/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.4: --- --- Simplified Home page links by removing about half of them. Some links were stale anyway. --- Date: 1/3/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.3: --- --- BUG FIX: Added documentation for edit-account-profile.php and echo.php to vulnerabilities.php --- --- BUG FIX: Made Edit Profile icon smaller for faster load time. Delay is gone now. --- --- Added register.php and edit-account-profile.php to main menu --- --- Added link to login, if not already logged in, to edit-account-profile.php --- --- BUG FIX: Adding missing links to main menu --- Date: 1/2/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.2: --- --- NEW PAGE: edit-account-profile.php added with traditional IDOR vulnerability --- --- Moved process-commands.php to the includes directory --- --- Removed user signature from menu bar --- --- Added Edit Profile button to menu bar next to username if user logged in --- --- BUG FIX: Minor issue in register.php --- --- BUG FIX: Removed extraneous code in register.php --- --- BUG FIX: Removed extraneous code in header.php --- --- BUG FIX: Fixed link in login.php --- --- BUG FIX: Cast to interger bug in CSRFTokenHandler.php --- Date: 1/1/2019 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.1: --- --- BUG FIX: Minor issue in OWASP logger class --- --- BUG FIX: Minor issue in JavaScript message displayed if JavaScript validation failed --- Date: 12/22/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.7.0: --- --- Added new page with new defense. The echo page will implement XSS and command injection. In security level 5, encoding will be used to protect the page from XSS. For command injection, a call to the PHP API will be used instead of a call to shell. This is much stronger defense than the input validation used by the DNS Lookup page (the other page with command injection --- --- Added more filters to the JavaScript form validation for DNS Lookup and Conference Room Lookup pages --- --- Optimized JavaScript in several pages --- --- BUG FIX: Fixed JavaScript form validation error message in several pages --- --- Added new echo page to several menus --- --- BUG FIX: JavaScript bug in RegEx syntax in several pages --- Date: 12/21/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.78: --- --- Added examples of short injections on SQL injection hints page --- --- Updated LogPatternParser.php for PHP 7.3 --- Date: 12/15/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.77: --- --- Added more examples of stealing cookies to XSS hints and videos page --- Date: 11/26/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.76: --- --- Changed format of change log from HTML to text to better fit GitHub --- --- Moved CSRF into XSS menu since CSRF is no longer an OWASP Top Ten category and CSRF has always been a particular use of XSS --- --- Left CSRF under the 2013 menu for those use to the old menu --- Date: 11/26/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.75: --- --- BUG FIX: Removed reference to onLoadOfBody function in header.php --- --- BUG FIX: Merged pull request from JohnPMurphy to fix JavaScript RegEx bug --- Date: 11/21/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.74: --- --- Added 3 video tutorials on LDAP injection --- Date: 11/14/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.73: --- --- Split LDAP injection hints from LDAP set up documentation --- --- Added new page: ldap-setup-hint.inc --- Date: 11/13/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.72: --- --- Added new vulnerability: LDAP injection --- --- Added new page: conference-room-lookup.php --- --- Added new page: ldap-injection-hint.inc --- --- Added new page: ldap-config.inc --- --- Updated vulerabilities.php --- --- Renamed database-config.php to database-config.inc --- Date: 10/24/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.71: --- --- Added CSRF examples to Help page --- Date: 10/21/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.70: --- --- Added more XSS examples to Help page --- --- BUG FIX: Updated several links on Home page --- --- Updated links from SourceForge to GitHub (Mutillidae is now hosted on GitHub) --- Date: 09/30/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.69: --- --- BUG FIX: Removed bookmark site button. The function does not work on recent browsers --- --- Added README for installation --- Date: 09/26/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.68: --- --- BUG FIX: Corrected several errors in MySQLHandler.php including not trying various passwords from various installations of Mutillidae. The passwords that will be tried automatically are blank, samurai, mutillidae and the password in config file includes/database-config.php --- Date: 09/26/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.67: --- --- Added hints page for setting up HTTPS with self signed certificate --- --- Added link to jump to videos on help pages --- --- Made a new hint about setting up Apache virtual hosts --- --- Made a new hint about setting up local hostnames --- --- Fixed minor formatting bug in IDOR hint --- --- Updated Usage Instructions --- --- Moved installation instructions into documenation folder --- --- Removed obsolete documentation file how-to-access-Mutillidae-over-Virtual-Box-network.php --- --- Updated the installation instructions --- --- Added video tutorials to the installation instructions --- --- Added a logo in front of video links --- --- Fixed spacing issue with video links --- Date: 09/20/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.65: --- --- BUG FIX: Fixed error in two documentation files that recommend php-curl --- --- Removed warning about MySQL moving away from blank passwords --- --- BUG FIX: Fixed documentation on Creating Virtual Hosts --- Date: 09/19/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.64: --- --- BUG FIX: Fixed error in documentation that incorrectly showed how to add an entry to the /etc/hosts file --- --- Added new documentation to virtual hosts page --- Date: 09/12/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.63: --- --- Updated project for Raspberry Pi 3 B+, Ubuntu 18.04, PHP 7.2 and MariaDB MySQL 5.7 --- --- Changed root database password to "mutillidae". MySQL will not accept blank password in latest versions. This is a big change for a lot of users of Mutillidae. --- --- An attempt has been made to lessen the impact of the new database password. The database connection will try all old and new passwords that Mutillidae has ever used in hopes one of them work for the user. This will help new users as much as possible. --- --- Added HSTS header removal code when the project is set to Security Level 0 and 1 --- --- BUG FIX: Fixed mispelling in RequiredSoftwareHandler --- --- Added new documentation pages for virtual hosts and local hostnames --- Date: 04/26/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.62: --- --- BUG FIX: Constant __ROOT__ no longer defined in MySQLHandler.php after update to PHP 7.0.285 on Ubuntu, Mint and probably others --- --- Removed unused constant __DOCUMENT_ROOT__ from constants.php --- --- Updated the help page that shows if the database seems offline in database-offline.php --- --- Generally preparing project to add more web services --- Date: 04/25/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.61: --- --- BUG FIX: File path in MySQLHandler not prepended with __ROOT__ --- --- BUG FIX: File paths in lookup-pen-test-tools.php not prepended with __ROOT__ --- --- Removed superfluous reference to constants.php in add-to-your-blog.php --- --- Removed superfluous reference to constants.php in view-someones-blog.php --- --- Updated nusoap to version 0.95 --- --- BUG FIX: Patched issues in nusoap version 0.9.5 using https://raw.githubusercontent.com/econea/nusoap/master/src/nusoap.php --- Date: 03/12/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.60: --- --- Added video section to CSRF hints page --- --- Added 4 XSS video tutorials to CSRF hint --- --- Added 2 new CSRF video tutorials to CSRF hints --- Date: 03/09/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.59: --- --- Added 4 new XSS video tutorials --- --- Embedded the 20 part Cross-Site Scripting Explained series into the Cross-Site Scripting hints --- Date: 02/20/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.58: --- --- Added x-content-type-options and x-xss-protection headers in security level 5 --- --- Rewrote HTTP header handling functionality --- --- BUG FIX: Cache-control was not removed if user went from level 5 to level 0 --- --- BUG FIX: Security level session variable not defined in page hint wrapper --- --- BUG FIX: Updated installation guide for Ubuntu --- --- BUG FIX: Hints not showing if no page parameter present in URL --- --- BUG FIX: Fixed username enumeration vulnerability in security level 5 --- --- Added 4 new SQL injection videos --- Date: 02/19/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.57: --- --- Created independent configuration file for database credentials to make it easier to add Mutillidae into Samurai WTF 4. The congiuration file is includes/database-config.php. The class that handles the database connection is still MySQLHandler.php. The config file contains the following by default:
define('DB_HOST', '127.0.0.1'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_NAME', 'mutillidae'); --- --- Changed the default database name to mutillidae to make it more obvious which database belongs to which application on systems with lots of target applications --- --- Added another video on command injection --- Date: 02/15/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.56: --- --- Added 9 new videos across topics of Burp, Zap and Command Injection --- Date: 01/20/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.55: --- --- Added 6 pages to the Security Misconfiguration menu --- --- Added 10 new video tutorials --- --- Added new video to robots.txt hint --- --- Added 4 new videos to OWASP ZAP hint --- --- Added 2 videos to Method Tampering hint --- --- Added new video to Burp-Suite hints --- --- Added 5 new videos to Information Disclosure hint --- --- Adjusted font for videos links to make them easier to read --- Date: 01/20/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.54: --- --- Removed files and folders in images directory that were orphaned --- --- Updated project title --- --- Added Repeater and Character Frobber videos to Burp-Suite help --- --- Added Character Frobber video to CBC but flipping help --- --- Added video Introduction to Burp-Suite Intruders Grep-Extract Feature --- --- Added new help section and 5 videos on using OWASP ZAP --- --- Added new video on Foxy Proxy to Burp Suite help --- --- Added new videos showing fuzzing with OWASP ZAP --- Date: 01/06/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.53: --- --- Added videos for xpath injection, redirects/forwards, sslscan, nmap ssl-checks, parameter addition, method tampering, frame source injection --- Date: 01/01/2018 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.52: --- --- Changes the form method to POST on the XML validator to allow for easier XML external entity injection attacks. Browsers restrict the lenght of the URI so performing quadratic expansion attacks is easier when the request method is set to POST by default. The user can change the method to GET to perform method tampering attacks. The code still allows for GET. Its just POST by default. --- --- Removed spaces from testing input at the top of the XML Validator page in case folks do not realize that spaces cannot appear before the XML declaration --- --- Improved parameter addition hint --- --- Added new hint for XML entity expansion --- --- Added new video to path relative style sheet injection hint --- --- Added code examples to Client-side Comments hint --- --- Added code examples to Robots.txt hint --- --- Added code examples to SSL Misconfiguration hint --- --- Improved SSL Misconfiguration page --- --- Added SSL Misconfiguration in several menu locations --- --- Added Hints and Videos hint to Home page --- --- BUG FIX: Menu mislabeled on two links --- --- BUG FIX: Minor space issue on a link --- Date: 12/30/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.51: --- --- Added page title to all Hints so hint topic will show at the top of each browser tab --- --- Added new hint for Client-side Comments --- --- Added video tutorial on client-side comments --- --- Added video tutorial on Beef Framework --- --- Added video tutorial on Burp Suite Installation --- --- Added multiple video tutorials on finding sentitive comments --- --- Added multiple video tutorials on hidden (unlinked) directory discovery --- --- BUG FIX: Minor HTML syntax error in Beef Hint page --- --- BUG FIX: Broken links to Usage Instructions in 2 places --- Date: 12/05/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.50: --- --- BUG FIX: Missing list element in menu messing up the menu formatting --- --- Updated "2017" menu in response to release of the final version of OWASP Top Ten 2017. Credit to Eric Conrad. --- --- Updated "2013" menu to include the items removed from the final version of OWASP Top Ten 2017 --- --- Updated "Others" menu to include items not found in any version of the OWASP Top Ten --- Date: 12/04/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.49: --- --- BUG FIX: The popup bubble confirming hint level has changed still referred to hints level 2. Level 2 was rolled into the new Hints and Videos feature. Credit to Eric Conrad. --- Date: 07/09/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.48: --- --- BUG FIX: The documenation and resources menus were not showing due to a bug in the smooth menu JavaScript file --- --- Added instructions showing how to create a self-seigned SSL certificate for Mutillidae on Ubuntu. --- --- Moved the usage instructions into the documentation folder --- Date: 07/09/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.47.1: --- --- Updated YouTube video handler to play videos in a new tab instead of the hints page to allow users to have a better experience if they are trying to follow along. --- Date: 07/08/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.47: --- --- BUG FIX: Updated web service for PHP 7 by merging in contribution from edwardsaus --- Date: 04/20/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.46: --- --- Updated menu for OWASP Top Ten 2017 --- --- BUG FIX: Deleted superfluous words in menu to make more narrow --- --- BUG FIX: Secret admin pages was under Security Misconfiguration instead of Broken Access Control --- Date: 04/30/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.45: --- --- Added more error handling output to database setup script for the line that drops the databaseM --- --- BUG FIX: Minor HTML tag errors --- Date: 04/20/2017 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.44: --- --- Updated menu for OWASP Top Ten 2017 --- --- BUG FIX: Deleted superfluous words in menu to make more narrow --- --- BUG FIX: Secret admin pages was under Security Misconfiguration instead of Broken Access Control --- Date: 09/21/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.43: --- --- Updated project to work on OpenJDK 8 on Ubuntu 16.04 --- --- Updated project to work on PHP 7.0 --- --- BUG FIX: Mis-spelled word in MySQLHandler.php --- --- Made the database-offline.php more user-friendly by providing a link to reset or build the database if the startup script realizes the project database cannot be selected. --- --- Removed donation link for HFC. Johnny is back in USA from his mission. Awaiting more information about his next steps. --- --- BUG FIX: Nasty bug in pen test tools lookup (and the AJAX version). The SQL injected single quote would break the resulting JSON syntax ruining the fun. Added escaping for single quotes that show up in the JSON. This will prevent the JSON from getting an errant single quote that would break the JSON string later in the JavaScript that creates the table from the JSON results. Credit to richardwei for pointing out the bug. --- --- Added donation link to left menu. (Thank you if you donate by the way. Its helps) --- --- Removed title from the home page to make all the links easier to see and easier to fit on smaller screens --- --- BUG FIX: Three tables using obsolete center attribute not compatible with HTML5. Switched to using style instead --- --- BUG FIX: Two frames tables using obsolete attribute not compatible with HTML5. Switched to using style instead --- --- BUG FIX: Table styles were using obsolete attribute not compatible with HTML5. Switched to using stylesheet classes instead. This affectd browser-info.php, user-poll.php, user-agent-impersonation.php --- --- BUG FIX: Some special HTML characters were not properly escapted. Example would be ampersand & is supposed to be escaped as &amp; or equivalent. --- --- BUG FIX: Small error in command injection documentation. --- --- BUG FIX: Forgot to close anchor tag in register.php --- --- BUG FIX: Incorrect img tag syntax in rene-magritte.php --- --- BUG FIX: Missing DOCTYPE xml in accounts.xml --- --- BUG FIX: Errant tag in auth bypass hint --- --- BUG FIX: autofocus, required and checked HTML attributes did not have correct values --- Date: 09/21/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.42: --- --- Added more help for remote file inclusion hint about pulling in a web shell --- --- BUG FIX: Problems reported with show log and display captured data pages. Report that the page width is very wide. This only occurs if a lot of data is injected such as a buffer overflow. Also the data has to be continuous without a page or line break. The page-break style has been added to the affected pages. This might work in some browsers but probably not because the condition that causes the issue is data that has no breaks built in. --- --- BUG FIX: Corrected missing variable name in upload-file.php that was throwing a Warning --- Date: 06/16/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.41: --- --- Compressed the left menu bar for systems with not so great resolution. You know who you are! --- --- BUG FIX: Refactored some code in the main menu that should not have been there --- --- Alphabetized the Other Injection menu --- Date: 06/16/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.40: --- --- Improved hints for Command Injection --- --- BUG FIX: User info XML page did not have XMLHandler instantiation in TRY/CATCH --- --- BUG FIX: Setup script did not escape special XML characters when building XML version of accounts table --- --- BUG FIX: User info XML page had multiple undefined variables --- --- Added error handling to the XMLParser class --- Date: 06/07/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.39: --- --- Added two more examples to the SQL injection hint --- --- Greatly enhanced the SQLMAP tutorial. Click on the SQLMAP hint to access. --- --- BUG FIX: Bubble hints aka pop-up hints were showing in security level 5 even when disabled --- --- BUG FIX: There used to be different hint levels. These were merged into the super-hint system. Overall this was a big improvement but now the bubble hints can no longer increase in verbosity as the hint level increases. Until I get around to fixing this, Im setting the bubble hint level to maximum verbosity (level = 2). --- Date: 06/05/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.38: --- --- BUG FIX: Some folder paths still referred to 'hints' from the days of multiple levels. Now these paths just refer to 'hints' --- --- BUG FIX: New page about HTML and JavaScript comments added called client-side-comments.php. Link previously went nowhere. Issue found by Lee Baird. --- --- BUG FIX: Updated listing of vulnerabilities with missing items --- --- BUG FIX: x-frame-options-header menu links were not pointing to correct pages about framing and click-jacking. Issue found by Lee Baird. --- --- BUG FIX: Added new page about cache-control. Link was pointing to nowhere. Issue found by Lee Baird. --- Date: 03/17/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.37: --- --- BUG FIX: Login script was missing exit() method that prevented HTTP body from being populated when the HTTP request was only going to redirect the user anyway --- --- BUG FIX: Minor issue that three blank spaces were output between end of HTTP reponse header and begining of HTTP reponse body. Per the RFC only one blank line should appear. --- --- Added video to Command Injection hints: Solving Password Challenge In Mutillidae With Command Injection --- Date: 02/08/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.36: --- --- Added video tutorials for Burp-Suite into hints --- --- Added more "secret" pages. This is done by adding page names to index.php that trigger Mutillidae to load the phpinfo page --- --- Added CSS selector and a style to phpinfo.php page to better format the php info page to fix various screen sizes --- --- Minor bug in one of the YouTube video names --- --- Added new videos into hints: How to Show hints in security level 5, Introduction to Password Cracking with John the Ripper, Introduction to Fuzzing Web Applications with Burp-Suite Intruder Tool, How to Show Secret Page in Security Level 5 --- --- Added video tutorials to Secret Administrative Pages hint --- --- Minor repair of formatting on some hint pages --- --- Improved hints in robots.txt hint --- --- Added video tutorials to Remote File Inclusion hint --- --- Added video tutorials to Platform Path Disclosure hint --- --- Added video tutorials to IDOR hint --- --- Added video tutorials to Insufficient TLS hint --- --- Added video tutorials to DOM injection hint --- --- Added video tutorials to Directory browsing hint --- --- Added video tutorials to XSS hint --- --- Added video tutorials to Authenctication Bypass hint --- --- Added video tutorials to application log injection hint --- --- Added video tutorials to application path disclosure hint --- Date: 1/31/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.35: --- --- Added new hint dedicated to BeEF framework --- Date: 1/11/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.34: --- --- BUG FIX: Starting in PHP 5.3 users are required to set their date.timezone setting in PHP.ini. Added code into the version of NuSOAP used by Mutillidae to set the timezone for the user if they do not set the timezone in php.ini. The default timezone will be EST. --- Date: 1/10/2016 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.33: --- --- Added valid sample requests to documentation for each soap web service --- Date: 12/28/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.32: --- --- Updated the usage instructions to account for recent improvements --- --- Added link to usage instructions under Documentation menu --- Date: 12/25/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.31: --- --- Removed insufficient transport layer protection hint from the login page. --- --- Wrote a new version of the insufficient transport layer protection hint with exapnded detail and example --- --- Added the insufficient transport layer protection hint into the "Help" button --- Date: 11/26/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.30: --- --- BUG FIX: Function startsWith() was orphaned on the index.php page. Moved into the RemoteFileHandler.php as a private function --- --- BUG FIX: Patched Local File Inclusion vunerability in Level 5 - Secure discovered by Josh Mitchell. Added a more restricted regular expression to validate the page name. --- --- Added more secret page names that will pull up the phpinfo.php page if a user fuzzes one of the secret page name values into the index.php PAGE parameter. The values are filenames from the FuzzDB. The file is from SkipFish. The file can be found on GitHub at fuzzdb/discovery/predictable-filepaths/filename-dirname-bruteforce/WordlistSkipfish.fuzz.txt. This will make it easier for instructors to do demos and students to successfully fuzz. --- --- Eliminated level 2 hints entirely. All have been merged into level 2 hints so the user can find all the hints in the same place --- --- BUG FIX: When the user has looped back around to security level 0, the hints were not showing again --- --- BUG FIX: $RemoteFileHandler and $RequiredSoftwareHandler classes did not have security level corrected when the user changes to a new security level --- Date: 11/01/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.29: --- --- Merged cross-site scripting level-2 hints with the level-1 hints so all the hints show easily for the user --- --- Removed the reliance on the OWASP ESAPI $Encoder->encodeForHTML() method in the hints to make the page static and simple --- Date: 11/01/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.28: --- --- Split the SQLMap help section off from the SQL injection hints page --- --- Added new help page dedicated to SQLMap --- --- Combined the level-2 SQL injection hints into the level-1 SQL injection hints --- --- Removed SQL injection level-2 hints from project --- --- BUG FIX: Repaired hints not honoring the order preference --- Date: 11/01/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.27: --- --- Minor updates to formatting of main menu --- --- Refactored some of the inefficient code on the User Poll page --- --- Removed redundant bold tags from table formatting --- --- Insert SQL injection vulnerability added to user poll page --- --- Persistent cross-site scripting added to user poll page --- --- User poll page stores and tallies user votes --- --- BUG FIX: Repaired HTTP_REFERER does not exist in corner case on database set up page --- --- Minor improvements to hints menu --- --- Added videos Introduction to SQL Injection for Beginners and Introduction to SQL Injection with SQLMap to SQL injection help page --- Date: 07/26/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.26: --- --- Added link to CBC-bit flipping challenge to 3 addition menus (injection, components with known vulnerabilities and privilege escalation) --- --- Greatly improved the CBC-bit flipping hints with additional material --- --- Added HTML Injection hints to the HTML5 web storage page --- --- Repaired format error on Unvalidated Redirect help file --- --- Improved main menu slightly --- --- Replaced HTML5 values with new values that are placed into session and local storage when the user visits any page if the session or local storage is empty. There are more values now. --- --- BUG FIX: The JavaScript on the HTML5 storage page was not displaying all values --- --- Added code to the JavaScript on the HTML5 storage page to not display some values as a challenge to the user --- Date: 07/26/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.25: --- --- BUG FIX: CSRF token increments by a fairly predictable value in security level 1. Credit: David Hazar --- --- BUG FIX: Robots.txt example from this hints had a rogue ; just before the close change-log tag. Credit: Robin @digininja Wood --- --- BUG FIX: External entity injection no longer working since update to libxml2. Added Added call to libxml_disable_entity_loader(TRUE); and $lDOMDocument->substituteEntities = true to make the code vulnerable again. It's getting harder and harder to write code as awful as I would like. --- --- Added a new hint to the XML enternal entity injection hints. Credit: Robin @digininja Wood --- --- BUG FIX: When setting up the database the youTubeVideos table is created with this column identificationToken varchar(16). The first entry you then try to put into it has a token of "YouTubeVideoIdentifier" which is longer than 16 characters so doesn't fit. This caused an error on the setup script if mysql is running in strict mode. Credit: Robin @digininja Wood --- Date: 07/26/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.24: --- --- BUG FIX: Fixed undeclared objects in styling.php --- --- Added "are you sure" to Delete Captured Data button --- --- Merged level 2 hints for command injection into level 1 --- --- Deleted file command-injection-tutorial.inc from project --- --- Merged level 2 hints for parameter pollution into level 1 --- --- Deleted file http-parameter-pollution-tutorial.inc from project --- Date: 07/22/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.23: --- --- Installed new hint handling system that displays the hints into a new tab rather than having the hint shown inline on the target web page. This frees up a lot of space on the target page and makes it possible to move back and forth between the hint and the page. --- --- Hints now show by default but are contained in a hidden div element --- --- Created new page hints-page-wrapper.php --- --- Renamed hints-wrapper.inc to hints-menu-wrapper.inc --- --- Renamed hints.js.inc to hints-menu.js.inc --- --- Added new column level_1_help_include_file_description to table level_1_help_include_files --- --- BUG FIX: The YouTubeVideoHandlerClass was missing a reference to the remote file handler class. This error went unnoticed because the index.php already included a reference that the You Tube handler happended to be able to use. --- --- BUG FIX: Minor documentation errors in SQLQueryHandler.php --- --- BUG FIX: Minor formatting improvements on teh Insecure Direct Object References (IDOR) Hint page --- --- Removed TODO item "Have level-1 hints open in new tab"" from todo list Date: 06/28/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.22: --- --- Added client-side controls to listing of vulnerabilities in documentation --- --- Merged cross-site request forgery level-2 hints into level-1 hints --- --- Optimized loading of back button, sql logo, xml logo, add icon cage icon images --- --- Removed from TODO list as complete: Resize pictures to needed size --- --- Removed from TODO list as complete: Enhance cross-site request forgery tutorial --- --- BUG FIX: Accounts XML contained second copy of username in the signature field --- --- New feature: Systems dynamically generates the secret password file and places in the passwords folder as a target for local file inclusion and command injection attacks. Removed this item from the TODO list --- Date: 06/09/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.21: --- --- BUG FIX: Removed unneeded code from Repeater.php --- --- Optimized size of back button image --- --- Optimized size of OWASP logo --- --- Image resizing saving 200K on average page load. Pages should load faster. --- Date: 06/08/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.20: --- --- BUG FIX: One of the links that was supposed to talk about the back buttons was pointing to the HTML5 web storage page --- --- BUG FIX: Fixed name of JavaScript validation function in DNS lookup page, user-info and user-info-xpath --- --- BUG FIX: The directory browsing page pointed to the wrong place for hints --- --- BUG FIX: All of the radio buttons on the document viewer page were checked by default --- --- BUG FIX: Added output encoding to source viewer page in security level 5. Otherwise their was a cross-site scripting vulnerability in the page in security level 5. --- --- BUG FIX: Removed the maxlength attribute from the login page username and password fields in level 0. Only level 1 should use HTML client side controls. --- --- BUG FIX: Changed username label on login page from name to username. --- --- BUG FIX: Added password generator to HTMLi, HTMLi via DOM injection, reflected cross-site scripting, and DOM-based cross-site scripting menus --- --- BUG FIX: Added autofocus to username field on register user page --- --- BUG FIX: Repaired errant encoding for ReflectedXSSExecutionPoint in footer.php --- --- BUG FIX: Repaired errant encoding for SQLInjectionPoint in view-someones-blog.php --- --- Updated XSS examples in the level 1 hints for XSS --- --- Added extra XSS example for Samurai WTF users in the level 1 hints for XSS --- --- Made DOM-based XSS easier for level 0 users by only including JavaScript validation starting in level 1 --- --- Added more CSRF samples to Mutillidae-Test-Scripts.php --- --- Converted many pages to use the newer HTMLInputElement autofocus attribute rather than use JavaScript autofocus scripts --- --- Tightened the add to your blog form elements to make them display better in demos, low resolution screens and training --- --- Added a new menu entry for Cross-Frame Framing (Third-party Framing) under the "Others" main menu entry --- --- Tightened up the notification bar (under the site title) to fit better on training slides and low resolution monitors --- --- Updated titles for security levels to Security Level: 1 (Client-side Security) and Security Level: 5 (Server-side Security) --- --- Added password generator link to register user page --- --- Added JavaScript validation to register user page in security level 1 --- --- Added JavaScript validation to set background color page in security level 1 --- --- Added JavaScript validation to upload file page in security level 1 --- --- Added JavaScript validation to user info in security level 1 --- --- Added JavaScript validation to user info xpath page in security level 1 --- --- Added client-side HTML controls to Add blog page in security level 1 --- --- Added client-side HTML controls to DNS Lookup page in security level 1 --- --- Added client-side HTML controls to document viewer page in security level 1 --- --- Added client-side HTML controls to web storage page in security level 1 --- --- Added client-side HTML controls to register user page in security level 1 --- --- Added client-side HTML controls to source code viewer page in security level 1 --- --- Added client-side HTML controls to text file viewer page in security level 1 --- --- Added client-side HTML controls to upload file page in security level 1 --- --- Added client-side HTML controls to user info page in security level 1 --- --- Added client-side HTML controls to user info xpath page in security level 1 --- --- Added client-side HTML controls to user poll page in security level 1 --- --- Added client-side HTML controls to view someones blog page in security level 1 --- --- Added client-side HTML controls to xml validator in security level 1 --- Date: 03/16/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.19: --- --- BUG FIX: Fixed style in the header that was causing the menu to double up in IE and Safari --- --- Updated vulnerabilities.php with Path Relative Style Sheet Injection --- --- Fixed link to PDF documentation for installation on Windows to open in new tab --- --- BUG FIX: Fixed several absolute links into relative links. The absolute links caused issued in the latest release of Samurai WTF --- --- Removed unneeded code in styling.php --- Date: 02/21/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.18: --- --- BUG FIX: Patched index.php page. Some paths to project dependencies and included pages were relative paths rather than absolute paths that start from root. This left the paths vulnerable to path-relative stylesheet import (PRSSI) vulnerabilities. This vulnerability was not intentional and could lead to page defacement when trying to implement some intentional vulnerabilities. Referece: http://blog.portswigger.net/2015/02/prssi.html --- --- Patched add-to-your-blog.php for path-relative stylesheet import (PRSSI) vulnerabilities --- --- Added new method getUserAccountByID() to SQLQueryHandler class --- --- Updated index.php page to use object oriented query to fetch user account information --- --- Added a little more documentation comments to index.php --- --- Moved favicon.ico into images directory --- --- Fixed overly complex code for the click-jacking demonstration in index.php and framing.php --- --- Fixed IF statement in index.php that was overly complex --- --- Removed hard-coded document-type meta tag from header element of each page. The content-type needs to be set with an HTTP header. --- --- Added the content-type via HTTP header within index.php --- --- Added a new vulnerability: Path Relative Stylesheet Injection. The page in Mutillidae that implements is styling.php. It is acessible from several menus including XSS. This is described by Gareth Heyes at http://www.thespanner.co.uk/2014/03/21/rpo/ and again on the Portswigger blog at http://blog.portswigger.net/. --- --- Added Path Relative Stylesheet Injection to the bubble hints, the "Help" button and the built-in hints. Extensive help is available in the built-in hints. The user has to click the "Toggle Hints" to activate the hints system. --- --- Created a video tutorial for Path Relative Stylesheet Injection and uploaded to YouTube. The video can be accessed by opening the hints for Path Relative Stylesheet Injection. --- --- Added to several menus such as XSS, HTMLi and others --- Date: 01/05/2015 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.17: --- --- Happy New Year --- --- BUG FIX: Patched level 2 hints not showing when enabled because the path was declared as absolute instead of relative. Credit: Easy Hks --- --- BUG FIX: Corrected error in sample code within hint file HTML5 Web Storage Hint Body Credit: Easy Hks --- Date: 10/21/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.16: --- --- Added a try catch for the code that tries to create the XML file version of the accounts table. --- --- Ubuntu 12.04 does not support the file_put_contents array syntax. Switched to using parameter syntax to better support Ubuntu 12.04 LTS. Credit: @amirov and @spinkham --- Date: 10/17/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.15: --- --- BUG FIX: /mutillidae/webservices/rest/ws-user-account.php REST web service. The example links were hardcoded to localhost rather than being relative links. Credit: Michael Horkan. --- --- Improved documentation on ws-user-account.php REST web service --- --- Added link back to home page from ws-user-account.php REST web service --- --- Added RequiredSoftwareHandler class to contain methods which check if required software is installed. PHP5-CURL and PHP5-JSON have been added so far. --- --- Added required software check to home page --- --- Improved home page formatting slightly --- --- Removed redundant code from RemoteFileHandler class and migrated to using RequiredSoftwareHandler class --- Date: 09/24/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.14: --- --- BUG FIX: Moved information disclosure comment that discloses database credentials from top of page to below the body tag to fix issue in Burp-Suite render tab. Note the issue did not affect standard browsers. The render functionality in Burp-Suite does not work if comment appears at top of page. Credit Kevin Johnson (@secureideas). --- --- Altered the startup to disable bubble hints (popup hints) by default --- --- Improved the initial status hint to more clearly let the user know help is available --- --- Added James Jardine to list of default accounts --- --- Added firstname and lastname columns to the accounts table --- --- Reorganized the menu bar to put toggle hints and toggle popup hints together. Also moved the view logs and view captured data together. --- --- Updated the vulnerabilities.php page with xpath vulnerabilities --- --- Updated listing of vulnerabilities under the Documentation menu (vulnerabilities.php) to include several vulnerabilities that are built into the tool but not documented previously --- --- Added XML Injection and XML Entity Expansion to the menu under Other Injection --- Date: 09/12/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.13: --- --- New vulnerability added: XPath injection by inspired by Tim Tomes (Twitter: @LanMaster53). Some of Tim's code base was used as well. --- --- Created new directory "data" to hold text data like XML database files --- --- Enhanced set-up-database to create accounts.xml file which is stored in the data directory --- --- BUG FIX: Fixed style in set-up-database for failure message --- --- Added a new type of message to set up database: warning --- --- Created an accounts.xml file to be included with the project since PHP cannot update the accounts.xml file on all systems --- --- Added protection against the new XPath vulnerability when the security level is set to 5. --- --- Added quicklinks between user lookup XPath and user lookup SQL --- --- Added User Info (XPath) to menu in several categories --- --- Fixed a bug in SSLStrip documentation --- --- Added help me documentation for XPath --- Date: 09/05/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.12: --- --- Minor documentation improvements --- --- Moved process-login-attempt.php into includes directory --- --- Added Tim Tomes to included accounts --- Date: 09/05/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.11: --- --- BUG FIX: Fixed bug in index.php page which prevented remote file inclusion from working. Bummer that I had accidentally made the site secure from RFI. Fixed now. --- --- Created a new class to handle remote file duties --- --- Minor documentation improvements --- --- Fixed function call in YouTubeVideoHandler.php --- --- BUG FIX: Fixed misspelling of "Basketball" in index.php --- Date: 03/23/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.10: --- --- BUG FIX: Fixed bug on register.php page which caused the users password to be inserted into the user comments field. The bug was reported by Rogue Coder ‏(@roguecod3r). --- Date: 03/07/2014 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.9: --- --- Added more comments to code in index.php --- --- Added a new security feature in level 5 which monitors whether SSL is enabled. If SSL is enabled and the user browses to HTTP, the site will refuse to serve content. Also the site will not redirect the user to protect from SSL stripping. --- Date: 12/25/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.8: --- --- Created new menu with entires for OWASP Top Ten 2013, 2010 and 2007 --- Date: 11/08/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.7: --- --- Aligned XML web service with RESTful web service so user can call them the same way. Rewrote the service to use less code, renamed the methods and WSDL, and made logic more simple. --- --- Renamed XML web service from lookupAccount to ws-user-account --- --- Created new method CreateUser() in XML web service ws-user-account --- --- Created new method UpdateUser() in XML web service ws-user-account --- --- Created new method DeleteUser() in XML web service ws-user-account --- --- Created new method in custom error handler class FormatErrorXML() --- --- Added custom XML error handling to the ws-user-account Soap web service --- --- Updated listing of vulnerabilities --- --- Added a link to the project whitepaper to the side menu, documentation folder, and the instructions --- --- Added add blog page to SQLi - Insert Injection menu --- --- Added add blog page to Method Tampering (GET for POST) menu --- --- Created new vulnerability: application log injection --- --- Added add blog page to Application Log Injection menu --- --- Added browser info page to reflected XSS menu --- --- Added browser info page to HTMLi menu --- --- Fixed bug with auto-help hints. Capture data is vulnerable to SQLi; not captured-data page --- --- Added new page: back-button-discussion.php --- --- Added more information to the unvalidated-redirects-and-forwards hints --- --- Refactored some code in DNS lookup CMDi page --- --- Added method tampering hint to DNS lookup CMDi page --- --- Added DNS lookup CMDi page to Application Log Injection menu --- --- Added document-viewer.php page to method tampering --- --- Added DNS lookup CMDi page to Javascript Validation Bypass menu --- --- Added method tampering and JS validation hints to DNS lookup CMDi page --- --- Renamed JavaScript security menu to JavaScript Validation Bypass --- --- Added document viewer page to Application Log Injection menu --- --- BUG FIX: Erased an old-style hint from document viewer page. Was missed when new hint system installed. --- --- BUG FIX: Erased duplicate vulnerability listing for xml-validator.php --- --- Added login page to Application Log Injection menu --- --- Added new hint to the hints system: application-log-injection --- --- Added capture data page to Application Log Injection menu --- --- Added registration page to Application Log Injection menu --- --- Added repeater page to Javascript Validation Bypass menu --- --- BUG FIX: Added missing page to vunerabilities listing --- --- BUG FIX: Removed unneeded variables from upload.php page --- Date: 11/07/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.6: --- --- Updated the help on the RESTful web service. Browse to the service without any input parameters to see help. --- --- BUG FIX: Fixed bug in GET method of the RESTful web service ws-user-account.php which prevented SQL injection (ironic isnt it) --- --- Added examples to help on the RESTful web service --- --- Tested all of the methods in the RESTful service along all code paths. Everything should work now. --- --- Updated version on home page --- Date: 10/15/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.5: --- --- Altered the login process to allow for username enumeration and authentication bypass at the same time. --- Date: 10/03/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.4.1: --- --- Added 9 new links under menus for OWASP A3 Broken authentication and session management --- --- Added a landing page for cookie vulnerabilities named privilege escalation --- --- Added username enumeration to the help text content for the login page --- --- Added username enumeration to the REST and SOAP web services menus --- Date: 10/03/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.4: --- --- Updated vulnerabilities.php listing --- --- Rewrote process login attempt. The whole thing was a mess. --- --- Improved reliability of JavaScript on login page --- --- New Vulnerability: Added user account enumeration to RESTful lookup user account web service for the DELETE and the GET methods. Added for Tim Tomes (Lanmaster53). --- --- New Vulnerability: Added user account enumeration to login process. Added for Tim Tomes (Lanmaster53). --- --- New Vulnerability: Added user account enumeration to SOAP lookup user information web service. Added for Tim Tomes (Lanmaster53). --- --- Added some help text to new RESTful web service ws-user-account.php. Browse to page "normally" (GET request) to see help. --- --- Modified some messages in ws-user-account.php --- --- Fixed version string --- --- Fixed a bug in the pen test lookup tool AJAX which prevented JavaScript error messages from appearing --- --- Sorry to say the SQLi vuln in the JSON parser pages has to be removed because it prevents the POST JSON exercise from working (since the user must inject a single quote to do the exercise correctly.) --- --- Created class CSRFTokenHandler (CSRFTokenHandler.php) to take over CSRF duties from the pages. This makes the CSRF handling object oriented and reduces the code in the pages that use CSRF protection. New pages can have CSRF protection added easier. --- --- Deleted CSRFTokenStructure.php. File is not being used --- --- Added CSRFTokenHandler to Register user page, Add to your blog, and Poll Question pages. --- --- Consolodated some code in user-poll.php. Added CSRF protection in level 1 and level 5. Good luck in level 5. --- --- The CSRF results report will print at the bottom of pages protected by CSRF in all levels now --- --- Added links to the equivalent web services from the user-info and dns-lookup pages --- --- Fixed errors in soap web service lookup user information: Notice that vairable undefined log record pointed to wrong page --- --- Changed output for soap web service lookup user information from HTML to XML --- --- Changed the return type for the soap web service lookup user information from string to XML --- --- Changed output for soap web service dns lookup from HTML to XML --- Date: 09/16/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.3: --- --- Added new RESTful web service ws-user-account.php. Service accepts GET, PUT, POST, and DELETE methods The GET method is overloaded. If username parameter is passed as a URL parameter, then that account will be fetched. If no username is passed, a list of usernames will be returned. --- --- Refactoring some of the web service code to make it easier to read. Getting ready for ISSA Conference presentation. --- --- Added CSRF protection to "Register User" page in Security levels 1 and 5. Good luck in level five. That token is pretty random. --- --- Moved SOAP web services into SOAP directory --- --- Rewrote custom error handler to be more efficient --- --- Fixed minor bug in log error handler --- --- Added JSON output to custom error handler --- --- Added authenticateAccount() method to SQL query handler that allows username and password to be checked --- --- Added getNonSensitiveAccountInformation() to SQL query handler to lookup username and signature --- --- Standardized all pages to use getUserAccount() to pull user account --- --- Added deleteUser() method to SQL Handler --- --- Added accountExists() method to SQL Handler to allow pages to check if account exists before inserting --- --- Added updateUserAccount() method to SQL handler to allow updates to user accounts. Eventually an update account page will be added. --- Date: 09/10/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.2: --- --- Altered all statically declared class variables to be class properties so that the video tutorials will work in Metasploitable 2. --- Date: 09/09/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.1.0: --- --- BUG FIX: Credit Lee Baird and Skorpinok Rover. Fixed a bug in the YouTubeVideoHandler.php that caused a lot of errors in older versions of PHP that may not fully support static constants in object oriented programming. One system affected was Metasploitable 2. --- --- Put the vulnerabilities in the vulnerability listing into alphabetical order --- --- BUG FIX: Credit Lee Baird Added wider table to vulns.php to make list easier to read on some resolutions --- Date: 09/08/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.6.0: --- --- A new section has been added to most hints on most pages. The "video" section contains either a link to the video or a frame with the video embedded. Mutillidae will detect if Curl is installed and if the Internet is reachable. If those preconditions fail, the link will be displayed. If Mutillidae is mistaken about connectivity and the link is displayed rather than the frame, the user can still click the link to open the video in a new tab. --- --- Add hint reminder to Home page growl notification to let users know hints are available --- --- Fixed bug in code examples on XML XXE hint --- --- Added new material to the XML XXE hint from ISSA workshop --- --- On pages with multiple hints, the last hint opened will now automatically close when the next hint is opened --- --- BUG FIX (Credit Lee Baird): Fixed 3 broken links on credits.php --- --- Rewrote credits.php to remove code redundancy --- --- Deleted documentation files from OWASP ESAPI library to reduce project size --- --- BUG FIX (Credit Lee Baird): Fixed title on virtual box instructions page --- --- BUG FIX (Credit Lee Baird): Fixed VB instruction page opening in new window --- --- BUG FIX (Credit Lee Baird): Fixed title bar on installation instructions --- --- BUG FIX (Credit Lee Baird): Fixed title bar on vulnerabilities page --- --- SVN is gone due to instability issues with Sourceforge SVN. Use the following to pull project via Git. git clone git://git.code.sf.net/p/mutillidae/git mutillidae-git --- --- BUG FIX: Title on the information disclosure hints page --- Date: 08/13/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.18: --- --- Renamed change-log.htm to change-log.txt in the project and on Sourceforge --- --- BUG FIX: Disabled the error handler in the OWASP ESAPI LoggerAppenderFile.php file. This will prevent warnings when the LoggerAppenderFile.php cannot make a directory or open a file. --- --- Began work on the video handler class --- Date: 08/02/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.17: --- --- BUG FIX: Double encoding in view blog in security level 5 --- --- Simplified sidebar and footer --- --- BUG FIX: pen-test-tool-lookup.php JavaScript error on first visit --- --- Removed the bold tag from the change log --- --- BUG FIX: 2013 change log dates were wrong --- --- BUG FIX: Fixed bug report email address --- --- BUG FIX: SSL Config hints when curl-php not installed on system --- --- Updated the listing of vulnerabilities --- --- BUG FIX: Notices in user info if page SQL injected --- --- Show log page queries converted to object oriented --- --- Show log page refactored to run faster and be easier to understand --- --- BUG FIX: Removed depreciated styles from log file page --- --- Log page will show message if no records found --- --- Aligned all images vertically for a better look --- --- BUG FIX: Refresh on show logs would delete records over again if clicked right after delete logs --- --- Added growler popup when logs are refreshed or deleted --- --- BUG FIX: Alter the PHPMyAdmin config file. Added $cfg['CheckConfigurationPermissions'] = FALSE; to file in PHPMyadmin to allow project to run on Mutilidae installed on Linux hosts with world-writable permissions set on the project --- Date: 07/30/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.16: --- --- Well its official. Mutillidae II is now being developed on Ubuntu Linux LAMP rather than Windows XP XAMMP. --- --- BUG FIX: Error in set up database that affected users on Linux when setting up the database for the fist time which resulted in a Page Not Found error on first visit. --- --- BUG FIX: Forgot to update version string 3 versions in a row. --- --- ENHANCEMENT: Improved output on database offline page --- --- QA: Verified web service exploits work from Ubuntu 13.04. Windows XP already verified. --- Date: 07/26/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.15: --- --- In security level 0, allow client to determing file upload path when exploiting the Unrestricted File Upload vulnerability --- --- Improve the Unrestricted File Upload hints --- --- Added a simple shell and the Laudanum shell to the hints --- Date: 07/15/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.14: --- --- Added new menu OWASP 2007 A6 - Improper Error Handling under "Others" --- --- Added new vulnerability Unrestricted File Upload under the "Others" menu --- --- Documented new vuln Unrestricted File Upload on vulns page --- --- Refactored register.php code. Added control variables. --- --- Converted register.php queries to object oriented from procedural --- --- Altered formatting on register.php --- --- Deleted the OWASP ESAPI "Test" Directory --- --- Added new vulnerability Unrestricted File Upload on all security levels along with hints and bubble hints. This page will allow the upload of shell code when security level is low enough. The page is also vulnerable to HTMLi and XSS. --- Date: 07/12/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.13: --- --- BUG FIX: Renamed account method. --- --- Added some comments to index.php --- --- BUG FIX: Undefined variable notice in login script --- --- ADD FEATURE: Added failed login attempts that fail by exception to log messages. Now users can cause failed logins on purpose to infect log files. --- --- Updated some code in the login process --- --- BUG FIX: Fixed links to open in new tab in Johnny Long HFC page --- --- Removed unneeded code from AJAX lookup pen test tool page --- --- ADD FEATURE: The JSON pages (pen test lookup tools) now use different parsers when in different security levels. A safer parser is used in level 5. --- Date: 06/22/2013 Author: Jeremy Druin/Lee Baird --- --- Change Log for OWASP Mutillidae II 2.5.12: --- --- BUG FIX: Bug found by Lee Baird. Professional Web Application Developer Quality Assurance Pack link broken on credits page. Fixed. --- --- BUG FIX: Fixed documentation bug in vulnerability listing --- --- BUG FIX: Added page not found functionality to the page fetcher code in index.php to prevent a bug that would occur if the value of the page parameter pointed to a non-existent target --- --- BUG FIX: Bug found by Lee Baird. text-file-viewer.php External links should open in new tabs. http://www.textfiles.com/ Fixed. --- --- BUG FIX: Bug found by Lee Baird. robots-txt.php External links should open in new tabs. Robots Exclusion Standard Fixed. --- --- Added automatic path separator detection to the capture data page --- --- Added automatic temp file path detection to the capture data page --- --- BUG FIX: Bug found by Lee Baird. capture-data.php Warning: fopen(captured-data.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/mutillidae/capture-data.php on line 104 Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/mutillidae/capture-data.php on line 105 Fixed. --- --- BUG FIX: Bug found by Lee Baird. Warning: include_once(/var/www/mutillidae./includes/log-visit.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/mutillidae/capture-data.php on line 137 Warning: include_once() [function.include]: Failed opening '/var/www/mutillidae./includes/log-visit.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/mutillidae/capture-data.php on line 137 Fixed. --- --- BUG FIX: Bug found by Lee Baird. Dead link in pen-test-tool-lookup.php http://localhost/mutillidae/index.php?page=pen-test-tool-lookup-ajax.php Fixed. --- --- BUG FIX: Fixed dead link in pen-test-tool-lookup-ajax.php --- --- BUG FIX: Bug found by Lee Baird. Fixed dead link in add to your blog --- --- BUG FIX: Bug found by Lee Baird. Fixed dead link in capture data --- --- BUG FIX: Bug found by Lee Baird. Fixed absolute path bugs in all three web services documents --- Date: 06/22/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.11: --- --- Renamed the phpmyadmin.php file to be lower case. It appears some Linux PHP might be case senstive on file names. --- --- Added first iteration of web services by adapting SecureIdeas (Kevin Johnson) DVWS project to work in Mutillidae --- --- Replaced the DVWS sqli web service with userLookup() web service that has the full functionality of the user-info.php page (but in a web service) --- --- There is now a web service for SQLi, Command Injection, and a Hello World test page that just echos input --- --- Added some comments to the sql query handler --- --- Rewrote user-info.php page to set page parameters early, eliminate some code, and convert queries to object oriented calls. --- --- Fixed a XSS vuln in user-info.php (when page is in level 5) --- --- Created include file minimum-class-definitions.php --- --- Added minimum-class-definitions.php to capture data and web service pages --- --- Added web services to various menus --- Date: 06/13/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.10: --- --- Fix format error in user agent impersonation page --- --- Change project name to OWASP Mutillidae II: Web Pwn in Mass Production. How clever. --- --- Added advanced HTML injection example contributed by Jon Watkins --- Date: 5/18/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.9: --- --- Updated SQL Injection hints with more examples and URL encoded payloads --- --- Added more cross site scripting opportunities and comments to the user info page. XSS is now possible when no records are found during the database lookup. --- --- Updated the cross site scripting hints with more examples and URL encoded payload --- --- Updated the HTML injection hints with more examples and URL encoded payload --- Date: 5/18/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.8: --- --- Corrected bug in DNS Lookup --- --- Upgraded hints in SQL injection hints --- --- Converted pen test lookup tool query from procedural to object oriented code --- --- Fixed minor formatting bug in pen test tool lookup --- --- Patched multiple bugs in pen-test-tool-lookup-ajax.php --- --- Converted queries in pen-test-tool-lookup-ajax.php to object oriented code --- --- Corrected bugs in add to your blog --- --- Correct code formatting in add to your blog --- --- Added includes directory to robots.txt --- --- Patched bug in user-poll.php --- Date: 5/10/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.7: --- --- Added exploit examples to the SQL injection hints which shows how to upload a web shell via SQL injection. --- --- Altered database error handler for Samurai WTF --- Date: 5/6/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.6: --- --- Added hints and examples to the unvalidated forwards and redirects hints. --- Date: 5/6/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.5: --- --- Fixed bug in the set up database script that would cause error when redirecting back to a page which had no parameters in the URL. --- --- Added example code and additional hints to the IDOR hints --- --- Added more JS injection hints and sample injections for the password generator page --- --- Added XSS and HTMLi hints to the password generator page --- --- Added more code examples to the authentication bypass page --- Date: 5/5/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.4: --- --- Added multiple examples to the HTML injection hints including advanced code. --- --- Added code examples to the cross site scripting hints. --- --- Fixed bug in capture data page that caused issues if the capture data page was used outside of the index.php frame (which is supported). --- --- Fixed bug in DNS lookup page that caused some minor formatting errors --- --- Improved formatting on captured data page --- --- Fixed some bugs in the examples in Mutillidae test scripts --- --- Added code examples to cross site request forgery hints --- --- Added lots of file paths from Mubixs post exploit documentation to the LFI hints --- Date: 5/3/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.3: --- --- Fixed bug in index.php that prevented Mutillidae from working in Samurai WTF --- --- Fixed bugs in pages that prevented the hints from showing in Samuari WTF --- --- Reported by John Nicholson --- Date: 4/27/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.2: --- --- Added Document viewer to XSS menu --- --- Added new XSS sub-category: XSS via HTML attribute --- --- Fixed bug in database-offline.php --- --- Fixed bug in set-up-database.php --- --- Fixed bug in constants.php --- Date: 4/27/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.1: --- --- Added growl notification for login, security level changes, logout, and enforce SSL changes. --- --- Fixed bug in login sequence --- Date: 3/30/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.5.0: --- --- Added additional level 1 hints for SQL injection --- --- Added growl pop up notifications --- --- Added growl notification when hint level changes --- --- Removed and replaced hints system with dynamic hints system --- --- Created include files for hints level 1 --- --- Moved level 2 hint includes into subdirectory under includes --- --- Removed hard coded hints from all pages --- --- Made hint system modular so that each vulnerability has its own hint rather than hints being spammed to page as a block. --- --- Added the gritter jQuery plugin to project to provide growl --- --- Improved commenting on index.php --- --- Added constant define('__ROOT__', dirname(__FILE__)); to the index.php page in order to allow paths to be absolutely specified rather than using relative paths. Relative paths are required because mutillidae is designed to run on multiple versions of Windows, Linux, and Mac. However some systems such as Linux Lamp have trouble "knowing" where the relative path should lead so detecting the document root then prepending should address issues on these systems. Interestingly only certain Linux systems are affected. Samurai, Backtrack and other systems do not have the issue. --- --- Swithced paths from relative to absolute using constant __ROOT__ as in require_once (__ROOT__.'/owasp-esapi-php/src/ESAPI.php'); --- --- Altered some include_once and require_once statements to be one or the other at the most appropriate times. include_once is a warning only. --- --- Added a default "No Hints Found" hint that will display if no hints found --- --- Added User-Agent Impersonation to the security misconfiguration menu on the sites main menu --- --- Added frame source injection vulnerability to the hints system. This vulnerability was quietly added in a previous version but not advertised. --- --- Fixed two bugs in Document Viewer --- --- Updated the victim redirection page URL in the framer.php page to http://sourceforge.net/projects/mutillidae/ --- --- Reformatted the HTML 5 Web Storage Hints to be easier to read --- --- Added hint about ssl downgrade attack to login.php --- --- Patched bug in password-generator.php --- --- Corrected some grammer in some hints --- --- Removed unneeded code from pen test lookup tools ajax page --- --- Fixed minor bug in php-errors.php --- --- Added PHP MyAdmin to the project. Weeeeeeeeeeeeee. Its at http://localhost/mutillidae/index.php?page=phpmyadmin.php --- --- Added links to phpmyadmin to menus and home page --- --- Consolodated some code in register.php --- --- Added robots.txt to security misconfiguration menu --- --- Patched bug on robots.txt that prevented hints from showing --- --- Added phpmyadmin directory to robots.txt --- --- Added phpMyAdmin.php to secret admin pages --- --- Added several information disclosure pages to the menu --- --- Created new version of the Security Misconfiguration menu --- --- Added more hints to set-background-color.php --- --- Added XSS tutorial to the source-viewer.php page --- --- Added LFI and RFI hints to source and text file viewer pages --- --- Added SQL injection hints to sqlmap targets page --- --- Added SQL Map "How To" hints to the sql injection hints --- --- Added sql-injection-tutorial to sqlmap targets page --- --- Updated vulnerabilities.php --- --- Added a prototype of a future feature of OWASP Mutillidae II; embedding video hints --- --- Added user-agent-impersonation.php to vuln listing and hints system --- --- Added the following new hints: Frame Source Injection, HTML 5 Web Storage Theft and Manipulation,Robots.txt, Secret Administrative Pages,User Agent Impersonation --- --- Converted remaing blog queries to object oriented code --- --- Added feature request to home page --- --- Removed redundent links from menu --- --- Added parameter addition vulnerabilty to view user privileges --- Date: 3/24/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.10: --- --- Altered comments on the XML Validator page to fix a bug present in Firefox 3.0. FF3 is obsolete but still used in some security training courses. --- --- Suppressed errors during creation of HTML5 web storage items in order to support older browsers which have not implemented window.localStorage and window.sessionStorage. --- --- Created a title for the Help Me! buttons to show which page the button will help with --- --- Improved home page layout, added help links --- --- Added link to email support to home page --- --- Improved formatting of the footer --- Date: 3/24/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.9: --- --- Added border=none formatting to images and anchors to support old Firefox used in some versions of Samurai used in courses. --- --- Improved formatting, wording, and instructions of the "database offline" page to make it more clear to the user what action to take. --- --- Added an automatic redirect to the "database offline" page when the user opts out of seeing the messages. --- --- Altered the "database offline" page to be more resiliant to installations on Samurai WTF. If the default password of blank does not work, the system will try the password "samural" regardless of the error message returned. --- --- Improved layout of side menu --- --- Added more help links to home page --- --- Reformatted Home page to make links less crowded --- Date: 2/21/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.8: --- --- MAMP user reported fatal error in which method getPrevious of the Execption class is undefined. The issue could be that MAMP comes with PHP 5.2.x while Exception:getPrevious() requires PHP 5.3.0 or greater. Added a check on the Exception:getPrevious() method to only use the method if it exists. --- Date: 2/21/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.7: --- --- Improved spacing on home page to make hints look better when they are activated --- --- BUG FIX: Undefined index in XML validator page --- --- BUG FIX: Undefined index in User Information page --- --- BUG FIX: Fixed XSS in security level 5 in User Information page --- --- BUG FIX: Undefined index in DNS Lookup page --- --- Added additional bubble hint to the User Information page --- --- Refactored code on DNS Lookup to make it easier to understand how to remediate for developers --- --- Added large amount of information to SQL query error messaged by serializing the MySQLi object upon error executing a query in the MySQLHandler class. This will make is easier for users to see what errors caused issues. --- --- Upon SQL error the query injected is output to help users figure out the correct SQL injection --- --- BUG FIX: Corrected bug in insert query error handling --- --- Split off logging of insert of new blog record so that an error in logging wont stop the injection from working. This makes it easier to get injections to work for new users. --- --- Tested and verified that the add to your blog page is a good target for the Beef Framework --- --- Added BeeF Framework Targets to the menu under cross site scripting sub menu to give users a list of pages known to work well with beef hooks. There is a new menu called Beef Framework Targets. --- --- Tested project on XAMPP 1.8.1 --- --- Converted lookup pen test tools to use the object oriented SQL queries --- --- BUG FIX: pen test tools ajax version that prevented lookup function from working --- --- BUG FIX: pen test tools both versions that gave undefined index error --- --- Added Remote File Inclusion and Local File Inclusion to the Arbitrary File Inclusion page. --- --- Added hints on how to perform remote and local file inclusion to the arbitrary file inclusion page. --- --- Added new links on main menu for remote file inclusion and local file inclusion --- --- Added new page popup hints to the arbitrary file inclusion page. --- --- BUG FIX: Client information handler threw error if operating system was not detected. This has been fixed. --- --- Replaced the operating system detection code with new code from http://www.killersites.com/community/index.php?/topic/2562-php-to-detect-browser-and-operating-system/. This is in method public function getOperatingSystem() in the client information handler. --- --- BUG FIX: Repeater page had two undefined index notices on first visit --- --- BUG FIX: Fixed for undefined variable notices in page view-user-privilege-level.php --- --- Updated vulnerabilities listing --- Date: 2/12/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.6: --- --- BUG FIX: Tim Tomes discovered another bug in the back button that caused a notification error that the referer was not declared on the first visit after a fresh install. --- --- BUG FIX: Fixed several bugs in the capture data page found by Gustav/toffe1996 which were due to old code left after upgrades, repeated code (again from previous upgrades), and double encoding data destined for an insert query. --- --- Added link to the capture data page to the captured data page --- --- Converted query on captured data page to object oriented query --- Date: 2/10/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.5: --- --- BUG FIX: Tim Tomes discovered a bug in the back button that caused a notification error that a variable was not declared if the project is in security level 1. The bug did not appear in security level 0 or 5. --- Date: 2/8/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.4: --- --- BUG FIX: In security level 5 the pages in the documentation folder would not display due to a misconfigured security control --- --- BUG FIX: On page XSS � Reflected � Text File Viewer, Nicholas Watkins noted that XSS was possible on security level 5 (secure) with: %3c%73%63%72%69%70%74%3e%61%6c%65%72%74%28%31%29%3c%2f%73%63%72%69%70%74%3e in the file field. This attack takes advantage that the injection causes an error from PHP itself outside of the PHP code's control. When PHP shows the error it includes the filename which in this injection happens to be valid JavaScript inside a script tag. The browser executes the JavaScript when viewing the error. --- --- Removed outdated sqlmap help file --- --- Changed layout of home page --- --- Removed several unused icons from images folder --- --- Removed the test and examples directories from the OWASP ESAPI folder. This reduced project size by ~500 KB. --- --- Refactored code for page Text File Viewer --- --- Added method tampering vulnerability to security level 0 and 1 in page Text File Viewer --- --- Added updated XSS defenses for security level 5 in page Text File Viewer --- --- Updated vulnerabilities listing --- --- Updated logging on page Text File Viewer to prevent failed logging attempt from stopping execution of the page. --- --- Capture data page now uses object oriented SQL queries --- --- Depreciated notes.php --- --- Added link to the vulnerabilities page to the home page --- --- Added link to the vulnerabilities page to the usage instructions page --- Date: 1/31/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.3: --- --- Added login.php page to the sqlmap targets in the menu --- --- Modified several links to open in new windows/tabs rather than taking over main screen --- --- Reduced some unneeded styles --- --- Added links for Firefox add-ons to home page --- --- Added link for sqlmap to home page --- --- Added new page with SQLMap practice targets, link to video, and new hints section --- Date: 1/26/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.2: --- --- Fixed bug in usage instructions and rewrote the instructions. Several new features have been implemented. --- Date: 1/21/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.1: --- --- Added method tampering vulnerability to register.php --- --- Updated the vulnerabilities.php page --- --- Added large amounts of help texts to various pages --- --- Added Method Tampering to menu with two pages under this vulnerability --- --- Added Poll Question to HTMLi and XSS menus --- --- Added several pages to several new menu entries --- Date: 1/13/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.4.0: --- --- Installed popup help text on the images and links of the home page. --- --- Added help button example to home page --- --- Reconfigured home page to try to help user understand what to do --- --- Added colorbox jquery plugin to project --- --- Created jquery-init.inc to hold jquery initialization scripts --- --- Created new class SQLQueryHandler and began experimenting with collecting all queries into this class in preparation for using other brands of databases --- --- Created the pop up help context page to act as an AJAX backend to the HELP ME buttons being added to the site --- --- Added new tables and data to the database to support the new HELP ME buttons for each page --- --- Reduced code for back buttons --- --- Created include file for back button to avoid spamming code on all the pages --- --- Created the HELP ME button on each page to tell the user what to try --- --- Added arbitrary-file-inclusion.php to the XSS header menu --- --- Updated the vulnerabilities listing --- --- Patched defect in browser-info.php that would return Warnings if the system is not connected to the Internet. --- --- Added browser-info.php to the HTMLi injection via HTTP headers menu --- --- Added large number of pages to the HTMLi menu --- --- Added captured-data.php to menu under insert based sql injection --- --- Added new page describing a new vulnerability SSL downgrade. The SSL Misconfiguration page has been added to the A9 menu --- --- Bug Fix: Repaired link http://localhost/mutillidae/index.php?page=view-someones-blog.php in add blog page. Changed to relative link ./index.php?page=view-someones-blog.php to fix link when Mutillidae is running on remote server. Also fixed equivalent link from view blog page back to add blog page. --- --- Moved insert blog entry query to object oriented class --- --- Added more hints to the XML entity injection page --- --- Added new type of cross site scripting injection; via XML injection --- --- Bug fix in formatting on vulnerabilities.php page --- Date: 1/11/2013 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.14: --- --- public function encodeCharacter($input) /* Altered by JD 1/11/2013 to repair error message * which appears because the parent class of this * class declares the same function with a different * signature. * * Strict Standards: Declaration of Base64Codec::encodeCharacter() should * be compatible with Codec::encodeCharacter($immune, $c) in * /opt/lampp/htdocs/mutillidae/owasp-esapi-php/src/codecs/Base64Codec.php * on line 130 */ --- --- Added try-catch to $LogHandler->writeToLog("Attempt to log in by user: " . $username); in process login attempt page to prevent error with log handler. --- --- Added color coding to user account level displayed in the menu at the top of the page --- Date: 12/08/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.13: --- --- Added validation for valid XML characters in level 5 of the XML External Entity Injection page in order to detect and block attacks based on alternate encodings of XML. Thanks to Nicolas Gr�goire (@Agarri_FR) for providing working injections. --- Date: 12/07/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.12: --- --- Repaired bug in XML External Entity Injection page /index.php?page=xml-validator.php found by Nicolas Gr�goire (@Agarri_FR). --- --- Improved error message formatting on XML External Entity Injection page --- Date: 12/06/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.11: --- --- Improved formating on User Information page --- --- Added border radius styling to all fieldsets --- --- Improved formatting on the error handler messages --- --- Updated main title on home page --- --- Redesigned home page layout --- --- Introduced a new type of vulnerability: XML External Entity Injection --- --- New page added at /index.php?page=xml-validator.php to implement the XML External Entity Injection vulnerability --- --- Added hints to XML External Entity Injection page --- --- Updated vulnerabilities.php page --- --- Added XML External Entity Injection page to header menu at path "OWASP Top 10" -- "Other Injection" -- "XML External Entity Injection" -- XML Validator --- Date: 10/26/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.10: --- --- Added more hints into the user-agent impersonation page --- --- Moved header, footer, log-visit, and config.inc into "includes" directory --- --- Added additional link for captured data page to capture data page. --- --- Updated link for Latest Version of Mutillidae --- --- Added new challenge level to CBC bit flipping. Level 1 presents a new challenge to solve --- --- Added a new field to the CBC bit flipping. The field has no bearing on winning the challenge but provides some theatrics as it changes if the first four bytes of the IV are modified. --- Date: 10/18/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.9: --- --- Moved the change log file into the documentation folder --- --- Added the JavaScript Object Notation (JSON) pages to the SQL injection menu as well as the HTML-5 menu --- --- Fixed bug on capture data page where SQL Injection protection was in the wrong place --- --- Added new global style for success messages --- --- Corrected CSS errors on Add to your Blog and View Blogs --- --- Added new challenge page named user-agent-impersonation.php The goal is to impersonate an iPad fairly closely. Added browser fingerprint elements that can be changed by User-Agent Switcher and some elements that have to be changed in the browser configuration. --- Date: 09/26/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.8 (KY ISSA Conference Version): --- --- Added JavaScript validation to the user-info.php page. This validation is activated in security level 1 and security level 5. The user can bypass in various ways including proxy and disabling JS. --- --- Added the page visited to the logging script that logs when a user visits each page. This makes the logs more realistic. --- --- Added the various commands needed when performing command injection to open up telnet on a Windows XP host. This applies to command injection performed on the "DNS Lookup" page. The file with the example commands is located in /documentation/mutillidae-test-scripts.txt --- --- Added the various commands needed when performing command injection to open up Windows Remote Desktop Connection (Windows Terminal Services) on a Windows XP SP3 host. This applies to command injection performed on the "DNS Lookup" page. The file with the example commands is located in /documentation/mutillidae-test-scripts.txt --- --- Since the "CurrentBrowser" attribute is not well-supported in browsers, the html-5 web storage page will now set an attribute called AuthorizationLevel to act as a target --- --- Refactored the pen test tools lookup page --- --- Add new page for attacking AJAX called pen-test-lookup-tool-ajax.php The page makes AJAX requests to fetch information about the tool selected. This allows the user to attempt to hack an AJAX driven request which fetches JSON data. --- --- Added user-info.php page to the "JavaScript Security" menu --- --- Added new menu for HTML-5/AJAX/JSON related pages and content --- --- Added hint about mutiilidae test scripts file to the home page --- --- Improved the log file functionality so that if the page variable is blank such as in an AJAX request, the page will be fetched from the super global variables. --- Date: 09/15/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.7 (Samurai 2.0 Version): --- --- Improved detection of incorrect database settings on the set-up-database script. --- --- Added code to make it easier to install on Samurai WTF. The MySQLHandler->openConnection() method will automatically try the password "samurai" if the configured password fails. --- --- Created installation video for updating OWASP Mutillidae II Mutillidae on Samurai WTF 2.0 on the webpwnized YouTube Channel. --- --- Cleaned up code in MySQLHandler.php --- --- Added code to set up database page to detect if user fixed errors. If the user came from the database error page but we do not have database errors anymore, send them to the home page. --- --- Changed font on the database error page --- --- Imporved error handling for database errors in index.php --- Date: 09/15/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.6 (Samurai 2.0 Version): --- --- Introduced a bug. Oops. This version superceded by 2.3.7 upon release. --- Date: 09/03/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.5: --- --- Added more hints on the secret-administrative-pages.php --- --- Added OWASP Mutillidae II to Sourceforge Subversion (SVN): https://mutillidae.svn.sourceforge.net/svnroot/mutillidae --- --- Added cross-site-scripting tutorial to the page arbitrary-file-inclusion.php --- --- Updated the vulnerabilities.php page with a few dozen more hints about vulns --- --- Updated comments on config.inc. The file is not used in this project anymore. --- --- Added more hints to credits.php --- --- Added cross-site-scripting tutorial to the page document-viewer.php --- --- Oops. Fixed page title on page secret-administrative-pages.php --- --- Added new page for directory browsing under A6 - Security Misconfiguration menu --- Date: 08/13/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.4: --- --- Added documentation around database configuration area in MySQLHandler.php --- --- Cleaned up some code in header.php --- --- Added Enforce SSL functionality for use with SSLStrip. This gives the user a way to force Mutillidae to redirect any HTTP requests to HTTPS --- --- Squeezed menu to better fit on low resolution screens --- --- Added a new button on the side menu for Enforce/Drop SSL --- --- Added a new button on the top menu bar for Enforce/Drop SSL --- Date: 08/13/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.3 (OWASP Broken Web Apps Edition): --- --- Added additional messages to set up database script to help user diagnoise issues --- --- Cleaned up code in the set up database script --- --- Altered set up database to allow user to choose the name of the database to be whatever they like. This is configured in MySQLHandler.php --- --- Set up database script will now output the database name, MYSQL server name, and the username at different points in the set up to help the user diagnose configuraton issues --- --- Color coded messages in set up database script to help user identify trouble spots --- --- Made the database configuration variables static public class properties --- --- static public $mMySQLDatabaseHost = "localhost"; --- --- static public $mMySQLDatabaseUsername = "root"; --- --- static public $mMySQLDatabasePassword = ""; --- --- static public $mMySQLDatabaseName = "OWASP Mutillidae II"; --- --- Added database server host name to output of database-offline to help diagnostics --- Date: 08/10/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.2 (Codename: Mutillidae): --- --- Added large amount of code to help users who have database issues of some type or users unfamiliar with MySQL --- --- Made change to bubble hint hanlder to return error message if hint retrieval fails rather than allow page to fail --- --- Added new page database-offline.php to handle database error --- --- Added database error detection to setup scripts --- --- Changed how the database connection occurs. The MySQLHandler splits the connection to the database server and OWASP10 database into separate steps to help the user have a better chance of detecting issues. This allows the index.php page to connect later in the process as well. --- --- Improved database connection in log handler --- --- Changed database configuration to static properties --- --- Added method connectToDefaultDatabase() to SQL Handler class --- Date: 07/27/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.1 (Codename: Mutillidae): --- --- Updated vulnerabilities listing --- --- Added an entirely new attack on a new page: view-user-privilege-level.php --- --- Added view-user-privilege-level.php to main menu under broken session management --- Date: 07/26/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.3.0 (Codename: Mutillidae): --- --- Updated project to work with newest XAMPP and LAMP stacks. Last update to stack compatibility was in 2010 for Apache 2.2.x --- --- Mutillidae now works on XAMPP 1.8: Apache 2.4.2, MySQL 5.5.25a, PHP 5.4.4 --- --- Corrected error on document viewer --- --- Added new page repeater.php with new vulnerability buffer overflow --- --- Added new bubble hint for buffer overflow --- --- Added new bubble hint HTMLandXSSInjectionPoint --- --- Added new vulnerability class for parameter addition --- --- Added new hints about parameters addition and buffer overflows --- --- Split the A1 menu into SQL injection and non-SQL injection because the section was too large to fit on screen. --- --- Updated vulnerabilities listing --- Date: 07/18/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.2.3 (Codename: Mutillidae): --- --- Made main title and icon smaller to make more room for small displays --- --- Patched bug calling bubble handler on index.php --- --- Added new vulnerability: frame source injection --- --- Added new page: document-viewer.php --- --- Added document viewer link to HTTP parameter pollution menu and frame source injection menu --- --- Added document viewer to XSS reflected menu --- --- Added new page robots-txt.php --- --- Applied new styles to buttons, inputs, textarea, hints, tutorials, etc. --- --- Fixed layout issue in credits.php --- --- Fixed bug in register.php --- --- opendb.inc and closedb.inc deleted from project --- --- Imporved code on password generator page --- Date: 07/16/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.2.2 (Codename: Mutillidae): --- --- Improved error handling and error exception bubbling in the MySQL class to make it easier to diagnose errors in the bubble hint handler. --- --- Imporved bubble handler code via refactoring --- --- Patched a bug in the show/hide bubble hints --- --- Converted add-to-your-blog to object oriented MySQLHandler --- --- Corrected minor error handling bug in browser-info.php --- --- Added logging to add to your blog to create more opportunity to poison logs --- --- Added Method switching vulnerability to user poll --- --- Cleaned up code in user poll --- --- Fixed cross site scripting vulnerability in user poll when in secure mode (ironic) --- --- Added logging to user poll --- Date: 06/15/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II 2.2.0 (Codename: Mutillidae): --- --- Added balloon tips to help users using jQuery ballons --- --- Added jQuery to Mutillidae --- --- Added large amounts of hints to html-5 web storage page --- --- Added notes and demos from AIDE conference talk to pen test lookup tools page --- --- Added notes and demos from AIDE conference talk to html-5 storage page --- --- Added notes and demos from AIDE conference talk to all pages with cross site scripting (click hints to see) --- --- Made show hints code more efficient --- --- Fixed the width of the command injection level-2 hints --- --- Added more comments to index.php --- --- Made it so the "hints" cookie shows all the time rather than only if the user changes the hint level --- --- Made is easier for user to hack the hints cookie to make hints appears when hints should not appear --- --- Regression tested the hints functionality since most of it changed --- --- Syncronized bubble-hints handler with security levels. The bubble hint can change with the security level. This provides a foundation for the future. --- --- Created the MySQLHandler class --- --- Converted bubble hint handler to use MySQLHandler class --- --- Improved command injection hints on the DNS lookup page --- --- Cleaned up some code on the DNS lookup page --- --- Converted log file to using the MySQLHandler class instead of the connection previously passed on each call to log. This will make logging more simple and faster. --- --- Added getSecurityLevel() method to logging class and the MySQLHandler class --- --- Made hints routine run faster --- --- Improved the vulnerabilities listing in vulnerabilities.php --- --- Improved code on add to your blog --- --- Switched add to blog page to use object oriented sql handler --- --- Added toggle-hints to the core controls menu --- --- Added "show popup hints" options to menu --- --- Tried to move object storage to session so objects are only generated once per session then persisted for the remainder of the session. This greatly imporves performance of objects plus allows the objects to be persistent (remember things). Didnt work. PHP cannot persist objects. --- --- Cleaned up code on arbitrary file inclusion page --- --- Standardized the bubble hint code to make it easy to add new hints --- --- Added browser-info.php to the JavaScript injection menu --- --- Fixed a bug in the hints formatting on the browser-info.php page --- --- Corrected mistakes in the vulnerabilities listing page --- --- Simplified main menu bar under title at top of each page --- --- Added logging to the authorization required error page --- --- Added logging to the capture data page to log the captured data --- --- Converted the capture data page to use OOP SQL handler --- --- Added source viewer page to the menu for Failure to Restrict URL access --- --- Fixed formatting issue on text file viewer --- --- Fixed some old formatting issues in user info php left over from Mutillidae 1.0 --- --- Fixed code clarity in user info --- --- Converted user info to use MySQL handler class --- Date: 05/14/2012 Author: Jeremy Druin --- --- Change Log for OWASP Mutillidae II (Codename: Mutillidae) 2.1.20: --- --- Changed some color schemes --- --- Bug fix: The html5 key validation on the on the html5 page was too restrictive. The validator was throwing errors even when the input was ok. This validation checks for any non-alphanumeric characters and prints an error if non-alphanumeric characters are found. This error message contains the bad key the user input. Since the site fails to output encode this error message, it is possible to perform DOM injection. --- --- Add the html5-storage.php to the vulnerabilities listing. --- --- Bug Fix: Fixed a bug in pen-test-tool-lookup.php for security level 5 in which the page would throw an error upon submitting the tool to look up. --- Date: 05/13/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.19: --- --- Fixed broken link to https://addons.mozilla.org/en-US/firefox/collections/jdruin/pro-web-developer-qa-pack/ (Mozilla Add Ons) on the "Resources" sub-menu. --- --- Added "validation" to the html5 storage page for the "key" field. This validation checks for any non-alphanumeric characters and prints an error if non-alphanumeric characters are found. This error message contains the bad key the user input. Since the site fails to output encode this error message, it is possible to perform DOM injection. --- --- Added a large number of HTML 5 based exploits to the Mutillidae-Test-Scripts.txt file. Approximately 100 lines of new demonstration code has been added. --- --- On the setup or reset database page, if no errors were detected, the page now sends the user back to the page that requested the database be reset. A popup box gives the user the option to stay on the page. --- Date: 03/15/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.18: --- --- The setup datebase page now clears HTML 5 Local and Session Storage --- --- Fixed alignment issues with icons on the captured-data page. --- --- Partially protected capture-data.php page so that the page can capture values that cause SQL injection. Other fields are left unprotected so users can practice sending SQL injections. --- --- Added timestamp to records captured in the captured-data.txt text file --- --- Added script to home page to add a value to HTML 5 storage when user visit the site. This will give users a web storage target to go after even if they dont visit the HTML 5 storage page. --- --- Coverted log-visit.php from using the hitlog table to using the LogHandler class. This will help consolodate code into a single point of failure for the logging process. All the code has been removed from log-visit.php except a call to the LogHandler. --- --- Adjusted top horizontal menu padding to move buttons closer together --- --- Added two new buttons to the top horizontal menu to allow user to get to the view log page and the view captured data page easier. --- --- Removed the gethostbyaddr() function from the LogHandler to prevent the long timeouts associated with the function when the DNS server is not available. If PHP changes so that the function has a timeout setting it will be brought back. --- --- Changed delete icon from jpeg to a transparent PNG so the icon can be put inline to the table headers to save space. --- --- Added delete log button to the show log page. --- --- Rearranged the buttons on the show logs page, added new icons, and cleaned up the code --- --- Added new information output about numner of records found to view logs page --- --- Made the buttons on the captured data page smaller to free up some space. --- Date: 03/08/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.17: --- --- Added new menu items for DOM injection and Cookie injection. --- --- Added a delete captured data button to the captured data page --- --- Added new sub-menus to the cross site scripting menu for persistent and reflected cross site scripting. The pages to which the links point are existing pages but the new menus will help new users locate targets for these types of cross site scripting. --- --- Added large number of proven scripts to the Mutillidae-Test-Scripts.txt file --- --- Added link on View Blog Entries back to Add to Your Blog --- --- Added link on Add Blog Entries back to View Blogs --- --- Fixed typo on HTML 5 storage page --- --- Added delete buttons to the HTML 5 web storage page to help testing --- Date: 03/01/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.16: --- --- Additional hints added to HTML5 Web Storage page to overwrite current web storage --- --- Additional hints added to HTML5 Web Storage page concerning reading current web storage. Added code examples for document.write and using Firebug command line. --- --- Added several new items to the Easter Egg file Mutillidae-Test-Scripts.txt --- --- New vulnerability added. The HTML5 Storage page now has cross site scripting via DOM injection. The "storage key" field is vulnerable. --- --- Added hints about DOM injection to the HTML5 Storage page. --- --- Added hints to the capture-data.php page about cross site scripting --- --- Updated the vulnerabilities listing --- Date: 02/11/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.15: --- --- Upgraded the "JavaScript Validation" for the dns-lookup.php page. The JavaScript validation is only activated in security level 1. The new validation checks for cross-site scripting characters in addition to OS command injection characters. The validations are trivial to defeat by disabling JS in the browser or using an interception proxy to bypass the validation. --- --- In security level 1, on page add-to-your-blog.php the CSRF token is now generated. The token is predictable although perhaps not obvious. The intention is for students to use Burp-Suite sequencer to discover the pattern and inject the next token in the sequence (or to subtract each token from the last token). --- --- The CSRF token generator for the add-to-your-blog.php page is now using the OWASP Randomizer to generate random tokens in security level 5. The previous generator used mt_random() which was not really random. These new tokens have an entropy of around 132 bits. --- Date: 01/30/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.14: --- --- Made menu smaller width. Menu is 10% of screen now. This should help when using mutillidae on a classroom projector showing at 1024 x 768. --- --- Made Banner 2.5% less tall. Gotta make some room people. --- --- Fixed formatting bug in dns-lookup.php that made hints look funny --- --- Added lots of new advanced examples to the Easter Egg file called Mutillidae-Test-Scripts.txt. The file is located in the documentation folder. --- --- Password Generator (password-generator.php): Fixed bug by removing brackets from possible characters that will be used to make password. --- --- Added new field to accounts: Boolean is_admin. --- --- Added concept of administrative users and regular users --- --- Added new vulnerability. There are secret pages that can be brute forced using a brute forcing tool like DirBuster or Burp-Intruder. Using Burp-Intruder try cycling through the "page" parameter with common names for secret pages. For example, try secret.php. --- --- Fixed typo on page not found page --- --- Created authorization required page --- --- Added "Secret" Administrative Pages to menu under A8 - Failure to Restrict URL Access --- --- Made menu item for Robots.txt more obvious --- --- Fixed typo on vulnerabilties documentation --- --- "Logged in user" now says "logged in admin" if the logged in user is an admin --- Updated accounts created as targets --- --- Improved output formatting on phpinfo.php page --- --- Altered phpinfo.php so that admins can see page in any level but regular users can only see page in security levels 0 and 1. --- Date: 01/10/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.13: --- --- Added Mutillidae YouTube channel link to menu --- --- Fixed some menu links so they open in new window --- --- Added a hint to the framer.php page telling the user to try to change the security level. --- --- Added a new page called anti-framing-protection.inc. The page shows developers how to implement old-style javascript frame busting code. This isn''t used for new browsers because x-frame-options has supplanted the frame busting code, but there are still many old browsers running in kiosks and such. --- --- Added more documentation in the Easter Egg file Mutillidae test scripts --- --- Added Kevin Johnson as honorary default user --- --- Added more values to default database to make SQL injection more interesting --- --- Reduced the size of the header thickness to make more room --- --- Greatly improved SQL Injection tutorial or at least typed a lot more stuff --- --- Upgraded the Easter Egg file with more tips and tricks; mainly on SQL injection --- Date: 01/09/2012 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.12: --- --- Changed sort order for captured-data.php to descending by date so last capture floats to top --- --- Added a refresh button to the captured-data.php page --- --- Added all the latest pen-testing scripts to the easter egg file Mutillidae-Test-Scripts.txt --- --- Improved the hints on the HTML5 Storage page --- --- Oops. Fixed bug in HTML5 storage PHP page. --- --- Upgraded code in process-login-attempt.php pointed out by Josep Duran --- --- Fixed a bug on add-to-your-blog.php in the CSRF code which would not allow a new blog to be saved. Bug found by by Josep Duran. --- --- Made the table output on add-to-your-blog.php look nicer. --- --- Got rid of unneeded commented out code on set-background-color.php --- --- Improved output readability on dns-lookup.php --- --- Improved output readability on set-background-color.php --- Date: 12/27/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.11: --- --- Added more tools to pen-test-tool-lookup.php. --- --- Added lots of HTML5 attacks to the easter egg file Mutillidae-Test-Scripts.txt --- --- Added new page capture.php which captures any information sent to the page in GET or POST parameters and saves them to a database table. Can be used to capture cookies, session storage, local storage, or other data. The page is designed to reflect the capture cookie page used in the SANS 542 Web Application Pen Testing course currently taught by Kevin Johnson of SecureIdeas. This page is designed to capture any parameters sent and store them in a file and a database table. It loops through the POST and GET parameters and records them to a file named captured-data.txt. On Windows system, the file should be found at C:/xampp/htdocs/mutillidae/captured-data.txt. The page also tries to store the captured data in a database table named captured_data. There is another page named captured-data.php that attempts to list the contents of this table. --- --- Added new page captured-data.php which displays data captured by page capture.php. In true Mutillidae fashion, this page is as vulnerable as all the others. Try hacking the hacker by sending SQL injections and XSS to the capture.php. --- --- Changed includes for database configuration to require_once so that some pages can stand alone or work with index.php --- --- Added a new table to the database called captured_data --- --- Added better comments to index.php --- --- Added data capture pages to menu under "Other" --- --- Added detailed tutorials to the HTML5 storage page and the pen-test-tools.php page showing how to pen-test and exploit HTML5 storage and perform JSON injections. To see the new hints sections browse to the pages and click the hints button. The hints show at the bottom of the page. The HINTS button is on the menu at the top of the screen. --- Date: 12/17/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.10: --- --- Added menu item for the BACK buttons that are on all the pages. They are injectable to cause XSS. The menu item is located under OWASP Top 10 --> A2 - Cross Site Scripting (XSS) --> Via HTTP Headers --> Those BACK Buttons. Any page will do. I just picked one at random. --- --- Corrected some errors in the HTML5 storage hints. You have to enable HINTS level 1 to see the hints. The HINTS button is on the menu at the top of the screen. --- --- Renamed setupreset.php to set-up-database.php --- --- Fixed a nasty bug in view someones blog where the dropdown was missing names of bloggers --- --- Fixed a minor formatting bug in html5-storage.php --- --- Adjusted the graphics on the home page --- --- Added a new page pen-test-tool-lookup.php. This page is vulnerable to JSON injection. A large tutorial was added as well showing how to perform JavaScript XSS injection into the JSON data so that the XSS executes. To see the tutorial, click the HINTS button. As an exercise, the user is encouraged to perform a JSON string injection and an HTML injection after learning how to perform the XSS injection. The JSON has been carefully designed to make it relatively easier to get the JSON injection to work. JSON injection can be somewhat tricky if a user has not tried it before and/or does not use JSON in web applications. The HINTS button is on the menu at the top of the screen. The page is also vulnerable to SQL injection, HTML injection, and JSON string injection in addition to XSS. --- --- The next step will be to add defenses to pen-test-tool-lookup.php. There will be a level 1 defense and a level 5 defense. The level 1 will just be JavaScript validation. Level 5 defense will be more robust and hopefully difficult to defeat. This will be release 2.1.11 or later. --- Date: 12/16/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.9: --- --- Added a large cross site request forgery tutorial. To access the tutorial, the HINTS have to be on level 2. --- --- Adding better formatting to the Cross Site Scripting Tutorial --- --- Updated the menu to point the user to two pages which are vulnerale to CSRF --- Date: 12/15/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.8: --- --- Bug fix: The links on the front home page were absolute instead of relative. This was not an issue in XAMPP installations but caused an issue when installed on Samurai because Samurai uses http://mutillidae as Mutillidae's URL while XAMPP just uses http://localhost. The links should have been relative anyway. --- Date: 11/26/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.7: --- --- Added a new page for HTML5 storage. The page is meant to show how to both use and attack HTML5 storage. The page supports Local and Session storage types. The user can attack the storage in two contexts. They can act as if they want to read to contents of their own browsers session storage to see if the developer put authorization tokens or other items into the storage. They can also try to use XSS to steal the session storage. In this use-case the user would be acting as if they wanted to read someone elses storage. A large number of hints has been added to the page. The page name is "html5-storage.php" and can be accessed from the Cross Site Scripting menu and information leakage menu. In security level zero, the page has no defenses. In level 1, the page will use trivial JavaScript validation. In security level 5, the page will refuse to put the secrets in client side storage. --- Date: 11/13/2011 Author: Jeremy Druin / Kenny Kurtz --- --- Change Log for Mutillidae 2.1.6: --- --- Enhanced the .htaccess file to automatically disable magic quotes on systems which enable them by default (such as some OSX versions of PHP) --- --- Fixed some bugs in the phpinfo.php file that made the page display weird. --- --- Enhanced the hidden PHPINFO page so that it would work if the user browsed to http://localhost/mutillidae/index.php?page=phpinfo.php or to http://localhost/mutillidae/phpinfo.php. This example assumes Mutillidae is running on localhost. --- --- Fixed a bug in index.php that kept the log-visit page from being included. --- --- Fixed a bug in log-visit.php that kept the page from working. --- --- Fixed installation instructions format for IE 8 not in compatibility mode. --- Date: 11/10/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.5: --- --- Added vuln to login sequence. Now a cookie is created with username. Students should try to XSS the cookie and see what happens. Also try a response splitting attack because a cookie is an HTTP header. --- --- Created new twitter feed to make Mutillidae announcements and other web vulnerability tweaks. @webpwnized --- --- Fixed installation instructions format for IE 8 not in compatibility mode --- Date: 10/14/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.4: --- --- Moved usage instructions and php errors from the home page to their own pages. --- --- In insecure mode, changed the method of the user-info.php page to GET in order to make it easier to use sqlmap against Mutillidae. sqlmap supports POST but it is easier to use with GET. --- --- Added hints about sqlmap to sql injection tutorial and to the easter egg file --- --- Added a credit card table as a target in the database --- --- Confirmed that the view-blog table can be attacked with sqlmap. The answer is in the Easter Egg file. --- --- Updated the SQL injection tutorial file --- Date: 10/13/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.3: --- --- Fix a bug. If the user was on the home page, without having clicked any link to this point (such as when using a bookmark), then the user clicked the "change security level", the page would redirect to page not found. --- --- Increased the slide time for the ddsmoothmenu to make it slow down a little bit --- --- Added a NEW vulnerability. Many sites have crazy pages that show server settings, expose admin functionality, allow configuration, or other features a user should not be able to see. The problem is not the pages themselves so much as the fact that developers think no one will guess the name and browse to them. Shoulder surfing, guessing, brute-forcing, etc can be used to find these pages. Mutillidae now has such a page. It is in the "Server Misconfiguration" category. See secret-administrative-pages.php for hints. --- --- Augmented the installation instructions --- --- Added link to ihackcharities to front page --- Date: 09/25/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.2: --- --- Added a new security level. Now there is security level 1. The only difference in this release between level 0 and level 1 is that level 1 has JS validation. The JS validation has been in place for a while to allow but was activated in level 0. Since level 0 is supposed to be very easy, the decision was made to create level 1 and move JS validation to level 1. The JS validation is trivial to bypass. Simply disable JS or use a proxy such as Tamper Data, Paros, Burp, WebScarab, or others. --- --- Page homenotes.php has been merged with home.php. --- --- Page home.html has been renamed home.php --- --- Added protection for SQL injection to add to your blog.php output of the current users blog entries. Prior to this patch, you could SQL inject in security level 5 by putting your injection in the current users login name because the query uses the current users login name as the input to the query. --- --- Improved the DNS lookup page to add JS validation in security level 1 mode. --- --- Changed padding for BACK button to use styles rather than HTML BR tags. --- --- Changed the password generator password length to 15 to set a better example. --- --- Some refactoring on user-info.php and login.php to clean up code --- Date: 09/16/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.1: --- --- Added CSRF Protection to page add to your blog. This only works in secure mode. --- --- Added more scripts to the easter egg file (Mutillidae Test Scripts) --- --- Bug fix: The setupandreset.php errors were not printing out. --- --- Stupid bug fix: Removed the "open DB" that was firing before the database was actually created. --- --- Created output on page setupandreset.php to show what happened --- --- Added try/catch and more error handling to setupandreset.php --- Date: 08/31/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.1.0: --- --- Fixed error on page add to your blog. Input user was not escaped or encoded in secure mode. --- --- Major change. The MYSQL connection has been changed from procedure mysql_ functions to using object oriented instances from the class mysqli. mysqli became available in PHP 5.3.0 and is brand new to Mutillidae. There is a high chance of error. Please let me know if there are bugs found. This new class gives us many new abilities including the ability to call stored procedures without using concatenation. This change affects the entire project and changes the capabilities of the project which is why the minor version was updated. All of the database code has been ripped out and replaced from the ground up. Next will be to add stored procedures and views to the database. When SQL injection is done on meta data, there will be many more targets. Users will be able to steal the source code from views and procs during pen tests along with dumping tables. --- --- Added row number to output on add to your blog --- --- Added logging for successful and failed login attempts. --- --- Fixed bug in closing bold tag tokenizer on add to your blog --- --- Updated page arbitrary-file-inclusion.php. Now you can practice making arbitrary system files load. The fun never ends. --- --- Added SQL injection defenses to closedb.inc. This may not make much sense unless you know that closedb.inc logs to the hitlog table. Part of what it logs is user agent and referer which are controls by the user. --- --- Create new page log-visit.php which logs each request to the server. This page could be used to poison the log with XSS or SQL inject the database. --- --- Fix bug on dns-lookup.php that allowed the log to be injected even in secure mode. --- --- Add new page vulnerabilities.php that document the vulnearbilities on each page to help users know what to try --- --- Renamed home.htm to home.html for compliance with convention --- --- Reconfigured index.php to open database as late as possible --- --- Refactored opendb.inc to use standard error handling like rest of site. Page size is much smaller as a result --- --- Added a new XSS vulnerability to page user-info.php. This can be exploited by inputing scripts into the username field. --- --- Added row count output to the show-log.php page --- --- Fixed back button so it doesnt span entire width of the page --- --- Added error output to page register.php. In insecure mode, the user can get a lot of information about the insert. In secure mode, we keep that to ourselves. --- Date: 08/19/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.13: --- --- Added a new page called password-generator that allowed the user to practice HTML injection, cross site scripting, and JavaScript injection. The page is primarily intended to practice the JS injection in as easy a way as possible. --- Date: 07/24/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.12: --- --- Changed the label of the link to "Cross Site Framing" to "Click-Jacking" --- --- Created a new page to frame the Mutillidae site so we can practice Cross-Site Framing. Added a menu item under Other --> Information Leakage --> Cross-Site Framing. In secure mode, Mutillidae does not allow itself to be framed by third party sites. Enjoy. --- --- Created a new menu path for "Missing HTTPOnly Attribute" because it doesn't really fit directly into a XSS exploit. It is a misconfiguration that leads to an exploit. --- Created a new page to talk about the site footer displaying the user agent string. The new page includes hints. --- --- Refactored footer.php to remove database closing code. This code is in index.php now. --- --- Added new vulnerability for remote file inclusion. Access via "A4 - Insecure Direct Object References" --> "Arbitrary File Incusion". Enjoy! --- Date: 07/17/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.11: --- --- Oops! Fixed a bug in the secure code which (ironically) did not stop the command injection as long as the attacker chained the attack with a validly formed IPV4 address. I forgot to put the starts-with and ends-with symbols on the RegEx. --- --- Added IPV6 pattern as a valid pattern on page dns-lookup.php. The page will accept IPV6, IPV4, or Domain Name. --- --- Made some cosmetic improvements to the dns-lookup.php page --- --- Added a whole new batch of fun. Mutillidae now supports (and defends) against Cascading Style Injection. Enjoy. --- Date: 07/09/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.10: --- --- Added new vulnerability HTTP Parameter Pollution on page user-poll.php --- --- Added defense for JavaScript injection in the "Back" buttons. In secure mode, Mutillidae will encode the HTTP Referer header using JavaScript encoding --- Date: 06/21/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.9.1: --- --- Added new menu items under SQLi for SQLi Insert Injection --- --- Added new menu item for documentation --- --- Moved constants into constants.php file --- --- Patched tabbing in home.htm --- --- Added additional instructions on supressing PHP errors with XamppLite. Thanks to Miguel Wherner for the tip. --- --- Added more hints to command injection page --- --- Updated the Easter egg file --- --- Added "Bookmark This Site" button to the resources tab in the menu --- --- Added lots more default users --- --- Added a stored procedure for users to attempt to extract the source code using SQL injection --- --- Added a stored procedure to support logins so we can start to put real security into this thing. --- --- Added new article "How to Access Mutillidae over Virtual Box Host Only Network" --- --- Introduced a new vulnerability: JavaScript Injection --- Date: 06/15/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.8: --- --- Added more comments to the code to explain how defenses work --- --- Added support for the <u></u> tag to the blog. In secure mode Mutillidae will allow this tag but still safely encode output and stop XSS. --- --- Added JavaScript filtering to prevent single quotes from being entered in blog entries. This give practice bypassing JavaScript "security" and helps the user understand JavaScript cannot provide security. --- --- Added lots of JS filtering to login.php. Nearly all characters are filtered. Users are encouraged to understand that JavaScript and filtering are useless for security. --- --- Added autofocus to login.php and add-to-blog.php --- --- Added more "allowed dangerous HTML tags" to the blog. Until now only the bold HTML tag was supported. Also the output was not HTML5 compliant. For example, if the user entered a bold tag, then a bold tag was output however the bold tag is depreciated. Styles must be used. So Mutillidae allows the user to input a bold tag but will correctly encode this as a sytle upon output. The italic tag is now supported as a dangerous input which is safely output without fear of Cross Site Scripting. These defenses only operate in secure mode of course. In insecure mode, the site allows any input and simply outputs whatever is input without any encoding. --- --- Changed menu for OWASP A1 - Injection to differentiate between SQL, HTML, and Command Injection. This should make it more clear which pages exhibit vulnerabilities with the specific injecton sub-types. Also added new link for Blind SQL Injection. --- --- Changed menu for OWASP A2 - Cross Site Scripting to differentiate between XSS coming in via user supplied fields (GET/POST) and values within HTTP Request Headers. --- --- Added tutorials feature. --- --- Added SQL Injection Totorial --- --- Added Cross Site Scripting tutorial --- --- Added Command Injection tutorial --- --- Added new feature. Hints can now be at different levels. Each time the user clicks Hints, the level increases by 1 until rolling over. --- --- Removed the installation instructions from the home page. A new page for instructions is created and linked from the menu. --- Augmented the installation instructions to include running from Samurai, creating a custom ISO, installing to XAMPP, and running in virutal machines. --- --- Reformatted install instructions and main home page to be compliant with HTML 5 --- Date: 05/20/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.7: --- --- Added a new page rene-magritte.php to explore click-jacking. In secure mode, Mutillidae will send the X-FRAME-OPTIONS: DENY header. In modern browsers, this will cause the browser to throw an error rather than allow the page rene-magritte.php to be framed. --- --- Added a resources link to the main menu. Links are to information or tools that can help with testing Mutillidae. --- --- Added new class LogHandler to take over logging. Previously logging statements has to be copied to each spot that logging was needed. With the new class, logging requires only one line of code and the logger automatically logs based on the current security level. If in insecure mode, no attempt to stop XSS or SQLi is made. With the new class, many less lines of code are needed and many more places log. With more places logging, there is a much better chance of finding a log exploit and taking advantage (insecure mode). Logging added to pages: add-to-your-blog, dns-lookup, text-file-viewer, source-viewer.php, register.php, redirectandlog.php, and user-info.php --- --- Added more default users to initial setup to give more targets. --- Date: 05/10/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.6: --- --- Added a new security vulnerability and counteracting secure code. The "business requirements" for the add-new-blog-entry page now require users to be able to enter a bold tag in their blog. In secure mode, Mutillidae allows this functionality while still protecting the users from mallicous injection input. --- --- A new secret page has been added. There are lots of test scripts that the developers used to hack Mutillidae inside. It will be very hard to guess the name of the file but there are plenty of vulns that will allow users to locate and open the file. --- Date: 04/22/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.6: --- --- Added a new security vulnerability and counteracting secure code. Cookies are unprotected in insecure mode, but in secure mode, the cookies will have the HTTPOnly attribute applied to them. In reality this vulnerability was always in Mutillidae since ignoring the issue opens the vulnerability (the ability for scripts to access the cookie values). The change is acknowleging this issue and adding the defense. Once we get an SSL certificate installed, the next logical step will be to add the "Secure" attribute to cookies in secure mode, but to not add this attribute in insecure mode. --- --- Added the X-FRAME-OPTIONS: DENY click-jacking defense in secure mode. In insecure mode, the site does nothing and ignores the issue entirely. This defense only works in newer browsers and javascript framebusters are needed to help older browsers. --- --- Added insecure comments vulnerability and defense. Some developers use HTML or JavaScript comments instead of using the frameworks comments (ASP.NET, Java, PHP, Etc.) --- --- Rearranged instructions on home page to emphasize the PHP.ini configuration changes that are needed to get rid of errors. --- --- Rewrote opendb.inc to have error trapping and custom error handling. If there is an error, there will be some diagnistic information available. --- Date: 04/14/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.5: --- --- browser-info.php - Patched a bug which disabled entire page if the whois server is not reachable. Now only that one line will be disabled. Also replaced Windows style file path slashes with Unix style. Either slash will work in Windows but Linux only accepts the Unix style path else throws an error. --- Date: 04/13/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.4: --- --- user-info.php - Added XSS defenses to the output so that users cannot poison their username, password or signature to cause XSS. This only works in secure code. --- --- register.php - Added XSS defenses to the output so that users cannot poison their username to cause XSS. This only works in secure code. --- --- header.php - Added link to this changelog. Changed style of upper header to allow more space for logged in user text. In very small screens, the text was overlapping. Also, the size of the mascot image was reduced to give the user more screen space. --- --- change-log.php - Added new XSS vulnerability for users to try. Date: 03/30/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.3: --- --- index.php - Added PHP version detection and altered forms caching defenses and server header information defenses to use header_remove() only if the version of PHP is at 5.3 or above. Made version string variable that contains whatever version string is for Mutillidae plus "nice" output. Samurai is going through a PHP version change to 5.3 right now and XAMPP just went through the same change. This code is meant to bridge users caught between versions. --- --- header.php - Made version output simpler. header.php only outputs the header string. --- --- footer.php - Added PHP version to footer output in insecure mode. In secure mode, server version is not shown. --- Date: 03/25/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.2 Beta:

Whole site --- --- Made local relative links without leading dot --- --- Installed on Samurai 0.95 for testing. Found that Samurai doesnt like the leading dot in local file paths. Those were removed from the index.php page. --- --- Made version a variable in index.php to make updating version string easier --- --- Added new forms caching information leakage vulnerability --- --- Added new vulnerability for X-Powered-By and discussed removing the Server HTTP header in comments --- Date: 03/23/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0.1 Beta:

Whole site --- --- Replaced root relative links with local relative links to allow more freedom in root folder name --- --- Added email address for Jeremy --- --- Added change log to site --- --- Added Toggle Hints into core menu but link disappears in secure mode --- --- Added new failure to restrict URL access vuln --- Date: 03/23/2011 Author: Jeremy Druin --- --- Change Log for Mutillidae 2.0 Beta:

Whole site --- --- Site implements the OWASP ESAPI API for PHP including showing how to instantiate classes and call methods for output encoding. --- --- Site now allows user to switch between secure and insecure mode to allow the user to employ an attack then try the same attack against more secure code --- --- All code for both modes of operation are available for inspection and include large amounts of explanation comments for both the insecure and secure sections. Code is commented in such a way to help developers understand the security concepts as opposed to only seeing the PHP implementation --- --- Added custom error handling to site which reacts differently depending on security mode --- --- Site has larger hint sections with more hints included --- --- Added menuing system for easier navigation --- --- Added toolbar at top of each page for critical functions (hints, security mode, home page, etc.) --- --- Converted styles to CSS --- --- Collected images into single folder --- --- Added links to helpful tools and sites with more information: OWASP, Toad for PHP, Eclipse PDT, Samurai WTF, and Backtrack 4 R2 --- --- Released new web interface design and navigation for each page --- --- Installed TRY/CATCH handling in all pages --- --- add-to-your-blog.php --- --- additional reflected XSS vuln added --- --- SQLi vector added --- --- additional stored XSS vuln added --- --- demonstrates output encoding --- --- demonstrates SQLi prevention --- --- non-input box attack vector added --- --- browser-info.php --- --- demonstrates safer JavaScript --- --- created ClientInformationHandler class to gather client information --- --- demonstrates output encoding --- --- added JavaScript attack vector using innerHTML --- --- credits.php --- --- added Insecure Direct Object Reference defenses --- --- dns-lookup.php --- --- In secure mode, added strong server-side validation for page. Page allows both ip based and DNS name based attacks and includes defenses for both. --- --- footer.php --- --- added new attack vector to allow refelected XSS via HTTP headers --- --- added defenses for input coming from HTTP headers --- --- added comments encouraging developers to treat ALL input as evil and not just the input boxes they created --- --- header.php --- --- Replaced menu with mouseover navagation and updated menu with new attacks --- --- Added new stored cross site scripting attacks and defenses --- --- Added code to allow site to ignore user created cookies in secure mode and react to user created cookies in insecure mode --- --- home.html --- --- Added instructions --- --- Added warning about PHP.ini files that come with new XAMPP/PHP versions 5.3 and 6.0 (future) --- --- homenotes.php --- --- Created newly formatted hints section --- --- index.php --- --- Created new processing framework --- --- Added the ability to use session storage --- --- Installed initialization code --- --- login.php --- --- added HTML maxlength to allow practice of circumventing trivial and useless HTML based defenses --- --- Added detection of whether user is currently logged in with new funcitonality. Site will auto-detect when users are logged in and change links appropriately --- --- Added new reflected XSS vector --- --- process-commands.php --- --- new file which collects all "do" commands together --- --- installed several new attack vectors and defenses based on the "do" commands --- --- redirectandlog.php --- --- Created new HTTP parameter pollution attack --- --- Installed advanced mapping defences with validation --- --- Installed strong validation defenses --- --- register.php --- --- installed SQLi and XSS defenses --- --- reformatted page with new design and error feedback --- --- show-log.php --- --- installed DOS defenses --- --- added DOS attack vector --- --- installed tabular output --- --- added defenses for injection attacks and XSS --- --- added attack vector against log --- --- source-viewer.php/text-viewer.php --- --- Added/augmented attack vectors --- --- Added new attack vectors to allow loading of local server files --- --- Filename injection (Insecure Direct Object Reference) --- --- SQL Injection, (Fix: Use Schematized Stored Procedures) --- --- Cross Site Scripting, (Fix: Encode all output) --- --- Cross Site Request Forgery, (Fix: Tokenize transactions) --- --- Insecure Direct Object Reference, (Fix: Tokenize Object References) --- --- Denial of Service, (Fix: Truncate Log Queries) --- --- Loading of Local Files, (Fix: Tokenize Object Reference - Filename references in this case) --- --- Improper Error Handling, (Fix: Employ custom error handler) --- --- SQL Exception, (Fix: Employ custom error handler) --- --- HTTP Parameter Pollution (Fix: Scope request variables) --- --- Added mapping defenses --- --- user-info.php --- --- added SQL and XSS defenses --- --- added tabular output --- --- view-someones-blog.php --- --- installed SQLi and XSS defenses --- --- installed trivial and useless "tokens" to allow user to bypass HTML code which intends to confuse instead of defend. ---