Mutillidae - HTML Injection (Back Button)

Mutillidae – HTML Injection (Back Button)

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

HTML Injection (Back Button)

Security Level: 0 (Hosed)

  • Setting the security level to 0 or Hosed.

Security level 0

  • In this challenge we have to exploit the back button functionality. We will manipulate the HTTP referrer header to execute our desired queries.

Discussion of Back Button

  • I intercepted the request via Burpsuite and change the referrer header to google.com. Forwarding the request and hitting the back button redirects us to Google.

Burpsuite intercept

Back button

Google search

  • I intercepted the request and used the below payload to produce an XSS alert.

';alert('Hacked');'

payload

Hacked pop up alert

Also Read: Mutillidae – Frame Source Injection (Styling with Mutillidae)

Conclusion:

Conclusion

So, we finally completed all the security levels for the HTML Injection (Back Button) 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”.

Leave a Comment

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

Scroll to Top