<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title />
	
	<link>http://travisaltman.com</link>
	<description />
	<pubDate>Wed, 18 Mar 2009 03:55:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/travisaltman" type="application/rss+xml" /><item>
		<title>Reverse engineering Linux executables</title>
		<link>http://travisaltman.com/reverse-engineering-linux-executables/</link>
		<comments>http://travisaltman.com/reverse-engineering-linux-executables/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 03:55:02 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[reverse engineering]]></category>

		<guid isPermaLink="false">http://travisaltman.com/reverse-engineering-linux-executables/</guid>
		<description><![CDATA[There aren&#8217;t a whole lot of options when it comes to reverse engineering Linux executables / binaries.  Thanks to Chris Rohlf this process is now much easier and flexible.  Chris has created a framework called Leaf that aids in the reversing process.  His works strictly focuses on Linux ELF format which is equivalent to Windows [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><a href="http://travisaltman.com/wp-content/leaf-logo-1.png" title="Leaf ELF framework"><img src="http://travisaltman.com/wp-content/leaf-logo-1.png" alt="Leaf ELF framework" align="left" /></a>There aren&#8217;t a whole lot of options when it comes to reverse engineering Linux executables / binaries.  Thanks to <a href="http://em386.blogspot.com/" title="sharpest cat around when it comes to RE">Chris Rohlf</a> this process is now much easier and flexible.  Chris has created a <a href="http://code.google.com/p/leaf-re/" title="check-a-check it out">framework called Leaf</a> that aids in the reversing process.  His works strictly focuses on <a href="http://en.wikipedia.org/wiki/Executable_and_Linkable_Format">Linux ELF format</a> which is equivalent to <a href="http://en.wikipedia.org/wiki/Portable_Executable">Windows PE format</a>.  Chris gave a talk at <a href="http://www.carolinacon.org/">Carolina Con 2009</a> and his talk about the framework was excellent.  It was nice to see that one of his main focal points was creating easy to read output.  We all know that if your output is crap then you won&#8217;t be able to make heads or tails of what the tool is doing.</p>
<p>Now the Leaf framework is still in beta but this project is open source and Chris welcomes more input into the project.  The framework only works on the x86 architecture but supports both 32 and 64 bit binaries.  The title of this post refers to reverse engineering Linux but the Leaf framework works on both BSD and Solaris as well.  Hopefully this framework will get good traction as Chris has built a nice foundation.</p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/reverse-engineering-linux-executables/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CarolinaCon coming up soon</title>
		<link>http://travisaltman.com/carolinacon-coming-up-soon/</link>
		<comments>http://travisaltman.com/carolinacon-coming-up-soon/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 03:09:01 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[learning]]></category>

		<guid isPermaLink="false">http://travisaltman.com/carolinacon-coming-up-soon/</guid>
		<description><![CDATA[That time of year is approaching for the annual goodness that is CarolinaCon. This year the conference will be held March 13 - 14th. CarolinaCon is essentially a weekend long party with some great talks about technology thrown on top. The hotel bar is just steps away from the rooms where the talks are held [...]]]></description>
			<content:encoded><![CDATA[<p>That time of year is approaching for the annual goodness that is <a href="http://www.carolinacon.org/index.php/" title="CarolinaCon">CarolinaCon</a>. This year the conference will be held March 13 - 14th. CarolinaCon is essentially a weekend long party with some great talks about technology thrown on top. The hotel bar is just steps away from the rooms where the talks are held so that always makes for a good time. I also encourage others to <a href="http://www.carolinacon.org/index.php/call_for_speakers/" title="CarolinaCon's call for speakers">submit a talk</a> as they are always looking for good speakers but don&#8217;t take too long to submit your talk because submissions are due by January 15th. I&#8217;ll be heading down to Raleigh to check this conference out once again, hope to see you there.</p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/carolinacon-coming-up-soon/feed/</wfw:commentRss>
		</item>
		<item>
		<title>fingerprinting SSL tutorial</title>
		<link>http://travisaltman.com/fingerprinting-ssl-tutorial/</link>
		<comments>http://travisaltman.com/fingerprinting-ssl-tutorial/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 23:25:41 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[web security]]></category>

		<guid isPermaLink="false">http://travisaltman.com/fingerprinting-ssl-tutorial/</guid>
		<description><![CDATA[My tool of choice when it comes to fingerprinting SSL is OpenSSL. There are other tools out there such as thcsslcheck and ssl digger but in my experience these tools tie your hands when you want granular detail. It&#8217;s best to get it straight from the horse&#8217;s mouth &#62;&#62; OpenSSL. This tutorial focuses on fingerprinting [...]]]></description>
			<content:encoded><![CDATA[<p>My tool of choice when it comes to fingerprinting SSL is OpenSSL. There are other tools out there such as <a href="http://freeworld.thc.org/root/tools/">thcsslcheck</a> and <a href="http://www.foundstone.com/us/resources/proddesc/ssldigger.htm">ssl digger</a> but in my experience these tools tie your hands when you want granular detail. It&#8217;s best to get it straight from the horse&#8217;s mouth &gt;&gt; <a href="http://www.openssl.org/">OpenSSL</a>. This tutorial focuses on fingerprinting the ciphers and protocols supported by a SSL server, you can obtain tons of information from OpenSSL but this tutorial will not dig into all those aspects. Also this tutorial won&#8217;t go into the installation of OpenSSL on your OS just the usage thereof. The first step/command is to determine what kind of ciphers a SSL server may use. This is done by issuing the &#8220;<code>openssl ciphers -v</code>&#8221; command, the output of this command can be seen below.</p>
<p><a href="http://travisaltman.com/wp-content/opensslcipherscommand.png" title="OpenSSL ciphers command"><img src="http://travisaltman.com/wp-content/opensslcipherscommand.png" alt="OpenSSL ciphers command" /></a></p>
<p>I use this command on a consistent basis because it lists ciphers from strongest to weakest. So when looking at output from the OpenSSL command you can refer to this list to see how strong or weak the cipher support may be. The &#8220;<code>openssl ciphers -v</code>&#8221; command has nothing to do with what cipher the web server you are trying to fingerprint supports, the &#8220;<code>openssl ciphers -v</code>&#8221; simply lists the ciphers that OpenSSL can check. I repeat the <code>"openssl ciphers -v"</code> command has nothing to do with the web server you are fingerprinting. You can also check out <code>"man ciphers"</code> for additional options when it comes to listing ssl ciphers.</p>
<p>The command you&#8217;ll use the most is &#8220;<code>openssl s_client</code>&#8220;, but always with options. The &#8220;<code>s_client</code>&#8221; argument emulates a SSL client that can connect to a remote device running a SSL service. Another helpful option is &#8220;<code>-connect</code>&#8220;. You&#8217;ll need to supply a name/IP and a port (default port is 4433). Enough talking about the commands lets take a look at some examples.</p>
<p><a href="http://travisaltman.com/wp-content/openssl-s_client-connect-template.png" title="openssl s_client connect template"><img src="http://travisaltman.com/wp-content/openssl-s_client-connect-template.png" alt="openssl s_client connect template" /></a></p>
<p>The command above is the basic template you&#8217;ll use to fingerprint a web server that supports SSL. Instead of IP address you could also use the domain name (e.g. travisaltman.com). See the example below.</p>
<p><a href="http://travisaltman.com/wp-content/opensslerror.png" title="openssl s_client -connect error"><img src="http://travisaltman.com/wp-content/opensslerror.png" alt="openssl s_client -connect error" /></a></p>
<p>You&#8217;ll notice that an error message is generated in the example above, that&#8217;s because no SSL service is listening on port 80 at travisaltman.com. This is a typical error message you will see if openssl fails to connect with a SSL service. Now lets see what a successful connection would look like.</p>
<p><a href="http://travisaltman.com/wp-content/opensslsuccessfulconnection.png" title="openssl successful connection"><img src="http://travisaltman.com/wp-content/opensslsuccessfulconnection.png" alt="openssl successful connection" /></a></p>
<p>The connection may seem to hang but you can kill it with a &#8220;Q&#8221; or &#8220;Cntrl C&#8221;, the connection will also eventually timeout. You&#8217;ll first notice how much information you get back from the server via the openssl command, initially it can be overwhelming.  When it comes to fingerprinting I tend to focus on the &#8220;SSL-Session&#8221; section because it tells you what protocol and cipher is being used for the communication. In the &#8220;SSL-section&#8221; above you see that <a href="http://travisaltman.com">travisaltman.com</a> supports the TLSv1 protocol and the cipher is DHE-RSA-AES256-SHA. This is great that it gives us this information but when it comes to fingerprinting we&#8217;ll want to know what other protocols and ciphers the web server supports. Let&#8217;s say we wanted to know if a web server supports SSLv2 instead of SSLv3 or TLSv1. The command below tells openssl to only connect using SSLv2, this is done with the &#8220;-ssl2&#8243; option.</p>
<p><a href="http://travisaltman.com/wp-content/opensslspecifyssl2.png" title="openssl command with ssl2 option"><img src="http://travisaltman.com/wp-content/opensslspecifyssl2.png" alt="openssl command with ssl2 option" /></a></p>
<p>A truncated version of successful output from this command can be seen below.</p>
<p><a href="http://travisaltman.com/wp-content/outputopensslspecifyingssl2.png" title="successful output from ssl2 option in openssl"><img src="http://travisaltman.com/wp-content/outputopensslspecifyingssl2.png" alt="successful output from ssl2 option in openssl" /></a></p>
<p>So you see that my site supports both SSLv2 and SSLv3, in this case the default cipher for communicating over SSLv2 is the DES-CBC3-MD5 cipher.  You&#8217;ll notice from the <code>"openssl ciphers -v"</code> command that this is the strongest SSLv2 cipher with a key size of 168. You may then be wondering if this SSL server would support weaker SSLv2 keys and also weaker SSLv3 keys. In order to get this granular you would have to specify within openssl which ciphers to check. This is the reason why I love fingerprinting with openssl as oppose to those tools I mentioned at the beginning of this article. So let&#8217;s say you wanted to know if a SSL server supported the weakest SSLv2 cipher, which according the output of <code>"openssl ciphers -v"</code> is EXP-RC4-MD5, you can issue the command below.</p>
<p><strong>openssl s_client -ssl2 -cipher EXP-RC4-MD5 -connect travisaltman.com:443</strong></p>
<p>A truncated version of successful output from this command can be seen below.</p>
<p><a href="http://travisaltman.com/wp-content/weakestssl2output.png" title="fingerprinting the weakest SSL2 cipher"><img src="http://travisaltman.com/wp-content/weakestssl2output.png" alt="fingerprinting the weakest SSL2 cipher" /></a></p>
<p>So this proves that my SSL server supports the weakest SSL cipher (40 bit key) possible. Looking through the <code>"openssl ciphers -v"</code> output you&#8217;ll notice another SSLv2 cipher that supports 40 bit (EXP-RC2-CBC-MD5). If you wanted to figure out if the SSL server supports either one of these SSLv2 40 bit ciphers you could issue the command below.</p>
<p><strong>openssl s_client -ssl2 -cipher EXP-RC4-MD5:EXP-RC2-CBC-MD5 -connect travisaltman.com:443</strong></p>
<p>The -cipher option behaves like an OR, meaning if any cipher in that colon separated list is found supported by the SSL server the command will execute successfully. Taking a look at an example may clear things up a bit. Let&#8217;s fingerprint our buddies over at <a href="http://thepiratebay.org/" title="arrrrr maties">thepiratebay.org</a> and see what ciphers they support.</p>
<p><strong>openssl s_client -cipher AES256-SHA -connect thepiratebay.org:443</strong></p>
<p>I won&#8217;t bore you with the output, thepiratebay.org does support this strong cipher, now let&#8217;s try the weakest cipher.</p>
<p><strong>openssl s_client -cipher EXP-RC4-MD5 -connect thepiratebay.org:443</strong></p>
<p>No dice, they do not support this weak encryption. Now if you combined these ciphers into one option (<code>-cipher AES256-SHA:EXP-RC4-MD5</code>) you would get successful output. So the point is to be careful when going through the fingerprinting process as you may think a SSL server supports a weak cipher when in fact they don&#8217;t. So after you have gone through this process and determined what ciphers and protocols the SSL sever supports what should you take away? This is a very good question and one that lots of people have opinions about. The real answer is it depends on what kind of risk you are willing to accept and how easily accessible you want your application to be. In most cases I would recommend only supporting a SSLv3/TLSv1 256 bit cipher because it&#8217;s so easy to implement. Only supporting 256 bit may mean limited access, especially to legacy applications but this is becoming less and less common. Most modern browsers and applications can now easily handle the higher key ciphers. I would also mention <a href="http://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=sslv2" title="cve is da bomb">numerous vulnerabilites found within SSLv2</a> including the <a href="http://www.openssl.org/news/secadv_20051011.txt">rollback vulnerability</a> from three years ago. So applications that transmit sensitive information may not want to support SSLv2 at all. Keep in mind that most browsers will attempt to communicate with the highest possible cipher. So even if your SSL server supports SSLv2 for backwards compatibility odds are most users will communicate with the strongest SSLv3/TLSv1 cipher your server supports. You don&#8217;t have to solely rely on openssl, you could also test in Firefox if your SSL server allows communications on weaker ciphers. Simply type about:config in the address bar of Firefox, then in the filter type &#8220;security.ssl&#8221;. From there you can enable and disable various ciphers and see if your SSL sever allows the communication. A screen shot of this can be seen below.</p>
<p><a href="http://travisaltman.com/wp-content/aboutconfigfirefoxsslsettings.png" title="about:config SSL settings within Firefox"><img src="http://travisaltman.com/wp-content/aboutconfigfirefoxsslsettings.png" alt="about:config SSL settings within Firefox" /></a></p>
<p>That pretty much wraps up this tutorial on fingerprinting SSL. In my spare time I wrote a shell script that automated this process for me given a list of IP&#8217;s that were running a SSL sever. This shell script is not ready for prime time but I hope to release a &#8220;tools&#8221; section soon and place some of my other scripts in there as well.  I&#8217;m no guru on this subject it&#8217;s just simply my experience. As always your feedback is welcome.</p>
<p>travis@hacktop:~$ more references</p>
<p><a href="http://h71000.www7.hp.com/doc/83final/BA554_90007/rn01.html" title="best openssl command line reference">http://h71000.www7.hp.com/doc/83final/BA554_90007/rn01.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/fingerprinting-ssl-tutorial/feed/</wfw:commentRss>
		</item>
		<item>
		<title>XSS-Me tool &amp; html frames</title>
		<link>http://travisaltman.com/xss-me-tool-html-frames/</link>
		<comments>http://travisaltman.com/xss-me-tool-html-frames/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 05:48:20 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[SQL injection]]></category>

		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://travisaltman.com/xss-me-tool-html-frames/</guid>
		<description><![CDATA[Security Compass has created a series of Firefox add-ons that aid in performing web application assessment. These tools are a great convenient way of finding vulnerabilities within web applications. I do want to point out that even though these tools are useful there is no guarantee all vulnerabilities will be found.
XSS-Me is one of the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.securitycompass.com/">Security Compass</a> has created a <a href="https://addons.mozilla.org/en-US/firefox/user/1792636">series of Firefox add-ons</a> that aid in performing web application assessment. These tools are a great convenient way of finding vulnerabilities within web applications. I do want to point out that even though these tools are useful there is no guarantee all vulnerabilities will be found.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/7598">XSS-Me</a> is one of the tools in the series that helps to find cross site scripting (<a href="http://www.darkreading.com/document.asp?doc_id=103774&amp;WT.svl=news1_1">XSS</a>) vulnerabilities within web applications. The tool works by locating forms within a web page then tries various inputs into those forms to see if the inputs on that page are vulnerable. A screen shot of how the tool should look inside Firefox can be seen below.</p>
<p align="center"><a href="http://travisaltman.com/wp-content/travisaltman.png" title="How XSS-Me should look inside Firefox"><img src="http://travisaltman.com/wp-content/travisaltman.png" alt="How XSS-Me should look inside Firefox" align="left" /></a></p>
<p align="left">&nbsp;</p>
<p align="left">Now all you have to do is click &#8220;Run all tests&#8221; and let XSS-Me do its thing. Keep in mind that XSS-Me will also find any hidden forms within a page as well. So this is how things are suppose to work but you&#8217;ll eventually come across a page that has forms but XSS-Me doesn&#8217;t detect them, this is because the page you are viewing has <a href="http://www.w3schools.com/HTML/html_frames.asp">frames</a>. A good example of this is <a href="http://em386.blogspot.com/">Chris Rohlf&#8217;s</a> site seen below.</p>
<p align="left"><a href="http://travisaltman.com/wp-content/em386homepage.png" title="XSS-Me doesn’t detect the search form"><img src="http://travisaltman.com/wp-content/em386homepage.png" alt="XSS-Me doesn’t detect the search form" /></a></p>
<p align="left">From the screen shot you can see there is a search form at the top of the page but XSS-Me doesn&#8217;t detect its presence. This is because the search form is wrapped inside of a frame. A quick little tip to get around this problem is to open the frame in another tab/window. All you have to do in Firefox is right click on the frame then select &#8220;This Frame &gt; Open Frame in New Tab&#8221;. A screen shot can be seen below.</p>
<p align="left"><a href="http://travisaltman.com/wp-content/rightclick.jpg" title="Right click to open frame"><img src="http://travisaltman.com/wp-content/rightclick.jpg" alt="Right click to open frame" /></a></p>
<p align="left">Once you have the frame in a new tab XSS-Me will detect the form as normal. This can be seen in the screen shot below.</p>
<p align="left"><a href="http://travisaltman.com/wp-content/forminnewtab.png" title="Frame in new tab"><img src="http://travisaltman.com/wp-content/forminnewtab.png" alt="Frame in new tab" /></a></p>
<p align="left">This same technique will apply to the SQL Inject Me tool from Security Compass as well because it also tries to search for forms within a web page.</p>
<p align="left">This tip was passed along to me by Sahba Kazerooni who works at Security Compass. I have no affiliation with Security Compass but I met Sahba and some other Security Compass employees at a conference and they were all down to earth guys who had great knowledge and experience when it came to information security. So thanks for the tip Sahba and hopefully this tip will help others secure their web applications as well.</p>
<p align="left">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/xss-me-tool-html-frames/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nessus not free anymore   :-(</title>
		<link>http://travisaltman.com/nessus-not-free-anymore/</link>
		<comments>http://travisaltman.com/nessus-not-free-anymore/#comments</comments>
		<pubDate>Thu, 22 May 2008 20:23:34 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://travisaltman.com/nessus-not-free-anymore/</guid>
		<description><![CDATA[Well that&#8217;s not entirely true, they will still offer the &#8220;engine&#8221; for free just not all of the plugins (maybe?). The current but soon to be old model had two types of subscriptions,

Direct feed ($1,200 per year)
Registered feed (free but plugins were 7 days old)

Come the end of July they will switch to a different [...]]]></description>
			<content:encoded><![CDATA[<p>Well that&#8217;s not entirely true, they will still offer the &#8220;engine&#8221; for free just not all of the plugins (maybe?). The current but soon to be old model had two types of subscriptions,</p>
<ol>
<li>Direct feed ($1,200 per year)</li>
<li>Registered feed (free but plugins were 7 days old)</li>
</ol>
<p>Come the end of July they will switch to a different model,</p>
<ol>
<li>Professional feed = Direct feed</li>
<li>Home feed (only personal plugins, whatever that means?)</li>
</ol>
<p>The <a href="http://www.nessus.org/products/directfeed/change.php">press release</a> was some what cryptic and I couldn&#8217;t decipher what exactly this &#8220;Home feed&#8221; will be. It could be all the plugins minus the compliance stuff but the proof is in the pudding.</p>
<p>So it&#8217;s a sad day but I guess we all knew this was coming. In fact I&#8217;m all for Tenable getting paid for their valuable service I just hope they don&#8217;t go the next step and raise the price of the plugins feed to something outrageous. I think $1,200 is a reasonable price especially is you&#8217;re an independent contractor like I used to be.  Let&#8217;s just hope the &#8220;Professional feed&#8221; remains a reasonable price. Tenable could always introduce a 3rd tier geared towards large organizations to get even more capital, but maybe that won&#8217;t be necessary with their new model. If for some reason the 2 tier model doesn&#8217;t work I hope they will entertain the 3 tier model, I can only hope (cross fingers). They could be shooting themselves in the foot with this move, which is essentially shooting their user base in the foot as well.</p>
<p>I&#8217;m not a hater, I <strike>like</strike> love Nessus and think it&#8217;s bottom line the best vulnerability scanner on the market period. I remember not too long ago (~ 4 years?) when Nessus had around 1,000 plugins, now there are over 21,000 so they have definitely grown over the years. I hope this move will help them to keep growing, just don&#8217;t forget the little guy.</p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/nessus-not-free-anymore/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Widespread SQL injection &amp; Javascript malware</title>
		<link>http://travisaltman.com/widespread-sql-injection-javascript-malware/</link>
		<comments>http://travisaltman.com/widespread-sql-injection-javascript-malware/#comments</comments>
		<pubDate>Thu, 15 May 2008 15:40:16 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[SQL injection]]></category>

		<category><![CDATA[malware]]></category>

		<guid isPermaLink="false">http://travisaltman.com/widespread-sql-injection-javascript-malware/</guid>
		<description><![CDATA[This is the first time I have ever seen SQL injection this widespread and in an automated fashion. Before it&#8217;s all said and done this could be !!! HUGE !!!. News of this has been trickling out since the end of April with the first hint of it at the beginning of the year.
Basically what&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>This is the first time I have ever seen SQL injection this widespread and in an automated fashion. Before it&#8217;s all said and done this could be !!! HUGE !!!. News of this has been trickling out since the end of April with the first hint of it at the beginning of the year.</p>
<p>Basically what&#8217;s happening is attackers are using SQL injection, in some sort of automated fashion, to insert Javascript malware into databases of some popular websites, the <a href="http://ddanchev.blogspot.com/2008/04/united-nations-serving-malware.html">United Nations for example</a>. Once a user visits an infected website (un.org) they will unknowingly be sent to a malicious site where attackers try numerous exploits to see if they succeed. Keep in mind the user will remain on un.org as if everything is fine and dandy but in the background exploits are being launched.</p>
<p>What&#8217;s so scary about these widespread infections is that the Javascript malware will remain on the database until the webmaster removes it. Even then the websites will still be vulnerable to SQL injection so attackers could reinsert malware until the vulnerability is fixed. Also attackers could easily update the location of their malicious site through SQL injection. For example lets say attackers are using http://evilattacker.com for launching their exploits but this URL gets blacklisted, they could then update infected databases with a new URL, say http://maliciousattacker.com. So this type of widespread epidemic is the gift that keeps on giving.</p>
<p>I&#8217;ve seen these attacks come across the IDS (intrusion detection system) where users are visiting infected URL&#8217;s. Of course attackers could easily move their operations to different URL&#8217;s. Some exploit URL&#8217;s I&#8217;ve seen so far are nihaorr1.com, nmidahena.com, aspder.com, rirwow.cn, and wowyeye.cn. I performed searches to get an idea of the infection numbers, now doing a search for the offending URL won&#8217;t give you a 1 to 1 relationship but it will give you a ballpark figure. Take a look at the &#8220;Results&#8221; numbers in the following screen shots.</p>
<p align="center"><a href="http://travisaltman.com/wp-content/nihaorr1cominfections.png" title="nihaorr1.com Infections"><img src="http://travisaltman.com/wp-content/nihaorr1cominfections.png" alt="nihaorr1.com Infections" /></a></p>
<p align="center"><a href="http://travisaltman.com/wp-content/nmidahenacominfections.png" title="nmidahena.com Infections"><img src="http://travisaltman.com/wp-content/nmidahenacominfections.png" alt="nmidahena.com Infections" /></a></p>
<p align="center"><a href="http://travisaltman.com/wp-content/aspdercominfections.png" title="aspder.com Infections"><img src="http://travisaltman.com/wp-content/aspdercominfections.png" alt="aspder.com Infections" /></a></p>
<p align="left">Also check out this screen shot from ririwow.cn, you&#8217;ll get a laugh from it.</p>
<p align="center"><a href="http://travisaltman.com/wp-content/ririwowcn.png" title="ririwow.cn"><img src="http://travisaltman.com/wp-content/ririwowcn.png" alt="ririwow.cn" /></a></p>
<p align="left">So the ballpark infection just from these three URL&#8217;s is 500,000, scary isn&#8217;t it. Even if this number is 400,000 off that still leaves 100,000 sites infected. There&#8217;s no way at this point to verify the number but this is definitely the largest SQL injection campaign I have ever seen. It&#8217;s these URL&#8217;s along with others that are hosting the Javascript malware. It&#8217;s common to see the attackers use Javascript to open zero pixel iframes so the attack appears hidden. The Javascript files I&#8217;ve seen so far are short names with either a single letter or number (e.g. m.js, 1.js, jp.js, etc). So the request that happens in the background will look like http://ririwow.cn/jp.js. In order to see the request one would have to use a <a href="http://travisaltman.com/webscarab-tutorial-part-1-learning-the-basics/">local web proxy</a>. Without a proxy you would never see the request. So I&#8217;m going to keep my eyes peeled in the coming months to see how this epidemic plays out.</p>
<p>Below are some other good articles related to this topic</p>
<p><a href="http://isc.sans.org/diary.html?storyid=4294">Internet Storm Center</a></p>
<p><a href="http://securitylabs.websense.com/content/Alerts/3070.aspx">Websense</a></p>
<p><a href="http://www.shadowserver.org/wiki/pmwiki.php?n=Calendar.20080424">ShadowServer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/widespread-sql-injection-javascript-malware/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CIFS, Linux, &amp; Windows</title>
		<link>http://travisaltman.com/cifs-linux-windows/</link>
		<comments>http://travisaltman.com/cifs-linux-windows/#comments</comments>
		<pubDate>Tue, 13 May 2008 15:17:33 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://travisaltman.com/cifs-linux-windows/</guid>
		<description><![CDATA[I connect to Windows from Linux on almost a daily basis so I wanted to let others know how I connect the two OSes. There are some articles out there that will explain how to access Windows shares from Linux but they don&#8217;t explain things as simply as I would like. So first of all [...]]]></description>
			<content:encoded><![CDATA[<p>I connect to Windows from Linux on almost a daily basis so I wanted to let others know how I connect the two OSes. There are some articles out there that will explain how to access Windows shares from Linux but they don&#8217;t explain things as simply as I would like. So first of all there are 2 common ways to connect to a Windows share from Linux.</p>
<ol>
<li>mount cifs or mount smbfs</li>
<li>smbclient</li>
</ol>
<p>I prefer the &#8220;mount cifs&#8221; option because smbfs is no longer supported and smbclient gives you the awkward command prompt look and feel like ftp via the command line. An example of how you would connect to a share via &#8220;mount cifs&#8221; can be seen below.</p>
<p><span style="color: #ff6600">prompt:~$ mount -t cifs //machine/folder /mnt/windows -o username=travis</span></p>
<p>Keep in mind &#8220;machine&#8221; = machine name and &#8220;folder&#8221; = shared folder. Also I created the &#8220;windows&#8221; directory inside the &#8220;mnt&#8221; directory so that I would have a mount point. If the directory requires authentication you will be prompted for a password. In a medium to large organization this will more than likely be your Active Directory username and password. I&#8217;ve been using CIFS since 2007 and I&#8217;m never going back to smbfs or smbclient. I know CIFS has been around a while and I&#8217;m some what behind the times but I didn&#8217;t have a real need for it until last year. CIFS was definitely one of my top finds of last year. If anyone knows of a better solution please hit me up.</p>
<p align="center">================  FYI  ================</p>
<ul>
<li>Windows uses the CIFS protocol to share folders</li>
<li>You may see it referred to as CIFS/SMB</li>
<li>Samba is a free implementation of SMB (both client and server)</li>
<li>Smbclient is a client program that comes with the Samba suite</li>
<li>CIFS is the latest &#8220;variant&#8221; of the SMB protocol</li>
<li>CIFS/SMB is probably the majority of network traffic in an organization (Windows environment that is)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/cifs-linux-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Carolina Con Presentation</title>
		<link>http://travisaltman.com/carolina-con-presentation/</link>
		<comments>http://travisaltman.com/carolina-con-presentation/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 03:05:32 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[SMS]]></category>

		<category><![CDATA[XSS]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://travisaltman.com/carolina-con-presentation/</guid>
		<description><![CDATA[
[See post to watch Flash video]
It&#8217;s taken me a couple of days to recover from Carolina Con.  I knew it was going to be a riot with all the alcohol in walking distance.  Now that I have my equilibrium I can post my presentation on Layer 7 attacks.  My laptop and the [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><br /><img src="/wp-content/carolinaCon.jpg"><br />
[See post to watch Flash video]</p>
<p>It&#8217;s taken me a couple of days to recover from <a href="http://www.carolinacon.org/" title="best party i've been to all year">Carolina Con</a>.  I knew it was going to be a riot with all the alcohol in walking distance.  Now that I have my equilibrium I can post my presentation on Layer 7 attacks.  My laptop and the projector weren&#8217;t working well together so I had to borrow Nick Fury&#8217;s laptop which didn&#8217;t have all the tools I needed for the presentation, so I wasn&#8217;t able to present the second half of my talk.  I&#8217;m hoping this video will compensate.  Keep in mind that my total presentation was going to include this video (scenario 1, cross site texting) and my previous video post of <a href="http://travisaltman.com/video-tutorial-on-analyzing-cookies/">analyzing cookies</a> (scenario 2).  One thing you won&#8217;t see in this screen cast is that during the presentation I used a volunteer from the audience to prove that an attacker could text himself the username and password of an unsuspecting victim.  Luckily <a href="http://www.rmyou.org/cc_pic/apples%20and%20kage.jpg">apples</a> from the <a href="http://hackthissite.org/" title="these guys get a 10 / 10">HTS</a> crew let me spam his phone with my demo and all he got was a t-shirt, a kick ass Carolina Con t-shirt that is.  Well I had a great time and I&#8217;ll definitely make it back next year.  As always I would love to hear your comments and feedback.</p>
<p>travis:~$ cat BigUpsMuchRespect</p>
<ol>
<li><a href="http://www.nc2600.org/index.html">nc2600</a></li>
<li><a href="http://www.donkeyonawaffle.org/">txs</a></li>
<li><a href="http://www.atarininja.org/">wxs</a></li>
<li><a href="http://www.layereddefense.com/">Deral Heiland</a></li>
<li><a href="http://www.securitycompass.com/">Sahba &amp; Dan @ Security Compass</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/carolina-con-presentation/feed/</wfw:commentRss>
	<enclosure url="/wp-content/carolinaCon.flv" length="1" type="video/x-flv" />
	</item>
		<item>
		<title>Video Tutorial on Analyzing Cookies</title>
		<link>http://travisaltman.com/video-tutorial-on-analyzing-cookies/</link>
		<comments>http://travisaltman.com/video-tutorial-on-analyzing-cookies/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 18:50:39 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://travisaltman.com/video-tutorial-on-analyzing-cookies/</guid>
		<description><![CDATA[
[See post to watch Flash video]
This video is a follow up on my written documentation of using Webscarab to analyze session ID&#8217;s.  This video walks through the Altoro Mutual web application, demo application set up by WatchFire, showing which cookies are weak and which cookies are strong.  It&#8217;s very important to have strong [...]]]></description>
			<content:encoded><![CDATA[<p><br /><img src="/wp-content/sessionIDAnalysis.jpg"><br />
[See post to watch Flash video]</p>
<p>This video is a follow up on my written documentation of using Webscarab to <a href="http://travisaltman.com/webscarab-tutorial-part-2-sessiond-id-analysis/" title="Analyze Cookies">analyze session ID&#8217;s</a>.  This video walks through the <a href="http://demo.testfire.net/">Altoro Mutual</a> web application, demo application set up by WatchFire, showing which cookies are weak and which cookies are strong.  It&#8217;s very important to have strong cookies because cookies keep information about your account on that particular application.  If an application has weak cookies then your account could be compromised revealing sensitive information about yourself.  Hopefully this video will show you how to analyze the strength of cookies for an application that you use.  As always please let me know if I screwed up somewhere in the video or if you have an idea for a better approach, I&#8217;d love to hear from others.<meta name="title" content="Video Tutorial on Analyzing Cookies" /><meta name="description" content="This video is a tutorial of how to analyze the strength of cookies for a web site." /><meta name="medium" content="video" /></p>
<link href="http://travisaltman.com/wp-content/sessionIDanalysis.jpg" rel="image_src" />
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/video-tutorial-on-analyzing-cookies/feed/</wfw:commentRss>
	<enclosure url="/wp-content/sessionIDAnalysis.flv" length="1" type="video/x-flv" />
	</item>
		<item>
		<title>Intro Video Tutorial for Webscarab</title>
		<link>http://travisaltman.com/intro-video-tutorial-for-webscarab/</link>
		<comments>http://travisaltman.com/intro-video-tutorial-for-webscarab/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 03:57:20 +0000</pubDate>
		<dc:creator>travis</dc:creator>
		
		<category><![CDATA[proxy]]></category>

		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://travisaltman.com/intro-video-tutorial-for-webscarab/</guid>
		<description><![CDATA[
[See post to watch Flash video]
I have finally gotten around to posting a video tutorial of Webscarab. This tutorial merely covers the basics on Webscarab and is a mirror reflection of my written tutorial, Webscarab Tutorial Part 1 (learning the basics). I plan on continuing this video series as I did with my written tutorials. [...]]]></description>
			<content:encoded><![CDATA[<p><br /><img src="/wp-content/webscarabBasics.jpg"><br />
[See post to watch Flash video]</p>
<p align="left">I have finally gotten around to posting a video tutorial of Webscarab. This tutorial merely covers the basics on Webscarab and is a mirror reflection of my written tutorial, <a href="http://travisaltman.com/webscarab-tutorial-part-1-learning-the-basics/">Webscarab Tutorial Part 1 (learning the basics)</a>. I plan on continuing this video series as I did with my written tutorials. I have always been a fan of video tutorials because they cut right to the chase and show the exact steps how something is performed. I have always frequented the videos on <a href="http://www.irongeek.com/i.php?page=security/hackingillustrated">Iron Geek</a> and <a href="http://www.milw0rm.com/video/">Milw0rm</a> which have been great resources as well. Don&#8217;t forget to <strong>maximize the video</strong> in the bottom right hand corner of the player, otherwise the video is pointless because you wouldn&#8217;t be able to see anything.</p>
<p align="left">The video seems to have some background noise from the audio recording, if anyone has a suggestion for making a better recording I&#8217;m all ears. I recorded the screen cast with <a href="http://www.irongeek.com/CamStudioOSS/camstudiosetup20.zip">CamStudio</a> but I also tried <a href="http://recordmydesktop.iovar.org/about.php">Record My Desktop</a> in Linux.  I wanted to use Record My Desktop but it was even worse.  It could have been my cheap <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16826106932">Logitech microphone</a> that was the root cause of the problem? Please post feedback and let me know if these videos are useful, your feedback will determine what content I post in the future.</p>
<p><meta name="title" content="Web proxy with Webscarab"/><meta name="description" content="This video is a tutorial of how to set up and use a local web proxy.  With a local web proxy you can see how the application works in the background.  Web proxies also give you the ability to intercept and modify requests to a web site.  Hackers use web proxies all the time so it's a good idea to know what they know."/><meta name="medium" content="video"/>
<link rel="image_src" href="http://travisaltman.com/wp-content/webscarabBasics.jpg"/>
]]></content:encoded>
			<wfw:commentRss>http://travisaltman.com/intro-video-tutorial-for-webscarab/feed/</wfw:commentRss>
	<enclosure url="/wp-content/webscarabBasics.flv" length="1" type="video/x-flv" />
	</item>
	</channel>
</rss>
