<?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>SecureThoughts.com &#187; Tools</title>
	<atom:link href="http://securethoughts.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://securethoughts.com</link>
	<description>Inferno&#039;s Blog on Application Security</description>
	<lastBuildDate>Sun, 22 Nov 2009 20:09:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HP&#8217;s SWFScan does not find simple XSS in Flash Apps</title>
		<link>http://securethoughts.com/2009/04/hps-swfscan-does-not-find-simple-xss-in-flash-apps/</link>
		<comments>http://securethoughts.com/2009/04/hps-swfscan-does-not-find-simple-xss-in-flash-apps/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 06:48:28 +0000</pubDate>
		<dc:creator>Inferno</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[WebAppSec]]></category>
		<category><![CDATA[XSS]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[SWFIntruder]]></category>
		<category><![CDATA[SWFScan]]></category>

		<guid isPermaLink="false">http://securethoughts.com/?p=205</guid>
		<description><![CDATA[This will a short post on my review of the new HP&#8217;s solution for auditing Flash apps &#8211; SWFScan. It has a variety of features, some of which are highlighted on the HP&#8217;s Blog here. 
Before that, I have used Stefano&#8217;s Tool, SWFIntruder. It is a nice tool to audit Actionscript 2 apps, but it [...]]]></description>
			<content:encoded><![CDATA[<p>This will a short post on my review of the new HP&#8217;s solution for auditing Flash apps &#8211; <a href="http://www.hp.com/go/swfscan">SWFScan</a>. It has a variety of features, some of which are highlighted on the HP&#8217;s Blog <a href="http://www.communities.hp.com/securitysoftware/blogs/spilabs/archive/2009/03/20/exposing-flash-application-vulnerabilities-with-swfscan.aspx">here</a>. </p>
<p>Before that, I have used <a href="http://www.wisec.it/">Stefano&#8217;s Tool</a>, <a href="https://www.owasp.org/index.php/Category:SWFIntruder">SWFIntruder</a>. It is a nice tool to audit Actionscript 2 apps, but it only reports XSS issues and does not support Actionscript 3. This time, I was out of luck, since I needed to audit a Actionscript 3 App. Also, I could not decompile and study its source code since the free tool <a href="http://www.nowrap.de/flare.html">Flare</a> does not work on Actionscript 3.</p>
<p>So, I decided to give HP&#8217;s tool a try. I had a lot of expectations from this tool, since HP already has a popular tool WebInspect which is known in the industry for its website and web services auditing capabilities. I ran this tool on my app and it decompiled beautifully the complete source code of the flash app. It has a  useful search feature which can aid in manually studying source code for vulnerabilities. However, I wanted to see some of its automatic auditing capabilities. So, I ran the scan and found it to find some issues like crypto issues(sha0/sha1), stacktraces, etc. Apart from that, it didn&#8217;t report any serious issues like XSS, etc. It also does report a large number of false positives in checks that start with &#8220;Possible/Potentially &#8211; - &#8211; -&#8221;. But i am willing to ignore those as long as the tool can effectively find some important vulnerabilities.</p>
<p>I didn&#8217;t know my app had any XSS issues or not, so I decided to use the free test.swf which is provided as part of SWFIntruder. </p>
<blockquote><p><strong>To my surprise, HP&#8217;s SWFScan tool did not report any of the 5 XSS issues reported by SWFIntruder.</strong></p></blockquote>
<p>If you see the screenshots below, swfscan shows you the vulnerabilities it found and the decompiled source code. Using manual inspection, a penetration tester can easily locate XSS issues in parameters such as _root.obj and _root.sd which are directly written into html without any escaping/filtering. I hope this free SWFScan tool improves in the near future and does not miss auditing such simple vulnerabilities.</p>
<p>
<img src="http://securethoughts.com/security/swfscan/swfscan1.jpg" alt="SWFScan" /><br />
<br />
<img src="http://securethoughts.com/security/swfscan/swfintruder1.jpg" alt="SWFIntruder" /></p>
]]></content:encoded>
			<wfw:commentRss>http://securethoughts.com/2009/04/hps-swfscan-does-not-find-simple-xss-in-flash-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Breaking the STEALTH myth of Desktop Locking Softwares</title>
		<link>http://securethoughts.com/2009/02/breaking-the-stealth-myth-of-desktop-locking-softwares/</link>
		<comments>http://securethoughts.com/2009/02/breaking-the-stealth-myth-of-desktop-locking-softwares/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 07:39:46 +0000</pubDate>
		<dc:creator>Inferno</dc:creator>
				<category><![CDATA[Auth(entication/orization)]]></category>
		<category><![CDATA[Exploits]]></category>
		<category><![CDATA[Information Gathering]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[Direct Disk Access]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Folder Guard]]></category>
		<category><![CDATA[Locking Software]]></category>
		<category><![CDATA[WinHex]]></category>

		<guid isPermaLink="false">http://securethoughts.com/?p=95</guid>
		<description><![CDATA[In this post, I will be talking about the security vulnerabilities in various desktop locking softwares such as Folder Guard, Lock Folder XP, etc. In fact, I will question their claims, one of which is given on their website as:
&#8220;You can even completely hide your private folders from virtually all applications, and such folders would [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, I will be talking about the security vulnerabilities in various desktop locking softwares such as Folder Guard, Lock Folder XP, etc. In fact, I will question their claims, one of which is given on their website as:</p>
<blockquote><p><em>&#8220;You can even completely hide your private folders from virtually all applications, and such folders would remain invisible until you enter a valid password.&#8221;</em></p></blockquote>
<p>Is this really true?? No, not at all. Let&#8217;s see how. Actually, my friend used one of these softwares and challenged me if I can expose his data without the password used to lock the data. So, I decided to give it a try.</p>
<p>I first downloaded and installed a trial copy of Folder Guard software on my computer. Then I created a folder named &#8220;mysecretfiles&#8221; inside directory &#8220;test&#8221; on G: drive. Then, I opened Folder Guard, created a login password and locked this folder. The configuration setting I used for this folder was Access = &#8220;No Access&#8221; and Visibility = &#8220;Hidden&#8221;. You should see a similar screenshot after you lock a folder.</p>
<p><img src="http://www.securethoughts.com/security/locksoftware/f1.jpg" alt="" /></p>
<p>I closed Folder Guard and clicked on &#8220;Yes&#8221; in the &#8220;Start Protecting the System&#8221; dialog box. This caused Folder Guard to enable protection on my folder. As a result, I didn&#8217;t see my locked folder in Windows Explorer.</p>
<p><img src="http://www.securethoughts.com/security/locksoftware/f2.jpg" alt="" /></p>
<p>I tried to understand how these softwares work. Almost all of them placed hooks into the windows device drivers and block access calls to locked files and folders. This model is flawed because an attacker can use the back channel, often referred to as <a href="http://support.microsoft.com/kb/100027">Direct Disk Access Mode</a>.</p>
<p>So, I decided to fire my favorite Disk Editor <a href="http://www.x-ways.net/winhex/">WinHex</a> and I could easily see and browse my locked folder with ease. I could look inside my locked file &#8220;mysensitivedata.txt&#8221; and check its contents with my username, password and SSN <img src='http://securethoughts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The other best part of this disk editor is that I don&#8217;t need to install it, I could just easily run it from a USB pen stick.</p>
<p><img src="http://www.securethoughts.com/security/locksoftware/f3.jpg" alt="" /></p>
<p>So, the best protection to protect your data is still to use industry standard encryption with algorithms such as AES, 3DES, etc. Even if the data falls in wrong hands, the confidentiality of the data won&#8217;t be compromised. Use softwares like TrueCrypt to protect your sensitive data.</p>
]]></content:encoded>
			<wfw:commentRss>http://securethoughts.com/2009/02/breaking-the-stealth-myth-of-desktop-locking-softwares/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>All-In-One HTML + Javascript + CSS Formatter</title>
		<link>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/</link>
		<comments>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 07:27:04 +0000</pubDate>
		<dc:creator>Inferno</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Beautifier]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Formatter]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://securethoughts.com/?p=65</guid>
		<description><![CDATA[I do a lot of pen testing on web applications. From time to time, I have to analyze and understand how the web page code works. However, my task becomes complicated as web applications typically use some sort of source code compression. This makes it very hard to understand the code and hampers the readability [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of pen testing on web applications. From time to time, I have to analyze and understand how the web page code works. However, my task becomes complicated as web applications typically use some sort of source code compression. This makes it very hard to understand the code and hampers the readability to a large extent.</p>
<p>A web page is composed of three major content types, namely HTML content, Javascript Code and CSS styling code. I felt the need of a tool that could beautify or format the entire web page source code. I use <a href="http://portswigger.net/suite/">Burp Suite</a>, my favorite web proxy tool. However, it does not have source code formatting feature, it just colors the web page by choosing different colors for html tag names, html attribute values, javascript, css, etc.</p>
<p>I looked on the internet for free alternatives, but I could not find free tools that could format the entire web page. Most of them could only format either one of HTML or Javascript or CSS. So, I decided to write a perl script myself. I used the libraries <a href="http://search.cpan.org/~petdance/HTML-Tidy-1.08/lib/HTML/Tidy.pm">HTML::Tidy</a> by <a href="http://tidy.sourceforge.net/">Dave Raggett</a> and <a href="http://search.cpan.org/dist/JavaScript-Beautifier/lib/JavaScript/Beautifier.pm">Javascript::Beautifier</a> by <a href="http://elfz.laacz.lv">Einars Lielmanis</a>. And I have written my own CSS formatting code.</p>
<p>Example of HTML Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f0.jpg" alt="" /></p>
<p>Example of CSS Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f1.jpg" alt="" /></p>
<p>Example of Javascript Formatting</p>
<p><img src="http://www.securethoughts.com/security/formatter/f2.jpg" alt="" /><br />
In addition, I have done one more improvement by formatting the javascript code in html event handlers. I picked the comprehensive event handlers list from <a href="http://www.amazon.com/XSS-Attacks-Scripting-Exploits-Defense/dp/1597491543/ref=pd_bbs_sr_1?ie=UTF8&amp;s=books&amp;qid=1233211477&amp;sr=8-1">XSS Attacks Book</a> by <a href="http://ha.ckers.org">RSnake</a>, <a href="http://jeremiahgrossman.blogspot.com">Jeremiah</a>, <a href="http://www.gnucitizen.org">Pdp</a>, Anton Rager and Seth Fogie. Another excellent book to have on your shelf.</p>
<p>Example of Event Handler Code Formatting (see the onload and onclick event handlers)</p>
<p><img src="http://www.securethoughts.com/security/formatter/f3.jpg" alt="" /><br />
And finally the &#8230;</p>
<p><strong>Inferno&#8217;s All-In-One HTML + Javascript + CSS Formatter</strong><br />
Paste your Source Code below</p>
<form action="http://securethoughts.com/security/formatter/formatter.cgi" enctype="application/x-www-form-urlencoded" method="post"><textarea style="width: 100%;" cols="20" rows="15" name="htmlcontent"></textarea></p>
<input name="Submit" type="submit" value="Format the Source" /> </form>
<p>I would advise trying any of the search engines&#8217; source code like google, yahoo, etc. Their code is highly compressed. If you have any problem using the text box above, try using this <a href="http://securethoughts.com/security/formatter/formatter.html">Link</a>.</p>
<p>Plans for future additions include<br />
* Add custom event handlers and variables (e.g. expr variable in Samy Worm Code)<br />
* Javascript Deobfuscation<br />
* More configuration Options<br />
* Burp Proxy Plugin</p>
<p>Please provide your valuable suggestions to improve this tool. This tool is completely free for your use.</p>
]]></content:encoded>
			<wfw:commentRss>http://securethoughts.com/2009/01/all-in-one-html-javascript-css-formatter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
