Mutillidae - Application Log Injection (Document Viewer)

Mutillidae – Application Log Injection (Document Viewer)

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

Application Log Injection (Document Viewer)

Security Level: 0 (Hosed)

  • Setting the security level to 0 or Hosed.

Security level 0

  • The application has a functionality to view documents, we have to choose from the specified documents on the front end and the results will be shown in a box below.

Document Viewer

  • I intercepted the request via Burpsuite and found out that the application is issuing a GET request to document-viewever.php page.

Burpsuite intercept

  • Changing the resource to the file we want to view that is available on the server gave us our result.

http://localhost/mutillidae/index.php?page=document-viewer.php&PathToDocument=passwords/accounts.txt&document-viewer-php-submit-button=View+Document

payload

passwords/accounts.txt

Also Read: Mutillidae – Application Log Injection (Captured Data)

Conclusion:

Conclusion

So, we finally completed all the security levels for the Mutillidae Application Log Injection (Document Viewer) 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 Application Log 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