Mutillidae - SQLi via JSON (Pentest Tool lookup AJAX)

Mutillidae – SQLi via JSON (Pentest Tool lookup AJAX)

In this walk through, we will be going through the SQLi via JSON (Pentest Tool lookup AJAX) vulnerability section from Mutillidae Labs. We will be exploring and exploiting SQL Injection via JSON in Pentest Tool Lookup utility and learn how application are affected because of it. So, let’s get started with the Hacking without any delay.

SQLi via JSON (Pentest Tool lookup AJAX)

Security Level: 0 (Hosed)

  • Setting the security level to 0 or Hosed.

Security level 0

  • The application has a drop down functionality to select a pentest tool and provide information regarding that.

Select Pen Test Tool

  • It issues a POST request to looup-pen-test-tool.php which then generates a response in JSON format for our application.

Burpsuite Intercept

Burpsuite Response

  • I dumped the database names using sqlmap.

sqlmap -u http://localhost/mutillidae/index.php?page=pen-test-tool-lookup-ajax.php --cookie="showhints=1; PHPSESSID=3h43mts2lb9kodgefnbn2b25a0" --data="ToolID=1" --dbs

sqlmap result

Also Read: Mutillidae – SQLi Insert Injection (Register)



So, we finally completed all the security levels for the Mutillidae SQLi via JSON (Pentest Tool lookup AJAX) 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