Mutillidae - HTML Injection (Poll Question)

Mutillidae – HTML Injection (Poll Question)

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

HTML Injection (Poll Question)

Security Level: 0 (Hosed)

  • Setting the security level to 0 or Hosed.

Security level 0

  • The application has Poll functionality where user can vote for their favourite security tool. Upon submitting the request, the choice will be displayed in the front page along with the number of votes below.

Favorite Security Tool

Burpsuite intercept

Poll Results

  • I checked for HTML injection with the below payload and it worked as application has parsed my specified HTML tags.

<h1> Hello </h1>

payload

HTML Injection confirmed

  • I used the below payload to store the value in the poll DB and generate a pop-up alert.

<img src=x onerror=alert("Hacked")>;

payload

Hacked pop up alert

Also Read: Mutillidae – HTML Injection (HTML5 Web Storage)

Conclusion:

Conclusion

So, we finally completed all the security levels for the HTML Injection (Poll Question) 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