In this walk through, we will be going through the HTML Injection (Browser Info) vulnerability section from Mutillidae Labs. We will be exploring and exploiting HTML Injection in Browser Info 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 page displays detailed browser and connection information to application.
- I intercepted the request via Burpsuite and changed the Referred header with a HTML tag. Forwarding the request shows us the change in the display page where the application has parsed our HTML tags.
- I intercepted the request and changed the referred header with the below payload which then generate a pop-up alert.
<img src=x onerror=alert("Hacked")>;
Also Read: Mutillidae – Arbitrary File Inclusion
Conclusion:
So, we finally completed all the security levels for the HTML Injection (Browser Info) 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 HTML Injection attacks by performing input sanitization on endpoints, whitelist the allowed characters in the input and using a WAF. Along with that, we can prevent data from any untrusted source to be dynamically written to the HTML document. On that note, i will take your leave and will meet you in next one with another Mutillidae vulnerability writeup, till then “Keep Hacking”.