<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Miscellaneous Security</title>
	<atom:link href="http://miscsecurity.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://miscsecurity.wordpress.com</link>
	<description>A computer, network, and web application security blog focused on helping ordinary people understand security issues.</description>
	<lastBuildDate>Thu, 10 Sep 2009 19:07:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='miscsecurity.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/5271810e0ee5665f716a733984960123?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Miscellaneous Security</title>
		<link>http://miscsecurity.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://miscsecurity.wordpress.com/osd.xml" title="Miscellaneous Security" />
	<atom:link rel='hub' href='http://miscsecurity.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Hacking: The Next Generation</title>
		<link>http://miscsecurity.wordpress.com/2009/09/10/hacking-the-next-generation/</link>
		<comments>http://miscsecurity.wordpress.com/2009/09/10/hacking-the-next-generation/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 19:04:46 +0000</pubDate>
		<dc:creator>Brett Hardin</dc:creator>
				<category><![CDATA[Secure Development]]></category>
		<category><![CDATA[Social Networks]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[infosec]]></category>
		<category><![CDATA[prime target]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://misc-security.com/?p=490</guid>
		<description><![CDATA[My first book Hacking: The Next Generation is now available in electronic format. The physical version should be available on Amazon and in book stores in the next few days. I want to thank Mike Loukides of O&#8217;Reilly, and my &#8230; <a href="http://miscsecurity.wordpress.com/2009/09/10/hacking-the-next-generation/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=490&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 332px"><img src="http://covers.oreilly.com/images/9780596154578/lrg.jpg" alt="Photo: OReilly" width="322" height="423" /><p class="wp-caption-text">Photo: O&#39;Reilly</p></div>
<p>My first book <a href="http://oreilly.com/catalog/9780596154578/">Hacking: The Next Generation</a> is now available in electronic format. The physical version should be available on <a href="http://www.amazon.com/Hacking-Next-Generation-Animal-Guide/dp/0596154577/">Amazon</a> and in book stores in the next few days.</p>
<p>I want to thank <a href="http://www.oreillynet.com/pub/au/29">Mike Loukides of O&#8217;Reilly</a>, and my co-authors <a href="http://xs-sniper.com/">Billy Rios</a> and <a href="http://misc-security.com/">Nitesh Dhanjani</a>. A special thanks to Nitesh for providing me this opportunity.</p>
<p>Here is a description and the layout of the book. If you read the book please send me a shout-out on <a href="http://twitter.com/miscsecurity">Twitter</a> and let me know what you think, I would love to hear feedback.</p>
<h2>Description</h2>
<p>With the advent of rich Internet applications, the explosion of social media, and the increased use of powerful cloud computing infrastructures, a new generation of attackers has added cunning new techniques to its arsenal. For anyone involved in defending an application or a network of systems, <em>Hacking: The Next Generation</em> is one of the few books to identify a variety of emerging attack vectors.</p>
<p>You&#8217;ll not only find valuable information on new hacks that attempt to exploit technical flaws, you&#8217;ll also learn how attackers take advantage of individuals via social networking sites, and abuse vulnerabilities in wireless technologies and cloud infrastructures. Written by seasoned Internet security professionals, this book helps you understand the motives and psychology of hackers behind these attacks, enabling you to better prepare and defend against them.</p>
<ul>
<li>Learn how &#8220;inside out&#8221; techniques can poke holes into protected networks</li>
<li>Understand the new wave of &#8220;blended threats&#8221; that take advantage of multiple application vulnerabilities to steal corporate data</li>
<li>Recognize weaknesses in today&#8217;s powerful cloud infrastructures and how they can be exploited</li>
<li>Prevent attacks against the mobile workforce and their devices containing valuable data</li>
<li>Be aware of attacks via social networking sites to obtain confidential information from executives and their assistants</li>
<li>Get case studies that show how several layers of vulnerabilities can be used to compromise multinational corporations.</li>
</ul>
<h3>Chapter 1 &#8211; Intelligence Gathering: Peering Through the Windows to Your Organization</h3>
<p>To successfully execute an attack against any given    organization, the attacker must first perform reconnaissance to    gather as much intelligence about the organization as possible. In    this chapter, we look at traditional attack methods as well as how    the new generation of attackers is able to leverage new technologies    for information gathering.</p>
<h3>Chapter 2 &#8211; Inside-Out Attacks: The Attacker Is the Insider</h3>
<p>Not only does the popular perimeter-based approach to security    provide little risk reduction today, but it is in fact contributing    to an increased attack surface that criminals are using to launch    potentially devastating attacks. The impact of the attacks    illustrated in this chapter can be extremely devastating to    businesses that approach security with a perimeter mindset where the    insiders are generally trusted with information that is confidential    and critical to the organization.</p>
<h3>Chapter 3 &#8211; The Way It Works: There Is No Patch</h3>
<p>The protocols that support network communication, which are    relied upon for the Internet to work, were not specifically designed    with security in mind. In this chapter, we study why these protocols    are weak and how attackers have and will continue to exploit    them.</p>
<h3>Chapter 4 &#8211; Blended Threats: When Applications Exploit Each Other</h3>
<p>The amount of software installed on a modern computer system    is staggering. With so many different software packages on a single    machine, the complexity of managing the interactions between these    software packages becomes increasingly complex. Complexity is the    friend of the next-generation hacker. This chapter exposes the    techniques used to pit software against software. We present the    various blended threats and blended attacks so that you can gain    some insight as to how these attacks are executed and the thought    process behind blended exploitation.</p>
<h3>Chapter 5 &#8211; Cloud Insecurity: Sharing the Cloud with Your Enemy</h3>
<p>Cloud computing is seen as the next generation of computing.    The benefits, cost savings, and business justifications for moving    to a cloud-based environment are compelling. This chapter    illustrates how next-generation hackers are positioning themselves    to take advantage of and abuse cloud platforms, and includes    tangible examples of vulnerabilities we have discovered in today&#8217;s    popular cloud platforms.</p>
<h3>Chapter 6 &#8211; Abusing Mobile Devices: Targeting Your Mobile Workforce</h3>
<p>Today&#8217;s workforce is a mobile army, traveling to the customer    and making business happen. The explosion of laptops, wireless    networks, and powerful cell phones, coupled with the need to &#8220;get    things done,&#8221; creates a perfect storm for the next-generation    attacker. This chapter walks through some scenarios showing how the    mobile workforce can be a prime target of attacks.</p>
<h3>Chapter 7 &#8211; Infiltrating the Phishing Underground: Learning from Online Criminals?</h3>
<p>Phishers are a unique bunch. They are a nuisance to businesses    and legal authorities and can cause a significant amount of damage    to a person&#8217;s financial reputation. In this chapter, we infiltrate    and uncover this ecosystem so that we can shed some light on and    advance our quest toward understanding this popular subset of the    new generation of criminals.</p>
<h3>Chapter 8 &#8211; Influencing Your Victims: Do What We Tell You, Please</h3>
<p>The new generation of attackers doesn&#8217;t want to target only    networks, operating systems, and applications. These attackers also    want to target the people who have access to the data they want to    get a hold of. It is sometimes easier for an attacker to get what    she wants by influencing and manipulating a human being than it is    to invest a lot of time finding and exploiting a technical    vulnerability. In this chapter, we look at the crafty techniques    attackers employ to discover information about people to influence    them.</p>
<h3>Chapter 9 &#8211; Hacking Executives: Can Your CEO Spot a Targeted Attack?</h3>
<p>When attackers begin to focus their attacks on specific    corporate individuals, executives often become the prime target.    These are the &#8220;C Team&#8221; members of the company—for instance, chief    executive officers, chief financial officers, and chief operating    officers. Not only are these executives in higher income brackets    than other potential targets, but also the value of the information    on their laptops can rival the value of information in the    corporation&#8217;s databases. This chapter walks through scenarios an    attacker may use to target executives of large corporations.</p>
<h3>Chapter 10 &#8211; Case Studies: Different Perspectives</h3>
<p>This chapter presents two scenarios on how a determined hacker    can cross-pollinate vulnerabilities from different processes, systems, and applications    to compromise businesses and steal confidential data.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miscsecurity.wordpress.com/490/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miscsecurity.wordpress.com/490/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miscsecurity.wordpress.com/490/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=490&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miscsecurity.wordpress.com/2009/09/10/hacking-the-next-generation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8fb44ab02c1a4be89ff47584849cf02?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">miscsecurity</media:title>
		</media:content>

		<media:content url="http://covers.oreilly.com/images/9780596154578/lrg.jpg" medium="image">
			<media:title type="html">Photo: OReilly</media:title>
		</media:content>
	</item>
		<item>
		<title>Understanding Cookies</title>
		<link>http://miscsecurity.wordpress.com/2009/09/02/understanding-cookies/</link>
		<comments>http://miscsecurity.wordpress.com/2009/09/02/understanding-cookies/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:00:16 +0000</pubDate>
		<dc:creator>Brett Hardin</dc:creator>
				<category><![CDATA[Primer]]></category>
		<category><![CDATA[Secure Development]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[cookie]]></category>
		<category><![CDATA[cookie attributes]]></category>
		<category><![CDATA[cookie jar]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[expires]]></category>
		<category><![CDATA[HTTP cookies]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://misc-security.com/?p=338</guid>
		<description><![CDATA[When testing web applications, penetration testers should look at how the session is handled. Session management is commonly overlooked by developers and system administrators. It is so often overlooked that it is one of the OWASP Top 10, refereed to &#8230; <a href="http://miscsecurity.wordpress.com/2009/09/02/understanding-cookies/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=338&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 502px"><img class=" " src="http://farm2.static.flickr.com/1280/1117398599_b86f47800a.jpg" alt="Photo: Mrs. Magic" width="492" height="500" /><p class="wp-caption-text">Photo: Mrs. Magic</p></div>
<p>When testing web applications, penetration testers should look at how the session is handled. Session management is commonly overlooked by developers and system administrators. It is so often overlooked that it is one of the <a href="http://misc-security.com/2009/07/06/owasp-top-10/">OWASP Top 10</a>, refereed to as &#8220;<a href="http://misc-security.com/2009/08/26/broken-authentication-and-session-management/">Broken Authentication and Session Management</a>.&#8221;</p>
<p>This article will cover certain attributes that cookies typically have. In the future we will address how to use attribute tags to help aid developers in securing their applications. This article assumes the reader has a basic understanding of what a cookie is.</p>
<p>Here is a sample HTTP response. This is what the server responds with after a client request is made. The response has been edited for brevity.</p>
<pre><code>HTTP/1.1 200 OK
Content-Type: text/html
Set-Cookie: session=YnJldHQ6bXlwYXNzd29yZA==;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.misc-security.com
Content-Length: 8400</code></pre>
<p>For those unfamiliar with cookies, a cookie consists of a name/value pair. In this case the cookie name is &#8220;<em>session</em>&#8221; and the cookie value is &#8220;<em>YnJldHQ6bXlwYXNzd29yZA==</em>&#8220;</p>
<p>Following the cookie name/value pair are the attribute/value pairs that apply to that cookie and are delimited with a semicolon. In this example their are three attribute/value pairs: expires, path, and domain.</p>
<h3>Expires Attribute</h3>
<pre>expires=Thu, 30 Dec 2037 00:00:00 GMT</pre>
<p>The expires attribute is used to tell the browser when the cookie should no longer be used. Browsers will cache this cookie locally until the expires date is reached. When the expires date is reached the browser will stop sending the cookie after the browser is closed. In our example the cookie will remain valid until December 30th, 2037.</p>
<h3>Path Attribute</h3>
<pre>path=/</pre>
<p>The Path attribute specifies the subset of URLs to which this cookie applies. In this case, the cookie will be sent for any request to this server. If a user requests /bobsapp/ or /tomsapp/ this cookie will be sent.</p>
<h3>Domain Attribute</h3>
<pre>domain=.misc-security.com</pre>
<p>The Domain attribute specifies the domain for which the cookie is valid.  An explicitly specified domain must always start with a dot. In our example, this cookie will be sent to misc-security.com and any sub-domains of misc-security.com (e.g. asparagus.misc-security.com).</p>
<p>In a future article we will continue looking at the attribute/value pairs that cookies can have and will even revisit these attributes explaining how each needs to be understood to securely handle a user&#8217;s session.</p>
<p><strong>Further Reading:</strong></p>
<p><a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109 &#8211; HTTP State Management Mechanism</a><br />
<a href="http://www.ietf.org/rfc/rfc2965.html">RFC 2965 &#8211; HTTP State Management Mechanism (New Version)</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miscsecurity.wordpress.com/338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miscsecurity.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miscsecurity.wordpress.com/338/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=338&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miscsecurity.wordpress.com/2009/09/02/understanding-cookies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8fb44ab02c1a4be89ff47584849cf02?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">miscsecurity</media:title>
		</media:content>

		<media:content url="http://farm2.static.flickr.com/1280/1117398599_b86f47800a.jpg" medium="image">
			<media:title type="html">Photo: Mrs. Magic</media:title>
		</media:content>
	</item>
		<item>
		<title>Broken Authentication and Session Management</title>
		<link>http://miscsecurity.wordpress.com/2009/08/26/broken-authentication-and-session-management/</link>
		<comments>http://miscsecurity.wordpress.com/2009/08/26/broken-authentication-and-session-management/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 20:00:13 +0000</pubDate>
		<dc:creator>Brett Hardin</dc:creator>
				<category><![CDATA[OWASP]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[Application development]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Broken Authentication]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[forgot password]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[it security]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Session]]></category>
		<category><![CDATA[Session Management]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://misc-security.com/?p=249</guid>
		<description><![CDATA[This is the seventh-part in a ten-part-series describing the OWASP Top 10. (See all the OWASP Top 10) What is Broken Authentication and Session Management When developers are programming web application based solutions they rarely focus on how the user&#8217;s &#8230; <a href="http://miscsecurity.wordpress.com/2009/08/26/broken-authentication-and-session-management/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=249&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 417px"><img src="http://farm4.static.flickr.com/3274/2553033608_0ccf4b79b8.jpg" alt="Photo: Stephen Poff" width="407" height="407" /><p class="wp-caption-text">Photo: Stephen Poff</p></div>
<p>This is the seventh-part in a ten-part-series describing the <a href="http://misc-security.com/2009/07/06/owasp-top-10">OWASP Top 10</a>. (<a href="http://misc-security.com/2009/07/06/owasp-top-10/">See all the OWASP Top 10</a>)</p>
<p><big><strong>What is Broken Authentication and Session Management<br />
</strong></big></p>
<p>When developers are programming web application based solutions they rarely focus on how the user&#8217;s session is managed. Failing to keep this in mind can lead developers to introduce session management vulnerabilities in their applications.</p>
<p>Session management vulnerabilities occur when developers fail to protect their users sensitive information such as user names, passwords, and session tokens.</p>
<p>Broken authentication vulnerabilities occur when developers fail to use authentication methods that have been adequately tested and rely on their own, often flawed, method for authenticating users.</p>
<p>These vulnerabilities are very hard for developers to identify on their own due to the far-reaching aspect of the code that handles session and authentication.</p>
<p><big><strong>An Example of </strong></big><big><strong>Broken Authentication and Session Management</strong></big></p>
<p>Due to the broad reach of this vulnerability there are many examples of broken authentication and session management occurring. Examples include forgotten password functionality, emailing user credentials, relying on IP address for session, not authenticating a user before changing a password, and not having adequate timeouts for inactive sessions.</p>
<p><strong>Forgotten Password Functionality</strong></p>
<p>Web applications often have a forgotten password functionality that allows a user to submit their user name to the application and are taken to a page with secret questions or a temporary password reset function.</p>
<p>Attackers can exploit this functionality to enumerate valid user name for the application. Developers often forget that a user name is half the puzzle to an attacker. Is an attacker knowing a password damaging if they don&#8217;t know a user name to go along with it?</p>
<p><big><strong>How Do You Prevent </strong></big><big><strong>Broken Authentication and Session Management</strong></big></p>
<p>Protecting credentials and session cookies is one of the most difficult tasks for a developer. Protecting this critical pieces of data can touch on many lines of code in several different files.</p>
<p>To prevent these types of vulnerabilities from occurring in your application, developers should first ensure that <strong>SSL is used for all authenticated parts of the application</strong>. In addition, <strong>verify that all credentials are stored in a hashed form</strong>.</p>
<p>As with all prevention methods preventing these vulnerabilities takes careful planning from the design stage of the application. The following should all be considered:</p>
<ul>
<li>Only use the native session management mechanism. Do not write your own session handlers. Do not use home-grown cookies for authentication or session-management.</li>
<li>Use a single authentication mechanism. Again, do not write your own authentication mechanism.</li>
<li>Do not allow the login process to happen from an unencrypted page.</li>
<li>Once a user authenticates, issue them a new session cookie and invalidate the previous session cookie. This will prevent session hijacking attacks from occurring.</li>
<li>Verify that every page of the application has a logout link that is easily identified by the user.</li>
<li>Have adequate timeouts for inactive sessions. Shorter is better.</li>
<li>Verify the user knows their old password before changing their password.</li>
<li>Do not send credentials (including the user name) over insecure channels, such as email.</li>
<li>Do not expose session identifiers, such as the session token, in the URL.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miscsecurity.wordpress.com/249/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miscsecurity.wordpress.com/249/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miscsecurity.wordpress.com/249/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=249&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miscsecurity.wordpress.com/2009/08/26/broken-authentication-and-session-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8fb44ab02c1a4be89ff47584849cf02?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">miscsecurity</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3274/2553033608_0ccf4b79b8.jpg" medium="image">
			<media:title type="html">Photo: Stephen Poff</media:title>
		</media:content>
	</item>
		<item>
		<title>A Closer Look at the Twitter-Controlled Botnet</title>
		<link>http://miscsecurity.wordpress.com/2009/08/17/a-closer-look-at-the-twitter-controlled-botnet/</link>
		<comments>http://miscsecurity.wordpress.com/2009/08/17/a-closer-look-at-the-twitter-controlled-botnet/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 16:56:44 +0000</pubDate>
		<dc:creator>Brett Hardin</dc:creator>
				<category><![CDATA[General Thoughts]]></category>
		<category><![CDATA[Guest Post]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[botnets]]></category>
		<category><![CDATA[information security]]></category>
		<category><![CDATA[Magic Number]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://misc-security.com/?p=417</guid>
		<description><![CDATA[Today, I have asked Paul Makowski, a fellow security researcher, to write up a detailed post regarding the recently discovered botnet being controlled through Twitter. What I love about this article is how in depth Paul actually dug regarding this &#8230; <a href="http://miscsecurity.wordpress.com/2009/08/17/a-closer-look-at-the-twitter-controlled-botnet/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=417&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 510px"><img src="http://farm4.static.flickr.com/3191/3029452838_9da02e1326.jpg" alt="Photo: Don Solo" width="500" height="375" /><p class="wp-caption-text">Photo: Don Solo</p></div>
<p>Today, I have asked <a href="http://paulmakowski.wordpress.com">Paul Makowski</a>, a fellow security researcher, to write up a detailed post regarding the recently discovered botnet being controlled through Twitter. What I love about this article is how in depth Paul actually dug regarding this botnet &#8211; He actually had to break up the post into two separate posts.</p>
<p>This is only part one. In part one, Pual explains how he gets the malware, decodes, and scans it. In part two, Paul will delve into dissecting the malware and making sense of what it does.</p>
<p><strong>Update:</strong> The mirrored malware links have been removed.<span style="font-style:italic;"></span></p>
<h2>A Closer Look at the Twitter-Controlled Botnet (Part 1)</h2>
<div class="content">
<div class="snap_preview">
<p><span style="font-weight:bold;font-size:small;">Preface:</span></p>
<p>I wasn’t aware of <a href="http://asert.arbornetworks.com/2009/08/twitter-based-botnet-command-channel/">Jose Nazario’s post</a> concerning this topic while I was conducting this research; I had only been exposed to the <a href="http://www.wired.com/threatlevel/2009/08/botnet-tweets/">Wired Threat Level article</a> prior to researching. So while I present some of the same information as Jose, this duplication of information only came to my attention afterwords.</p>
<p>If you’ve read Jose’s post, this post may still be worth the read for several reasons:</p>
<ul>
<li>Jose and I differed on some of the tools &amp; techniques used.</li>
<li>I attempt to offer a more detailed description of my methods/logic as a pseudo-tutorial.</li>
<li>I mirror all the necessary info so the readers can do this themselves.</li>
<li>There’s a quick discussion on some malware I found hosted at <a href="http://www.ubuntu.com/">ubuntu.com</a> (Jose probably saw it too but didn’t mention it) as well as a possible lead to a very sloppy botnet master.</li>
</ul>
<p><span style="font-weight:bold;font-size:small;">Getting the Malware:</span><span style="font-size:small;"> </span></p>
<p>I was reading some feeds on Friday (Aug 14th) and came across <a href="http://www.wired.com/threatlevel/2009/08/botnet-tweets/">Wired’s article on outsourcing botnet C&amp;C (command &amp; control) to Twitter</a>.  What caught my eye wasn’t so much the article itself but the <a style="font-weight:bold;" href="http://www.wired.com/images_blogs/threatlevel/2009/08/botnet_arbor.jpg">screenshot</a> accompanying the article. Many times when major outlets report on botnet/worms/virii/etc, crucial details are left out either intentionally (to protect the innocent) or accidentally. This was not the case with this article.</p>
<div id="attachment_425" class="wp-caption alignleft" style="width: 156px"><img class="size-full wp-image-425" title="Paul Makowski" src="http://miscsecurity.files.wordpress.com/2009/08/2d19687808fb542a2b41f928dac0017f.png?w=500" alt="Paul Makowski"   /><p class="wp-caption-text">Paul Makowski</p></div>
<p>I immediately recognized the tweets in the above screenshot as being base64 encoded. Furthermore, all of the posts started with the same 18 characters, indicating to me that these are not encrypted nor obfuscated beyond the simple base64 encoding. Perhaps the botnet herders are using <a href="http://www.digininja.org/projects/kreiosc2.php">Robin Wood’s KreiosC2</a> for nefarious purposes?  This is evidence for a fairly unsophisticated botnet herder.</p>
<p>I transcribed the messages captured in the screenshot and <a href="http://home2.paulschou.net/tools/xlate/">decoded them</a> in order from most recent to least recent. Some contained what appeared to be multiple links (redirections valid as of Aug 14th, 2009):</p>
<blockquote><p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS8xN2EzdFMg</span></p>
<p>http://bit.ly/17a3tS (malware)</p>
<p>|_ <span style="font-style:italic;">http://rifers.org/paste/content/paste/9509/body?key=upd4t3</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS9MT2ZSTyBodHRwOi8vYml0Lmx5L0ltZ2</span></p>
<p>http://bit.ly/LOfRO (malware)</p>
<p>|_ <span style="font-style:italic;">http://rifers.org/paste/content/paste/9508/body?key=upd4t3</span></p>
<p>http://bit.ly/Img (unrelated?)</p>
<p>|_ <span style="font-style:italic;">http://www.friedbeef.com/save-time-on-your-spreadsheets-asap-utilities/</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS8xN2w0RmEgaHR0cDovL2JpdC5seS8xN</span></p>
<p>http://bit.ly/17l4Fa (malware)</p>
<p>|_ <span style="font-style:italic;">http://rifers.org/paste/content/paste/9507/body?key=upd4t3</span></p>
<p>http://bit.ly/1 (unrelated?)</p>
<p>|_ <span style="font-style:italic;">http://www.blogger.com/profile/09172993341866649612</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS9wbVN1YyBodHRwOi8vYml0Lmx5LzE3b</span></p>
<p>http://bit.ly/pmSuc (malware)</p>
<p>|_ <span style="font-style:italic;">http://paste.ubuntu.com/252515/plain/</span></p>
<p>http://bit.ly/17 (unrelated?)</p>
<p>|_ <span style="font-style:italic;">http://www.17tech.com/soft/index.shtml</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS9HaHVVdSBodHRwOi8vYml0Lmx5L1FqC</span></p>
<p>http://bit.ly/GhuUu (malware)</p>
<p>|_ <span style="font-style:italic;">http://rifers.org/paste/content/paste/9506/body</span></p>
<p>http://bit.ly/Qj (unrelated?)</p>
<p><span style="font-style:italic;">|_ http://nossacamiseta.net/product_info.php/products_id/564</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS9RakFaWQ==</span></p>
<p>http://bit.ly/QjAZY (dead link)</p>
<p>|_ <span style="font-style:italic;">http://paste.debian.net/44059/download/44059</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS83UGFEOQ==</span></p>
<p>http://bit.ly/7PaD9 (dead link)</p>
<p>|_ <span style="font-style:italic;">http://paste.debian.net/44056/download/44056</span></p>
<p><span style="font-weight:bold;">aHR0cDovL2JpdC5seS8zUndBTiBodHRwOi8vYml0Lmx5LzJwU0</span></p>
<p>http://bit.ly/3RwAN (dead link)</p>
<p>|_ <span style="font-style:italic;">http://pastebin.com/pastebin.php?dl=m49f3b4c2</span></p>
<p>http://bit.ly/2pS (unrelated?)</p>
<p>|_ <span style="font-style:italic;">http://friendfeed.com/koltregaskes/6c53228d/twine_official-i-ll-e-mail-straight-away-any </span></p></blockquote>
<p>There’s several interesting items here, in no particular order:</p>
<ol>
<li>It appears as though Debian is better at proactively moderating these type of posts than Ubuntu is (all the Debian links were dead when I tried them but the Ubuntu link worked fine). In Ubuntu’s defense, however, the offending links were killed within an hour of me notifying them.</li>
<li>Payloads are being pushed out in rapid succession to both the C&amp;C venues (Twitter, Jaiku, Tumblr, etc) and the payload hosting sites, indicating that this process has been automated. Automated payload deployment was determined by looking at some of the URLs linked in the Twitter screenshot:<br />
<blockquote><p><span style="font-style:italic;">http://rifers.org/paste/content/paste/<span style="font-weight:bold;">9506</span>/body</span></p>
<p><span style="font-style:italic;">http://rifers.org/paste/content/paste/<span style="font-weight:bold;">9507</span>/body?key=upd4t3</span></p>
<p><span style="font-style:italic;">http://rifers.org/paste/content/paste/<span style="font-weight:bold;">9508</span>/body?key=upd4t3</span></p>
<p><span style="font-style:italic;">http://rifers.org/paste/content/paste/<span style="font-weight:bold;">9509</span>/body?key=upd4t3</span></p></blockquote>
<p>It can be deduced from these URLs that malware was uploaded to <a href="http://rifers.org/">rifers.org</a> in a short enough time period to warrant consecutive numbers. Furthermore, it is clear that whoever controlled the Twitter C&amp;C made these uploads as well, judging by the <span style="font-weight:bold;font-family:courier new;">upd4t3</span> handle present across services.<span style="font-style:italic;font-size:small;"> </span></li>
<li><span style="font-size:small;">All th</span>e Twitter posts that included two redirect URLs appear to have a nonsense link as the second URL. If anyone has a theory as to the purpose of these secondary links, please leave a comment or shoot me an email @ my[remove_this].hndl@gmail.com</li>
<li>The botnet herder’s name is Rafael? I took another look at the malware hosted at Ubuntu and removing the <span style="font-family:courier new;">plain/</span>:</li>
<blockquote><p><span style="font-style:italic;">http://paste.ubuntu.com/252515/</span> (<a href="https://tegosecurity.com/mirror/Ubuntu%20Pastebin%20%28252515%29.html">mirror</a>)</p></blockquote>
</ol>
<p><span style="font-weight:bold;">Decoding the Malware:</span></p>
<p><span style="font-style:italic;">Get the base64 samples. <strong>[Link Redacted]</strong><br />
</span></p>
<p>Turning these base64 strings into something meaningful was more involved than simply decoding them. Still, the first step was to decode them. For that I wrote <a href="https://tegosecurity.com/tools/b64_decode.zip">a little Python script</a>. (I’m new to Python and figured this would be a simple exercise.  It was.)</p>
<blockquote><p><code># decodes base64 files</code></p>
<p># (C) 2009 Paul Makowski.  GPLv2.</p>
<p># usage: python /b64_decode.py (encoded_file) (output_file)</p>
<p>import base64</p>
<p>import sys</p>
<p>encodedFile = sys.argv[1]</p>
<p>outputFile = sys.argv[2]</p>
<p>encodedFileHndl = open(encodedFile,”r”)</p>
<p>outputFileHndl = open(outputFile, “w”)</p>
<p>outputFileHndl.write(base64.b64decode(encodedFileHndl.read()))</p>
<p>encodedFileHndl.close();</p>
<p>outputFileHndl.close();</p></blockquote>
<p>After decoding the malware I now had 5 files and named them after their URLs: <span style="font-family:courier new;">9506, 9507, 9508, 9509 &amp; 252515</span>.</p>
<p>I ran an md5 on all of them (I used OS X… it would be <span style="font-family:courier new;">md5sum</span> in Linux):</p>
<blockquote><p>$ md5 *.base64</p>
<p>MD5 (252515.base64) = a5f84f74cf9aa832355d5cd558cbfca6</p>
<p>MD5 (9506.base64) = 7743eac81be2b803093a6277323f17cb</p>
<p>MD5 (9507.base64) = a5f84f74cf9aa832355d5cd558cbfca6</p>
<p>MD5 (9508.base64) = a5051a6e5365bdc4dd8267e62d3e2902</p>
<p>MD5 (9509.base64) = 1a81e69e65b75f8b9e72e94c6f86a52b</p></blockquote>
<p>As you can see, payloads <span style="font-family:courier new;">9507</span> from rifers.org and <span style="font-family:courier new;">252515</span> from ubuntu.com are actually the same payload. (Yes I know about md5 collisions…but there’s very little point to messing with the hashes in this scenario.)</p>
<p>So now we’ve narrowed down the available payloads to 4: <span style="font-family:courier new;">9506</span> through <span style="font-family:courier new;">9509</span>. I named these <span style="font-family:courier new;">9506.bin</span> through <span style="font-family:courier new;">9509.bin</span> (since at this point I didn’t know their true filetype).</p>
<p><span style="font-weight:bold;">Making Sense of the Malware:</span></p>
<p>The first thing I tried after I de-base64′ed the payloads was to take a look at them with a hex editor.  Being on OS X, I used <a href="http://www.ridiculousfish.com/hexfiend/">Hex Fiend</a> (if I were on Windows, I’d use <a href="http://www.winhex.com/winhex/">WinHex</a>; Linux I’d use <span style="font-family:courier new;">hexedit</span>):</p>
<div id="attachment_40" class="wp-caption aligncenter" style="width:410px;"><img class="size-full wp-image-40" title="hex_fiend" src="http://paulmakowski.files.wordpress.com/2009/08/hex_fiend2.png?w=400&amp;h=208" alt="Hex Fiend" width="400" height="208" /></p>
<p class="wp-caption-text">Hex Fiend</p>
</div>
<div style="text-align:left;">I took note of two items:</p>
<ol>
<li>This is not a Windows executable; this is a <span style="font-family:courier new;">.zip</span> file.  I determined this by the <a href="http://en.wikipedia.org/wiki/Magic_number_%28programming%29">magic number</a> at the beginning of the file (seen above).  <span style="font-family:courier new;">PK</span> means <span style="font-family:courier new;">zip</span>; <span style="font-family:courier new;">MZ</span> (or <span style="font-family:courier new;">ZM</span>) means <span style="font-family:courier new;">Windows PE</span>.<span style="font-family:courier new;">file</span> verified these findings:<br />
<blockquote><p><span style="font-size:x-small;"><span style="font-family:courier new;">$ file 950*.bin</span></span></p>
<p><span style="font-family:courier new;">9506.bin:        Zip archive data, at least v2.0 to extract</span></p>
<p>9507_252515.bin: Zip archive data, at least v2.0 to extract</p>
<p><span style="font-family:courier new;">9508.bin:        Zip archive data, at least v2.0 to extract</span> <span style="font-family:courier new;"> </span></p>
<p>9509.bin:        Zip archive data, at least v2.0 to extract</p></blockquote>
</li>
<li>There’s a file called <span style="font-family:courier new;">gbpm.dll</span> inside the archive. At the bottom of the binary (not shown), is another string that reads <span style="font-family:courier new;">gbpm.exe</span>.  This also turned out to be a file in the archive.</li>
</ol>
</div>
<p>All of the other payloads appeared the same way under a hex editor.  I renamed them all from <span style="font-family:courier new;">*.bin</span> to <span style="font-family:courier new;">*.zip</span> and unzipped them.</p>
<p>Now I had four folders, each containing a unique <span style="font-family:courier new;">gdpm.dll</span> and <span style="font-family:courier new;">gdpm.exe</span>.  I renamed all the <span style="font-family:courier new;">gdpm.exe</span>s to <span style="font-family:courier new;">gdpm.livemalware</span> so I wouldn’t accidentally execute them on my Windows box.</p>
<p>I checked the md5s to see if any were duplicates:</p>
<p><span style="font-size:xx-small;"> </span></p>
<blockquote><p><span style="font-family:courier new;font-size:x-small;">$ md5 950*/*.dll &amp;&amp; md5 950*/*.livemalware</span><span style="font-family:courier new;font-size:x-small;"> </span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9506/gbpm.dll) = 0dc041988367e4ca0faa1f119c748efb</span><span style="font-family:courier new;font-size:x-small;"> </span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9507_252515/gbpm.dll) = 6cd9ee23dedf7c6a53668a7c4f830d78</span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9508/gbpm.dll) = 1a1b3c05470ea788a86c4b9ed5c9b28f</span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9509/gbpm.dll) = b15df1614d09ebb7b15d04ce914ee05f</span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9506/gbpm.livemalware) = 4c537d461490ac998256c6deca11eeb4</span><span style="font-family:courier new;font-size:x-small;"> </span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9507_252515/gbpm.livemalware) = 359ca7a025c3fe3cb7f60a3dd8ff4478</span></p>
<p><span style="font-family:courier new;font-size:x-small;">MD5 (9508/gbpm.livemalware) = b3a7f3145dc93e8721a4078f5e32fb44</span></p>
<p><span style="font-family:courier new;"><span style="font-family:courier new;font-size:x-small;">MD5 (9509/gbpm.livemalware) = 08b05a33c6a989cc9c3f0a0918afa943</span></span></p></blockquote>
<p>None were the same – I have 4 different pairs of malware samples <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I uploaded the files to <a href="http://www.virustotal.com/">Virustotal</a> to see if any were recognized.  AV detection was poor to say the least (not that I’m surprised):</p>
<blockquote><p><a href="http://www.virustotal.com/analisis/3f8bc3d0d6edc376caf54f24d5548dccc86c6acff604dca02557c91e456ce4c4-1250294593">9506/gbpm.dll</a> (4/41 antivirus detection) (new file)</p>
<p><a href="http://www.virustotal.com/analisis/1839e0846cd2b00e7a922386981a9082f35586108d77b6fa5357dc5e5213415d-1250294742">9506/gbpm.exe</a> (11/39 antivirus detection) (new file)</p>
<p><a href="http://www.virustotal.com/analisis/89139a94879f890a4fb0dc4902a70cab0a9f0676b0a47d1291d8a895f9fcc674-1250295291">9507_252515/gbpm.dll</a> (4/41 antivirus detection) (new file)</p>
<p><a href="http://www.virustotal.com/analisis/e2a779520cead9d37e7896dfc6f472dec401f6d62f4f0334170559bbc9bc6157-1250294404">9507_252515/gbpm.exe</a> (13/39 antivirus detection)</p>
<p><a href="http://www.virustotal.com/analisis/df0b21a668f052bd0aa6ff3254ddd640b1cd5f9cb6bc2487f58d18d3f0cd94f3-1250294405">9508/gbpm.dll</a> (5/41 antivirus detection)</p>
<p><a href="http://www.virustotal.com/analisis/a7fb20fa37a662e164ffbc39b8550822d56d2166d5f8fb09f837fefa5fd8c228-1250294413">9508/gbpm.exe</a> (13/39 antivirus detection)</p>
<p><a href="http://www.virustotal.com/analisis/eec9b310b7a6a7fa834d714a129bd31437b15c6e773e750f1c9c207ed61252dd-1250259808">9509/gbpm.dll</a> (6/41 antivirus detection)</p>
<p><a href="http://www.virustotal.com/analisis/3776542910264c9c7abccabf087d31cd3d82ee3ff4b8d88a21c86a3caebf9351-1250259605">9509/gbpm.exe</a> (8/41 antivirus detection)</p></blockquote>
<p>The files marked <span style="font-family:courier new;">new file</span> had not been seen by Virustotal previously.  All <span style="font-family:courier new;">.dll</span>s had a fairly low detection rate. That combined with the fact that some had not been seen by Virustotal previously reminds me of <a href="http://www.pandasecurity.com/usa/homeusers/media/press-releases/viewnews?noticia=9805">PandaLabs recent press release</a> on virii only being useful for 24 hours.</p>
<p>So what kind of malware do we have anyways? Virustotal points toward Eldorado or Svelta for some files. Jose says in his post that these aren’t the botnet control agents, but are additional feature-adding payloads. Perhaps this means keyloggers, DDoS tools, etc?</p>
<p><strong>Note</strong>: <em>The domains found hosting malware have been notified (Ubuntu, rifers.org). The malware has been taken down from these sites in order to prevent further propagation, but is offered below in a password protected archive for the reader to practice on.</em></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miscsecurity.wordpress.com/417/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miscsecurity.wordpress.com/417/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miscsecurity.wordpress.com/417/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=417&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miscsecurity.wordpress.com/2009/08/17/a-closer-look-at-the-twitter-controlled-botnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8fb44ab02c1a4be89ff47584849cf02?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">miscsecurity</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3191/3029452838_9da02e1326.jpg" medium="image">
			<media:title type="html">Photo: Don Solo</media:title>
		</media:content>

		<media:content url="http://miscsecurity.files.wordpress.com/2009/08/2d19687808fb542a2b41f928dac0017f.png" medium="image">
			<media:title type="html">Paul Makowski</media:title>
		</media:content>

		<media:content url="http://paulmakowski.files.wordpress.com/2009/08/hex_fiend2.png?w=400&#038;h=208" medium="image">
			<media:title type="html">hex_fiend</media:title>
		</media:content>
	</item>
		<item>
		<title>Information Leakage and Improper Error Handling</title>
		<link>http://miscsecurity.wordpress.com/2009/08/12/information-leakage-and-improper-error-handling/</link>
		<comments>http://miscsecurity.wordpress.com/2009/08/12/information-leakage-and-improper-error-handling/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 20:00:03 +0000</pubDate>
		<dc:creator>Brett Hardin</dc:creator>
				<category><![CDATA[OWASP]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[Web Application Security]]></category>
		<category><![CDATA[business software]]></category>
		<category><![CDATA[developing secure software]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[error messages]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[exception handling]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[Improper Error Handling]]></category>
		<category><![CDATA[Information Leakage]]></category>
		<category><![CDATA[it security]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://misc-security.com/?p=248</guid>
		<description><![CDATA[This is the sixth-part in a ten-part-series describing the OWASP Top 10. (See all the OWASP Top 10) What is Information Leakage and Improper Error Handling Information leakage and improper error handling happen when web applications do not limit the &#8230; <a href="http://miscsecurity.wordpress.com/2009/08/12/information-leakage-and-improper-error-handling/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=248&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 510px"><img src="http://farm4.static.flickr.com/3276/3027534098_f568868b9e.jpg?v=0" alt="Photo: Andres Rueda" width="500" height="375" /><p class="wp-caption-text">Photo: Andres Ruedahis</p></div>
<p>This is the sixth-part in a ten-part-series describing the <a href="http://misc-security.com/2009/07/06/owasp-top-10/">OWASP Top 10</a>. (See all the <a href="http://misc-security.com/2009/07/06/owasp-top-10/">OWASP Top 10</a>)</p>
<p><big><strong>What is Information Leakage and Improper Error Handling</strong></big></p>
<p>Information leakage and improper error handling happen when web applications do not limit the amount of information they return to their users. A classic example of improper error handling is when an application doesn&#8217;t sanitize SQL error messages that are returned to the user. Upon receiving a SQL error message an attacker will immediately identify a place for identifying <a href="http://misc-security.com/2009/07/08/injection-flaws/">injection flaws</a>.</p>
<p>Although preventing error messages from reaching users will not prevent vulnerabilities from occurring, it does make it difficult for an attacker to accomplish his goal and it is also an industry best practice.</p>
<p><big><strong>An Example of </strong></big><big><strong>Information Leakage</strong></big></p>
<p>Common examples of information leakage include helpful error messages and service banners. Developers and system administrators often forget or disregard how something as simple as a server banner can be used by an attacker.</p>
<p>As an example, if your server is running Apache and you return the server header with your responses, an attacker could leverage this to fingerprint the version of the web server you are running.</p>
<p>Using nmap an attacker could send a few packets at your application server using the command, <code>nmap -sV -p 80 192.168.1.100</code> and identify the following:</p>
<p><code>Interesting ports on 192.168.38.132:<br />
PORT    STATE SERVICE  VERSION<br />
80/tcp  open  http     Apache httpd 1.3.37</code></p>
<p>The attacker has now identified your Apache version and can now search for vulnerabilities affecting that version of Apache.</p>
<p><big><strong>An Example of Improper Error Handling</strong></big></p>
<p>Attackers attempt to leverage information that applications freely volunteer. If an application displays an error messages to the user (attacker), there is not guarantee that the user will &#8220;ignore&#8221; this error message.</p>
<p>Developers typically forget to properly handle their error messages. Stack traces and SQL errors are two examples of very commonly forgotten errors that should be handled.</p>
<p>Attackers love seeing error messages such as:</p>
<p><code>ERROR:  unterminated quoted string at or near "'''"</code></p>
<p><big><strong>How Do You Prevent Information Leakage and Improper Error Handling</strong></big></p>
<p>When developing applications, developers should assume all of the users are hostile. As a developer having this mentality will greatly aid you in developing secure applications.</p>
<p>All information returned from a web server should be reviewed for potential leakage. This can be automated by a QA team using a fuzzer.</p>
<p>Developers should also use a standard exception handling architecture to prevent information leakage from occurring. This architecture should be used and shared across the entire development team. <strong>All developers should handle their errors the same way</strong>.</p>
<p>Developers or product managers may also decide to create a default error handler which returns sanitized error messages for most users in production for all error paths. Doing this will greatly reduce the attack surface that can be exploited through error message generation.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miscsecurity.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miscsecurity.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miscsecurity.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=miscsecurity.wordpress.com&amp;blog=8476951&amp;post=248&amp;subd=miscsecurity&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://miscsecurity.wordpress.com/2009/08/12/information-leakage-and-improper-error-handling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f8fb44ab02c1a4be89ff47584849cf02?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">miscsecurity</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3276/3027534098_f568868b9e.jpg?v=0" medium="image">
			<media:title type="html">Photo: Andres Rueda</media:title>
		</media:content>
	</item>
	</channel>
</rss>
