In this walk through, we will be going through the Sqlmap Practice (View Blogs) vulnerability section from Mutillidae Labs. We will be exploring and exploiting SQL Injection with Sqlmap in View Blogs utility and learn how application are affected because of it. So, let’s get started with the Hacking without any delay.
Table of Contents
Security Level: 0 (Hosed)
- Setting the security level to 0 or Hosed.
- The application has a drop down functionality to view the blog entries by selecting the user.
- I intercepted the request via Burpsuite and it uses POST request to view-someones-blog.php file with author parameter.
- I used the below sqlmap command to dump the databases names.
sqlmap -u http://localhost/mutillidae/index.php?page=view-someones-blog.php --cookie="showhints=1; PHPSESSID=3h43mts2lb9kodgefnbn2b25a0" --data="author=admin&view-someones-blog-php-submit-button=View+Blog+Entries" --dbs
Also Read: Mutillidae – SQLi via JSON (Pentest Tool lookup AJAX)
Conclusion:
So, we finally completed all the security levels for the Mutillidae Sqlmap Practice (View Blogs) 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”.