<?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; Vulnerability</title>
	<atom:link href="http://praetorianprefect.com/archives/category/vulnerability/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>Turning an ATM into a Slot Machine</title>
		<link>http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/</link>
		<comments>http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 23:50:13 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[atm]]></category>
		<category><![CDATA[blackhat]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=4600</guid>
		<description><![CDATA[In a talk originally slated for last year before it was muffled by Juniper based on the concerns of "an affected ATM vendor", Jack demonstrates what he calls jackpotting an ATM.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_jackpot.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_jackpot-150x150.jpg" alt="" title="atm_jackpot" width="150" height="150" class="alignleft size-thumbnail wp-image-4601" /></a></p>

<p>Security researcher Barnaby Jack, currently at IOActive but a veteran of Foundstone, eEye, and Juniper with almost ten years in the industry, has demonstrated two exploit methods for ATM&#8217;s (Automated Teller Machines) in a presentation that is thus far the talk of the Black Hat 2010 conference. In a discussion originally slated for last year before it was muffled by Juniper based on the concerns of &#8220;an affected ATM vendor&#8221;, Jack demonstrates what he calls jackpotting an ATM.
<br /><br /><br /><br /></p>

<p>Here&#8217;s the ATM &#8220;jackpot&#8221; (music playing, money flying out, word &#8216;Jackpot&#8217; displayed on the console):</p>

<p><object width="425" height="344"><param name="movie" value="http://www.twitvid.com/player/TGMDW"></param><param name="allowscriptaccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.twitvid.com/player/TGMDW" quality="high" allowscriptaccess="always" allowNetworking="all" allowfullscreen="true" wmode="transparent" height="344" width="425"></object>
<br /></p>

<h3>The Attack</h3>

<p>The attack was employed using two custom tools Jack developed: Scrooge, an ATM firmware rootkit (malicious software that conceals itself at the level of interface between software and hardware) and Dilinger (named for the famous bank robber), a remote ATM attack tool that keeps track of compromised machines and stores the data stolen from people who use the machines. The first exploit involved unlocking a panel on the ATM and inserting a USB key that overwrites the machine&#8217;s native firmware with the aforementioned rootkit, taking control of the ATM.</p>

<h3>Research</h3>

<p><div id="attachment_4606" class="wp-caption alignleft" style="width: 200px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_open.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_open.jpg" alt="" title="atm_open" width="190" height="202" class="size-full wp-image-4606" /></a><p class="wp-caption-text">Triton ATM opened up, as an example.</p></div>
<br /></p>

<p>To perform the research, Jack acquired physical ATM machines, attached a debugger to the ATM motherboard, and proceeded to reverse engineer the machine&#8217;s firmware. He then developed a replacement version (the aforementioned Scrooge software). Firmware typically refers to the small footprint of code (programs, data structures) that provide internal control of electronic devices. In other words, think the low level operations of any electronic device.</p>

<p>In the models Jack tested he was able to, after accessing the machine&#8217;s USB ports with a master key purchased online, perform a replacement of the firmware with his rootkit version. The ATM&#8217;s include the ability to do this so that firmware updates can be made by those performing maintenance on the ATM. However, there is no integrity check to ensure that the code update is coming from a trusted source.</p>

<p>The keys themselves for the cabinets are <a href="http://www.atmpartmart.com/index.php?main_page=index&amp;cPath=698_833_847">not hard to acquire</a>.</p>

<h3>Mitigation</h3>

<p>In response ATM vendors have created a new version of the firmware requiring future updates have a digital signature (essentially a shared secret between the machine and the author of code for that machine to ensure the integrity of the code update). Doing this would help to prevent the type of rogue update via USB Jack performed, as long as the signing keys are kept secret.</p>

<h3>Breadth</h3>

<p>While Jack wouldn&#8217;t reveal the names of the ATM vendors whose devices he compromised (they are reported to be Triton and Tranax machines), he has noted that every ATM he has tested he has compromised, intimating attacks on multiple machines are possible because of similarities in the way generic ATM machines are made. He did note the external limitations of his research, citing the fact that there are only so many ATM&#8217;s you can put in an apartment before &#8220;your girlfriend gets mad&#8221;.</p>

<p>Jack actually told the delivery man who brought the ATM&#8217;s that he was getting them because he wanted to avoid bank withdrawal fees.</p>

<p><div id="attachment_4602" class="wp-caption alignnone" style="width: 622px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_jackpot1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/07/atm_jackpot1.jpg" alt="" title="atm_jackpot" width="612" height="828" class="size-full wp-image-4602" /></a><p class="wp-caption-text">Money spews from the ATM like a slot machine post exploit.</p></div>
<br /></p>

<h3>Remote Attack</h3>

<p>A remote attack was also demonstrated over Wifi, but many of the details have not yet been released. Jack found a way ,testing on his own machines, to bypass the remote authentication system of the ATM so that the same homemade rootkit, Scrooge, could be installed. This essentially provides access to an ATM via an Internet connection allowing for attack results such as the ability to record card and pin numbers on entry and sending them to a remote attacker). Such vulnerable ATM&#8217;s could be located with a war dialing tool, calling thousands of phone numbers until a vulnerable machine responds via modem, a technique already in play by criminals.</p>

<h3>Conclusion</h3>

<blockquote>
  <p>&#8220;Sometimes you have to demo a threat to spark a solution,&#8221; <br />Barnaby Jack</p>
</blockquote>

<p>The image is a resonant and powerful image of insecurity, we have here a demonstrated attack that allows you to spew money out of an ATM in a few seconds, and a second that doesn&#8217;t even require physical access to the machine. At this point, the response time frame from ATM vendors as well as the vulnerability demonstrated via USB are bordering on negligence, a master key that is readily available and USB based firmware updates without any signing mechanism to ensure that it is an &#8216;approved&#8217; update.</p>

<p>We have here, after all, a device whose sole purpose is to dispense cash.</p>

<p>Last year an ATM vendor got the talk pulled from BlackHat by pressuring Jack&#8217;s employer, Juniper Networks, despite having seven months of notification from Jack to arrive at some sort of response before the scheduled talk. Given we are now some one and a half years from notification, and given the quantity and dispersal of ATM&#8217;s out there, the vulnerabilities demonstrated are likely still viable.</p>

<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/02/microsofts-google-attack-patch/">Microsoft&#8217;s Google Attack Patch?</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/">Adobe util.printd Zero Day</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">Six Bulletins in Last Patch Tuesday of 2009</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/">The Barack Obama Donations Site was Hacked…err, no it wasn’t.</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Press F1 for Help, pwned.</title>
		<link>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/</link>
		<comments>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 17:39:54 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Remote Exploit]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Policy]]></category>
		<category><![CDATA[Stay Safe Online]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[help system]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[winhlp32]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3444</guid>
		<description><![CDATA[

Microsoft published security advisory 981169 yesterday in response to the zero day vulnerability reported a few days prior. The vulnerability is in the help system and can be triggered by luring an Internet Explorer user into pressing the F1 key. Windows 2000, Windows XP SP2 &#38; SP3, and Windows 2003 SP2 with Internet Explorer 7 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/Vista_Help_thumb_7AEAB696.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/Vista_Help_thumb_7AEAB696-150x150.png" alt="Vista_Help_thumb_7AEAB696" title="Vista_Help_thumb_7AEAB696" width="125" height="125" class="alignleft size-thumbnail wp-image-3449" /></a></p>

<p>Microsoft published security advisory <a href="http://www.microsoft.com/technet/security/advisory/981169.mspx">981169</a> yesterday in response to the zero day vulnerability reported a few days prior. The vulnerability is in the help system and can be triggered by luring an Internet Explorer user into pressing the F1 key. Windows 2000, Windows XP SP2 &amp; SP3, and Windows 2003 SP2 with Internet Explorer 7 and Internet Explorer 8 are all affected.</p>

<p>Credit to Maurycy Prodeus for publishing the <a href="http://isec.pl/vulnerabilities/isec-0027-msgbox-helpfile-ie.txt">initial details</a> of the vulnerability.</p>

<h3>Details</h3>

<p>Using the MsgBox VBScript function in an html file, an attacker can create a dialog box prompting the user to hit F1, something that is likely not difficult to do with a message such as &#8220;Internet Explorer encountered an error, press F1 to continue&#8221;. The <a href="http://msdn.microsoft.com/en-us/library/sfw6660x(VS.85).aspx">MsgBox</a> function is important as its fourth argument specifies a helpfile parameter, basically which hlp or chm file to launch when the user asks for help via F1.</p>

<p>I created a simple help file with the word &#8220;Test&#8221; using the Microsoft Help Workshop version 4.03. In addition to this, I added the macro to launch a command prompt (cmd.exe). When I double click this file in Windows XP SP3, I get my test helpfile and the command prompt launches as well:</p>

<div id="attachment_3447" class="wp-caption alignright" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/03/ScreenHunter_02-Mar.-02-11.51.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/03/ScreenHunter_02-Mar.-02-11.51-300x248.jpg" alt="Cmd.exe launched with my Help file." title="ScreenHunter_02 Mar. 02 11.51" width="300" height="248" class="size-medium wp-image-3447" /></a><p class="wp-caption-text">Cmd.exe launched with my Help file.</p></div>

<p>So we now have a .hlp file which executes code. As mentioned before, the MsgBox function has a parameter to specify a help file to launch when the user hits F1. Here is where I come back to a recurring issue of SMB traffic and allowing it outbound on firewalls. In order for the MsgBox parameter to launch the .hlp file, the attacker must point to a local file (which the user would have had to already download) or host a file on an internet accessible SMB share. If you look at the proof of concept code circulating, currently you will see the MsgBox help parameter is &#8220;&#92;x.x.x.x\attackfile.hlp&#8221;, a pointer to a help file on an SMB share. Corporate enterprises should certainly block SMB outbound, and with this vulnerability and the several previous attacks via SMB client, users should be blocking this outbound traffic as well.</p>

<h3>Vista, Windows 7, &amp; Server 2008</h3>

<p>The vulnerability does not work on Vista, Windows 7 and Windows 2008 due to Microsoft no longer including winhlp32.exe with these versions. However, there is an update which can install winhlp32 for these versions (<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=258aa5ec-e3d9-4228-8844-008e02b32a2c&amp;displaylang=en">Windows 7 Version I installed from here</a>). I found that these updates did not launch the cmd.exe as the Windows XP version did (I also tried Prodeus&#8217;s PoC help file and it displayed but did not run calc.exe). It is possible that Microsoft removed this code execution function from these versions.</p>

<h3>Workarounds</h3>

<p>The warnings are avoid hitting F1 when prompted by websites. Additionally, permissions to winhlp32.exe can be modified so that it doesn&#8217;t execute. In an Active Directory environment, a Group Policy software restriction setting can prohibit winhlp32.exe from launching. As mentioned, I recommend blocking outbound SMB traffic, as there is rarely a justification for mounting a network share on the public internet. This helps with many known vulnerabilities disclosed in the past as well.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/thou-shalt-not-send-naked-pictures-to-anyone-ever/">Thou Shalt Not Send Naked Pictures&#8230;To Anyone Ever</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/03/press-f1-for-help-pwned/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Microsoft&#8217;s Google Attack Patch?</title>
		<link>http://praetorianprefect.com/archives/2010/02/microsofts-google-attack-patch/</link>
		<comments>http://praetorianprefect.com/archives/2010/02/microsofts-google-attack-patch/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 04:18:26 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Patch Management]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3421</guid>
		<description><![CDATA[Noted journalist and friend of the blog <a href="http://twitter.com/georgevhulme">George V. Hulme</a> shared the picture below from CNBC, perhaps the most amusing way seen thus far of describing the patch for the '<a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">Aurora bug</a>' that famously affected Google late last year.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/02/fry_2.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/02/fry_2-150x150.jpg" alt="fry_2" title="fry_2" width="150" height="150" class="alignleft size-thumbnail wp-image-3422" /></a></p>

<p>Noted journalist and friend of the blog <a href="http://twitter.com/georgevhulme">George V. Hulme</a> shared the picture below from a CNBC broadcast, perhaps the most amusing way seen thus far of describing the patch for the &#8216;<a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">Aurora bug</a>&#8216; that famously affected Google late last year.</p>

<p>That assumes of course that Microsoft is not in fact working on a Google Attack Patch.</p>

<p><br /><br /><br /><br />
<div id="attachment_3423" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/02/cnbc.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/02/cnbc.jpg" alt="The Google Attack Patch is coming soon." title="cnbc" width="750" height="566" class="size-full wp-image-3423" /></a><p class="wp-caption-text">The Google Attack Patch is coming soon.</p></div>
<br /></p>

<p>Of course they are referring to <a href="http://blogs.technet.com/msrc/archive/2010/01/21/bulletin-ms10-002-released.aspx">Microsoft&#8217;s out of band patch</a> release on January 21st for the Internet Explorer use after free vulnerability that has been nicknamed Aurora.</p>

<p><div id="attachment_3427" class="wp-caption alignnone" style="width: 535px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/02/aurora_patch.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/02/aurora_patch.jpg" alt="Aurora Patch description." title="aurora_patch" width="525" height="160" class="size-full wp-image-3427" /></a><p class="wp-caption-text">Aurora Patch description.</p></div>
<br /></p>

<p>Praetorian advises giving this patch special attention in your environment, especially if you continue to run on Internet Explorer 6.0. The vulnerability is not confined to this version of the browser, but the method of attack is well known for this version at this point.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</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/2009/12/adobe-util-printd-zero-day/">Adobe util.printd Zero Day</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">Six Bulletins in Last Patch Tuesday of 2009</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/">The Barack Obama Donations Site was Hacked…err, no it wasn’t.</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/02/microsofts-google-attack-patch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe util.printd Zero Day</title>
		<link>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 21:02:21 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[zero-day]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2427</guid>
		<description><![CDATA[A critical vulnerability was discovered early this week in Adobe Reader and Acrobat versions 9.2 and earlier which could allow attackers to gain control of the affected system, not even a week after Adobe <a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">released a critical update</a> for its Flash Player on patch Tuesday last week. The attack uses a weakness in a function called util.printd along with a heap spray implemented with Javascript to attempt to inject shell code.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png" alt="adobelq.png" title="adobelq.png" width="43" height="72" class="alignleft size-full wp-image-2086" /></a>
A critical vulnerability was discovered early this week in Adobe Reader and Acrobat versions 9.2 and earlier which could allow attackers to gain control of the affected system, not even a week after Adobe <a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">released a critical update</a> for its Flash Player on patch Tuesday last week. The attack uses a weakness in a function called util.printd along with a heap spray implemented in Javascript to attempt to inject shell code.</p>

<p>Adobe published <a href="http://www.adobe.com/support/security/advisories/apsa09-07.html">an advisory</a> yesterday confirming the vulnerability and plans to make an update available by January 12, 2010 to resolve the issue. In the meantime, a mitigation step is available by disabling JavaScript in Adobe Reader and Acrobat. Users with Microsoft DEP (&#8220;Data Execution Prevention&#8221;) enabled reduces the exploit to a denial of service attack.</p>

<p>Some <a href="http://research.zscaler.com/2009/12/new-zero-day-adobe-acrobat-reader.html">detailed analysis</a> of a malicious PDF reveals the Javascript and shows that a function called <code>util.printd</code> leads to a memory corruption issue. This <a href="http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Acrobat9_HTMLHelp&amp;file=JS_API_AcroJS.88.1212.html">function</a> is supposed to return a date using a specified format and takes two parameters (plus a third optional parameter not typically used). The first parameter is the format of the date and time (0 for PDF, 1 for Universal, or 2 for Localized string). The second parameter is the date object submitted to format. The code shows the first parameter contains a <code>@</code> followed by a series of numbers as opposed to the expected input.</p>

<div id="attachment_2463" class="wp-caption alignnone" style="width: 669px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobe_utildate1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobe_utildate1.jpg" alt="JS heap spray and vulnerable function call." title="adobe_utildate" width="659" height="357" class="size-full wp-image-2463" /></a><p class="wp-caption-text">JS heap spray and vulnerable function call.</p></div>

<h3>Email Phishing, Malicious PDFs, and Metasploit</h3>

<p>A Metasploit exploit module has been released taking advantage of this vulnerability. The integration into Metasploit can accelerate the spread of exploits for this vulnerability in the wild. A video demonstration utilizing this module can be seen <a href="http://www.offensive-security.com/videos/adobe-0day/index.html">here</a>.</p>

<p>Examples of the phishing emails along with examples of the malicious PDF files can be found on the Contagio malware dump site <a href="http://contagiodump.blogspot.com/2009/12/this-message-shows-that-adobe-zero-day.html">here</a> and <a href="http://contagiodump.blogspot.com/2009/12/zero-day-pdf-attack-of-day-2-interview.html">here</a>. The following two emails are examples of the phishing methods used to have users open the malicious PDF files:</p>

<p><em><strong>Email One:</strong></em></p>

<pre><code>[mailto:chrisanderson58@hotmail.com]
Sent: 2009-11-30 1:56 AM
To: XXX@XXX.XXX
Subject: FW: reference
\----
From: jackr@gilbrooks.edu
To: chrisanderson58@hotmail.com
Subject: reference
Date: Mon, 30 Nov 2009 06:53:52 +0000


Dear All
Please find attached the updated country briefing notes, and staff lists.


Kind regards
Jack
</code></pre>

<p><em><strong>Email Two:</strong></em></p>

<pre><code>[mailto:fureer.angelica@gmail.com]
Sent: 2009-12-13 12:14 AM
To: XXXXXX
Subject: Interview Request


This is Fureer Angelica, diplomaic broadcaster for CNN in DC.
There's growing concern about the U.S.-North Korea bilateral talks.
So, we're planning an Interview about them.
Attached is the outline of the interview.


p.s. Detailed schedules will be followed soon if you accept the offer.
</code></pre>

<h3>Workarounds (<em>from a previous post</em>)</h3>

<h4>Disabling Javascript on Adobe Acrobat</h4>

<p>Adobe notes that disabling Javascript mitigates against the specific exploit identified, although it would be possible to create a variant that does not rely on Javascript.  To disable Javascript in Adobe Reader or Acrobat, select Edit>Preferences, select the JavaScript option on the left, and uncheck the <i>Enable Acrobat JavaScript</i> option as shown.</p>

<p><div id="attachment_916" class="wp-caption alignnone" style="width: 650px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/AcrobatPreferences.png" alt="Uncheck to disable Acrobat JavaScript" title="AcrobatPreferences" width="640" height="424" class="size-full wp-image-916" /></a><p class="wp-caption-text">Uncheck to disable Acrobat JavaScript</p></div>
<br /></p>

<h4>Data Execution Prevention</h4>

<p>Also, users with DEP enabled on Windows Vista or Windows 7 reduces the exploit from remote code execution to denial of service. Data Execution Prevention (DEP) performs additional checks on memory to help prevent malicious code from running, designed to prevent buffer overflow attacks. To enable DEP on Windows for all or individual programs, proceed to Control Panel -> System and Maintenance -> System, click on Advanced System Settings, under Performance click Settings, and finally under the Data Execution Prevention tab click <i>Turn on DEP for all programs and services except those I select</i>. If you can not find Acrobat in the list of programs, click Add and browse to the Acrobat executable (.exe) file and click Open.  For more information on DEP settings, visit the <a href="http://windows.microsoft.com/en-us/windows-vista/Change-Data-Execution-Prevention-settings">Microsoft help page</a>.</p>

<h3>References</h3>

<ul>
<li><a href="http://blogs.adobe.com/psirt/2009/12/new_adobe_reader_and_acrobat_v.html">Adobe PSIRT: New Adobe Reader and Acrobat Vulnerability</a></li>
<li><a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4324">CVE-2009-4324</a></li>
<li><a href="http://research.zscaler.com/2009/12/new-zero-day-adobe-acrobat-reader.html">New Zero day Adobe Acrobat Reader vulnerability analysis</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</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/02/microsofts-google-attack-patch/">Microsoft&#8217;s Google Attack Patch?</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/">Six Bulletins in Last Patch Tuesday of 2009</a></li>
<li><a href="http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/">The Barack Obama Donations Site was Hacked…err, no it wasn’t.</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/adobe-util-printd-zero-day/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Six Bulletins in Last Patch Tuesday of 2009</title>
		<link>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 19:39:55 +0000</pubDate>
		<dc:creator>Simon Price</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[vulnerabilities]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2088</guid>
		<description><![CDATA[Today marks the last Microsoft patch Tuesday of 2009, and Microsoft has released patches to six bulletins:




MS09-071 &#8211; Vulnerabilities in Internet Authentication Service Could Allow Remote Code Execution (974318)
MS09-074 &#8211; Vulnerability in Microsoft Office Project Could Allow Remote Code Execution (967183) 
MS09-072 &#8211; Cumulative Security Update for Internet Explorer (976325) 
MS09-069 &#8211; Vulnerability in Local [...]]]></description>
			<content:encoded><![CDATA[<p>Today marks the last Microsoft patch Tuesday of 2009, and Microsoft has released patches to six bulletins:</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image_3[1]_3" border="0" alt="image_3[1]_3" src="http://praetorianprefect.com/wp-content/uploads/2009/12/image_31_3.png" width="69" height="81" /></a></p>

<ul>
<li><strong>MS09-071</strong> &#8211; Vulnerabilities in Internet Authentication Service Could Allow Remote Code Execution (974318)</li>
<li><strong>MS09-074</strong> &#8211; Vulnerability in Microsoft Office Project Could Allow Remote Code Execution (967183) </li>
<li><strong>MS09-072</strong> &#8211; Cumulative Security Update for Internet Explorer (976325) </li>
<li><strong>MS09-069</strong> &#8211; Vulnerability in Local Security Authority Subsystem Service Could Allow Denial of Service (974392) </li>
<li><strong>MS09-070</strong> &#8211; Vulnerabilities in Active Directory Federation Services Could Allow Remote Code Execution (971726) </li>
<li><strong>MS09-073</strong> &#8211; Vulnerability in WordPad and Office Text Converters Could Allow Remote Code Execution (975539) </li>
</ul>

<h3>Severity Levels</h3>

<p>Microsoft has a <a href="http://www.microsoft.com/technet/security/bulletin/rating.mspx" target="_blank">rating system</a> for bulletins which includes: Critical, Important, Moderate, and Low. The severity levels I provide below are not directly from Microsoft. For example, MS will give an important rating when exploitation could result in compromise of availability, as in a denial of service. MS09-069 can result in a denial of service, however, the attacker must already be authenticated. For this reason I drop the severity to Low.</p>

<h3>Bulletin Summaries</h3>

<hr />

<p><strong>Bulletin:</strong> MS09-071<br/>
<strong>Recommended Action:</strong> Update Windows 2008 Server (32-bit and 64-bit) which have IAS configured to use PEAP with MS-CHAP v2 authentication.<br/>
<strong>My Severity Rating:</strong> Moderate, should patch the above mentioned software.</p>

<p>This update addresses two vulnerabilities in the Internet Authentication Service (IAS). One is an IAS memory corruption vulnerability and the second is an authentication bypass vulnerability in MS-CHAP authentication. Client operating systems contain the vulnerable code but the components are not used in a way to make them vulnerable.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-074<br/>
<strong>Recommended Action:</strong> Update MS Project 2000 SR-1.<br/>
<strong>My Severity Rating:</strong> Important for Project Software</p>

<p>This update addresses a vulnerability in Microsoft Project which can cause remote code execution when a specially crafted Project file is opened.&#160; Microsoft Project 2000 SR-1, Project 2002 SP1 and Project 2003 SP3 are affected.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-074<br/>
<strong>Recommended Action:</strong> Update Internet Explorer<br/>
<strong>My Severity Rating</strong> Critical</p>

<p>This update addresses five difference vulnerabilities with at least one or more affected every version of Internet Explorer. Attackers can host malicious code which can lead remote code execution on vulnerable systems. Any issues that lead to remote execution in IE should be addressed immediately; even if you are confident about not browsing malicious sites, a known site, <a href="http://praetorianprefect.com/archives/2009/12/pentagon-web-pwned/">such as the Pentagon web site</a>, could be used to automatically execute or redirect you to malicious code using cross-site scripting.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-069<br/>
<strong>Recommended Action:</strong> Update Windows 2000, Windows XP and Windows 2003<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>A vulnerability in LSASS can cause a denial of service. The attacker must be authenticated and communicating through IPSEC.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-070<br/>
<strong>Recommended Action:</strong> Update Windows 2003 and Windows 2008 Servers<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>This update addresses two vulnerabilities in Active Directory Federation Services, one which can be used to spoof an authenticated user and the second which can cause remote code execution. The spoofing requires access to a workstation and browser recently used by a targeted user and the remote code execution requires the attacker to have valid logon credentials to the vulnerable server.</p>

<hr />

<p><strong>Bulletin:</strong> MS09-069     <br/>
<strong>Recommended Action:</strong> Update Windows XP SP3 and/or Office 2003 SP3<br/>
<strong>My Severity Rating:</strong> Moderate</p>

<p>A vulnerability in text converters in WordPad and Office can cause remote code execution. Malicious code can be hosted on a website to trigger an exploit, however, an attempt would cause a dialog box to appear prompting the user to open the file (unless the option to “Always ask before opening this type of file” has been unchecked).</p>

<hr />

<h3>Adobe</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="adobe-lq" border="0" alt="adobe-lq" src="http://praetorianprefect.com/wp-content/uploads/2009/12/adobelq_thumb.png" width="47" height="76" /></a></p>

<p>Adobe has mirrored the patch Tuesday schedule of releasing patches on the first Tuesday of the month. The severity ratings also follow the same definitions a s Microsoft’s.</p>

<p>Adobe has two advisories for this month:</p>

<hr />

<p><strong>Bulletin:</strong> APSA09-06     <br />
<strong>Recommended Action:</strong> Update Adobe Illustrator CS4 and earlier. (Avail Jan 8)     <br />
<strong>My Severity Rating:</strong> Low</p>

<p>A vulnerability in Illustrator CS4 and earlier could lead to remote code execution. The target is required to open a malicious eps file.</p>

<hr />

<p><strong>Bulletin:</strong> APSA09-17     <br />
<strong>Recommended Action:</strong> Update Adobe Flash Player and Adobe AIR<br/>
<strong>My Severity Rating:</strong> Low</p>

<p>Adobe states this is a critical update and it is scheduled for release today, but does not provide details of the update.</p>

<h3>Updates</h3>

<p>Adobe has released details on the Flash Player update. The update addresses six vulnerabilities, five which can lead to remote execution and one to information disclosure. The vulnerabilities were identified in Flash Player version 10.0.32.18 and earlier.</p>

<h3>References</h3>

<ul>
<li><a href="http://www.microsoft.com/technet/security/Bulletin/MS09-dec.mspx">Microsoft&#8217;s December Bulletins</a></li>
<li><a href="http://www.adobe.com/support/security/">Adobe&#8217;s Security Advisories</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/six-bulletins-in-last-patch-tuesday-of-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Barack Obama Donations Site was Hacked…err, no it wasn’t.</title>
		<link>http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 02:45:53 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[SQL Injection]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=1170</guid>
		<description><![CDATA[This morning a security researcher identified that he was able to carry out a successful SQL Injection attack against donate.barackobama.com, the official campaign donation site of current President Barack Obama, and gain access to credentials such as user names and passwords for persons who have donated to the Obama campaign, as well as administrative user credentials. On his blog he goes on to postulate the further attack possibilities with admin access such as web site defacement, uploading phpshells, and so forth. The problem is that the researcher Unu didn’t find an SQL injection site on donate.barackobama.com, he found one on a <a href="http://www.roosevelt.edu/calendars/calendar.asp">calendar application</a> at Roosevelt University. In the process of finding out how that would be possible, a real web site vulnerability on the Obama web site reveals itself.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/barackobama_pass.JPG"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/barackobama_pass-150x150.jpg" alt="barackobama_pass" title="barackobama_pass" width="150" height="150" class="alignleft size-thumbnail wp-image-1198" /></a>This morning a security researcher identified that he was able to carry out a successful SQL Injection attack against donate.barackobama.com, the official campaign donation site of current President Barack Obama, and gain access to credentials such as user names and passwords for persons who have donated to the Obama campaign, as well as administrative user credentials. On his blog he goes on to postulate the further attack possibilities with admin access such as web site defacement, uploading phpshells, and so forth. The problem is that the researcher Unu didn’t find an SQL injection site on donate.barackobama.com, he found one on a <a href="http://www.roosevelt.edu/calendars/calendar.asp">calendar application</a> at Roosevelt University. In the process of finding out how that would be possible, a real web site vulnerability on the Obama web site reveals itself.</p>

<blockquote>
  <p>“We have a table admin. And in this table we can see that the admin passwords are in PLAIN TEXT! The website is big, with many sections, and there are 19 admins. What else we need to get full access on the website? Nothing. After we log in as admins, we can virtually do anything we want with the website: upload PHPShells, redirects, infect pages with Trojan droppers, [and even deface the whole website],” &#8211; Unu</p>
</blockquote>

<p>Speculative holes become apparent in reading the <a href="http://unu1234567.baywords.com/">blog entry</a>. The blog states and Pangolin shows that the database backend to the site is MS Access.  Why would a professionally built web site (the site was built by a firm called <a href="http://www.bluestatedigital.com/">Blue State Digital</a>), use MS Access to store data? The Obama donation site, like the other sites built by Blue State Digital, is PHP based and appears to use the <a href="http://expressionengine.com/tutorials/">Expression Engine</a> content management system (CMS) by <a href="http://ellislab.com/">EllisLab’s</a>. Expression Engine uses MySQL, another problem. Finally, the donate.barackobama.com web site does not have user ids and passwords, it takes contributions directly from a form the user fills out.</p>

<p><div id="attachment_1198" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/barackobama_pass.JPG"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/barackobama_pass-300x217.jpg" alt="Pangolin screenshot supposedly demonstrating SQL Injection of Obama web site." title="barackobama_pass" width="300" height="217" class="size-medium wp-image-1198" /></a><p class="wp-caption-text">Pangolin screenshot supposedly demonstrating SQL Injection of Obama web site.</p></div>
<br /><br /></p>

<p>Officials with responsibility around the web site responded similarly. Hari Sevugan of the DNC stated that “based on the number of incorrect assertions, we do not think that this information is credible. There has been no security breach”. Jascha Franklin-Hodge the CTO at Blue State Digital followed with: “After careful review, we are confident that the screenshot included in this bug does not contain any data from the barackobama.com or any other site hosted by Blue State Digital, the DNC, or Organizing for America. Microsoft Access is not used in any capacity on the barackobama.com site or servers.”</p>

<p>Not everybody agreed as of this morning. Chet Wisniewski of Sophos posted the following, based largely on Unu&#8217;s other successful exploits: <i>The Tech Herald is reporting that they have spoken to the Democratic National Committee who deny Obama&#8217;s site was hacked. This is not surprising, and I believe is also incorrect. The usernames all match up with Obama staffers and campaign staff, which if the screenshot posted by Unu was mocked up would be a lot more work than most scammers would bother with.</i> 
<br />Source: <a href="http://www.sophos.com/blogs/chetw/g/2009/10/26/obama-vulnerable-sql-injection-headline/">http://www.sophos.com/blogs/chetw/g/2009/10/26/obama-vulnerable-sql-injection-headline/</a></p>

<h3>So what site did Unu the researcher pop?</h3>

<p>Here is <a href="http://www.roosevelt.edu/calendars/iclCalendar.asp">Roosevelt University’s calendar</a>. We were led here by the keywords showing up in the Pangolin screenshot.  Fingerprinting the calendar application at Roosevelt University shows that it is an Active Server Pages application relying on an MS Access database.  Errors on the calendar application reference the MS Access ODBC driver. So we’ve found the MS Access database in question. One of the admin accounts in the screenshots is id: webmaster pw: calAdmin…, or calendar administrator. Looking at the calendar itself on the Roosevelt U web site, the abbreviation CCL shows up, standing for “Center for Campus Life”.  Looking again at the list of ids, there is a cclschadmin, likely Center for Campus Life scheduling administrator or something similar.</p>

<h3>Why did Unu start at one site and end up popping another?</h3>

<p>Google cache provides us the answer.</p>

<p><div id="attachment_1205" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/google_ru.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/google_ru-300x54.jpg" alt="How the sites are linked." title="google_ru" width="300" height="54" class="size-medium wp-image-1205" /></a><p class="wp-caption-text">How the sites are linked.</p></div>
<br />
For some reason the following URL was valid before Blue State Digital made a fix to have only a specific allow list. The URL will load whatever page follows the /smartproxy/ subdirectory.
<br /><br />

https://donate.barackobama.com/page/smartproxy/www.roosevelt.edu/calendars/iclCalendar.asp

<br /><br />
This not so smart redirect function is perhaps in place to allow webmasters to code pages that refer to resources like images, etc. without having to worry about content hosted on secure (with an SSL certificate) versus unsecure web servers and the browser error messages that come up with mixed content security. Or it may simply be to capture click metrics when people are leaving the site for outside resources. There are a number of reasons people set up such site redirects. Regardless, a web site should almost never allow a user to fill in where the site will redirect to under its own domain. We’ll get into why in the next section.
There is a common resource being referenced in /home/bsdrelease/framework called smartproxy.inc.php. This is identified because on some of the sites created by Blue State Digital (assumed to be the /bsd), are outputting their PHP errors as shown below:</p>

<p><div id="attachment_1203" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/dccorg.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/dccorg-300x198.jpg" alt="Identifying the SmartProxy code as common to all web sites by Blue State Digital" title="dccorg" width="300" height="198" class="size-medium wp-image-1203" /></a><p class="wp-caption-text">Identifying the SmartProxy code as common to all web sites by Blue State Digital</p></div>
<br />
This allows us to identify other web sites with the same architecture. A quick google for /bsdrelease/framework brings up dccc.org, onewisconsinnow.org, udallforcolorado.com, progressivebookclub.com, progressnowcolorado.org, and other Democrat affiliated web sites. So any problem identified in one web site will likely work on the other web sites using the same common code base. In production web sites, PHP’s error reporting should be turned off.</p>

<h3>So what’s the vulnerability?</h3>

<p>It is not nearly as headline grabbing as the potential to steal login credentials from Obama donors, but until it was corrected at some point recently, the ability to redirect to any web site from donate.barackobama.com or any of the other sites mentioned above was not a good thing. Why?</p>

<p>First, it is a common technique of phishers or anyone attempting to get users to input information at a URL to try to make the domain look as legitimate as possible. When a bad actor can send out e-mails that are prefaced with the actual Obama donation site URL, but actually load any other web site to accept information, it makes masquerading as a legitimate web site that much easier.</p>

<p>Second and more important though is that the cookies from any of these web sites can be read by the site that is redirected to, because according to the browser you are still under donate.barackobama.com. On sites that don’t have credentials, like the donate site, this is not really an issue. But other sites in the family, such as my.barackobama.com do accept user registrations, and have login/password authentication.  A cookie called PHPSESSID is set. If a bad actor can get a user to click on a link under the my.barackobama.com domain that actually redirects to his web site, he can read this session cookie, set it himself, and be logged in as that user on the barackobama.com web site. How hard would it be to get logged in users on the site to click a link? You are allowed to set up a blog on the web site, write one story and direct people to a link in the story.</p>

<p>At one point last year, you would not even have had to do that, the community blogs section of the site was redirecting to Hilary Clinton’s web site because of a vulnerability where HTML characters were allowed in the blog entries. This allowed a bad actor to inject Javascript into the pages which would be executed as part of the page load by subsequent users. The Javascript included a redirect, and Barack Obama was now advertising for Hilary Clinton based apparently on the actions of a mischievous Illinoisan.</p>

<h3>Want to try reading your my.barackobama.com session cookie on another web site?</h3>

<p>Create an id at my.barackobama.com. Force the site to redirect using the /smartproxy/, for example: http://my.barackobama.com/page/smartproxy/www.google.com. You’re now on Google, but check out what cookies you can read. There are a number of ways to do this but here is an easy one, a Javascript bookmarklet:</p>

<pre><code>&lt;a href=
         "javascript:(function(){x=window.open();x.document.write(&amp;#39;%3Cht&amp;#39;+&amp;#39;
ml%3E/r%3Che&amp;#39;+&amp;#39;ad%3E%3Ctitle%3EDisplay%20Cookies%3C/title%3E%3C/he&amp;#39;+&amp;#39;ad
%3E%3Cbo&amp;#39;+&amp;#39;dy%3E&amp;#39;);if%20(document.cookie%20==%20&amp;#39;&amp;#39;)%20x.document.write(
&amp;#39;
No%20Cookies%20Found&amp;#39;);%20else%20{thisCookie%20=%20document.cookie.split(&amp;#39;;%20&amp;#39;);
%20for%20(i=0;%20i%3CthisCookie.length;%20i++)%20{x.document.write(thisCookie[i]%20+%20&amp;#39;%3Cb
r%20//%3E&amp;#39;);}}x.document.write(&amp;#39;%3C/bo&amp;#39;+&amp;#39;dy%3E%3C
/ht&amp;#39;+&amp;#39;ml%3E&amp;#39;);x.document.close();})()"&gt;
            Display Cookies&lt;/a&gt;

</code></pre>

<p>To add the bookmarklet, right click on <a href=
         "javascript:(function(){x=window.open();x.document.write(&#39;%3Cht&#39;+&#39;
ml%3E/r%3Che&#39;+&#39;ad%3E%3Ctitle%3EDisplay%20Cookies%3C/title%3E%3C/he&#39;+&#39;ad
%3E%3Cbo&#39;+&#39;dy%3E&#39;);if%20(document.cookie%20==%20&#39;&#39;)%20x.document.write(
&#39;
No%20Cookies%20Found&#39;);%20else%20{thisCookie%20=%20document.cookie.split(&#39;;%20&#39;);
%20for%20(i=0;%20i%3CthisCookie.length;%20i++)%20{x.document.write(thisCookie[i]%20+%20&#39;%3Cb
r%20//%3E&#39;);}}x.document.write(&#39;%3C/bo&#39;+&#39;dy%3E%3C
/ht&#39;+&#39;ml%3E&#39;);x.document.close();})()">
             this link</a> and select Add to Favorites or Bookmark this Link. When on the redirected Google site, click the bookmark you’ve created, you should see your PHPSESSID from the my.barackobama.com web site.</p>

<p>This problem now appears to be fixed for the most part.  <a href="https://donate.barackobama.com/page/smartproxy/www.google.com">Google as a redirect still works</a>, but many other sites at this point will not, producing the following error:</p>

<pre><code><br />ERROR: attempt to proxy page from a host not on the allow list. access denied.

</code></pre>

<p>This would indicate that a white list of allowed hosts has been set up.</p>

<h3>Not the Same Server</h3>

<p>The Tech Herald reported the following earlier today:</p>

<p><i>“Unu has apparently accessed a database on the same server that is unrelated to President Obama’s site…If so, we asked why an SQLi from President Obama’s site allowed access to the Access database…While this is pure speculation on our part, perhaps the DNC is correct. It is possible that Unu has in fact accessed the database for a different site entirely that resides on the same server” </i></p>

<p>Source: <a href="http://www.thetechherald.com/article.php/200944/4682/Researcher-discloses-SQL-Injection-flaw-on-barackobama-com">http://www.thetechherald.com/article.php/200944/4682/Researcher-discloses-SQL-Injection-flaw-on-barackobama-com</a></p>

<p>The Roosevelt University website is hosted in Englewood Colorado by NTT America, the Barack Obama donation website is hosted in Washington, D.C. by Internap Network Services on behalf of Blue State Digital. The web sites are not hosted on the same server.</p>

<h3>Who’s Unu?</h3>

<p>Unu, apparently from Bucuresti Romania, says that for him penetration testing and finding vulnerabilities is a hobby and a passion. His blog, a testament to the results of his hobby, is a compilation of the results of successful SQL Injection attacks against web sites like BNP Paribas, Credit Agricole in France, Royal Bank of Scotland’s WordPay, Poste Italiane (the Italian Postal Service) and others as well as examples of successful parameter manipulation and other web application vulnerabilities.  He appears to practice a version of responsible disclosure in that he has notified the organizations mentioned on the blog and explained the problems. <a href="http://unu1234567.baywords.com/">His blog</a>, and its disclosures, are interesting reading for the security professional and thus we encourage you to have a look.</p>

<p>The site he publishes to is hosted on <a href="http://baywords.com/">Baywords</a>, a blog platform notable in that it was formed to combat what it sees as censorship by other platforms such as WordPress (the platform founders state they set up the service after a friend of theirs was closed down by Wordpress for a TOS violation.</p>

<h3>What is Pangolin?</h3>

<p>Pangolin is an automated SQL Injection tool developed by NOSEC ostensibly to assist in penetration testing. The tool can be used to detect SQL injection vulnerabilities on a web application, and upon detection allow the user to perform certain operations such as DBMS fingerprinting, retrieving user ids and hashes, dump tables, run SQL statements, and so forth. NOSEC is a web site hosted by a firm now called Connaught Cup in Shenzhen, China.</p>

<h3>What is SQL Injection?</h3>

<p>SQL Injection is basically a code injection technique that attempts to get an SQL query to execute via data inputted into a field from the client to the application. For example, let&#8217;s say we have a piece of code like this:</p>

<pre><code>SELECT id
FROM logins
WHERE username = '$username'
AND password = '$password’
</code></pre>

<p>The fields $username and $password are coming from the browser. Our user normally logs in by entering John as user id and &#8216;Password1&#8242; as his password (he shouldn&#8217;t have a weak password like that, but he does). The query analyzes it, sees the $username = John and checks to make sure password = Password1. The password statement evaluates as true, and the web application authenticates or logs in the user.</p>

<p>A bad actor comes along and inputs John as the user id ,but instead of a password he fills in <i>anything&#8217; OR &#8216;x&#8217;='x</i>. Let&#8217;s see how our code evaluates this:</p>

<pre><code>SELECT id
FROM logins
WHERE username = 'Joe'
AND password = 'anything' OR 'x'='x'
</code></pre>

<p>Now the AND password portion of the query is always returning true, not just when the password is actually the correct one. That&#8217;s because we&#8217;ve changed the execution of the query, now it reads that password can equal anything OR x = x.  x will always equal x, they are equivalent values, thus the password = statement evaluates to true and the web application authenticates the user even though a proper password was never supplied.</p>

<p>SQL Injections in practice get much more complex than this, but the basic premise remains the same, attempt to get the web application to execute a SQL query in a way unanticipated by the web site&#8217;s developers in order to get the application to reveal information or perform a database action.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/the-barack-obama-donations-site-was-hacked%e2%80%a6err-no-it-wasn%e2%80%99t/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Microsoft Video ActiveX Control Vulnerability</title>
		<link>http://praetorianprefect.com/archives/2009/07/microsoft-video-activex-control-vulnerability/</link>
		<comments>http://praetorianprefect.com/archives/2009/07/microsoft-video-activex-control-vulnerability/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:04:23 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[ActiveX]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=319</guid>
		<description><![CDATA[Microsoft is recommending setting the kill bit for an ActiveX control object, MPEG2TuneRequest, to avoid an in the wild zero day exploit that allows for remote code execution when a web site containing the exploit is browsed by a user with Internet Explorer.]]></description>
			<content:encoded><![CDATA[<p>Microsoft is recommending setting the kill bit for an ActiveX control object, MPEG2TuneRequest, to avoid an in the wild zero day exploit that allows for remote code execution when a web site containing the exploit is browsed by a user with Internet Explorer.  No user interaction is required for the exploit to be successful once a web site hosting the vulnerability is accessed in the Internet Explorer web browser, and any resultant exploit code is run with the same rights as the local user (so a user running as admin would result in exploit code being run in an admin context for example).  This control is reported by Microsoft as having no legitimate use by IE, and thus there is no reason to wait for a Microsoft patch to disable it.</p>

<h4>Background</h4>

<p>The news hit the web at large on July 6th when Microsoft released advisory <a href="http://www.microsoft.com/technet/security/advisory/972890.mspx">972890</a>. IBM ISS is reporting a first known exploit however on June 11th.  The vulnerability, first reported by researchers Alex Wheeler and Ryan Smith (ISS employees at the time) was first reported to Microsoft in 2008, which has sparked criticism from at least one reporter covering the IT marketplace: <a href="http://www.eweek.com/c/a/Security/Was-Microsoft-Slow-to-Patch-Video-ActiveX-Vulnerability-130458/?kc=rss">eWeek’s Brian Prince</a>.  The problem would have been available since IE version 6, SP1.</p>

<h4>Exploit Details</h4>

<p>The exploit is <a href="http://blogs.technet.com/srd/archive/2009/07/06/new-vulnerability-in-mpeg2tunerequest-activex-control-object-in-msvidctl-dll.aspx">described</a> by MSRC Engineer Chengyun Chu as a “browse and get owned attack vector”.  Once the user navigates to a web site purposely hosting the exploit, or a web site that has been compromised to host the exploit, no further user interaction is required. Examples in the wild (approximately 967 Chinese web sites <a href="http://blog.trendmicro.com/zero-day-microsoft-directshow-mpeg2tunerequest-exploit-leads-to-killav-malware/">according</a> to Trend Micro) are reporting having used both .gif and .jpg files containing the exploit.  The Trend Micro found web sites that redirect the users multiple times, eventually loading a .jpg file with the exploit, which upon being successful loads malware called WORM_KILLAV.AI. This malware, as it is named, terminates antivirus software processes and loads additional malicious code.</p>

<p>The exploit is based on an overflow condition that is created in the msvidctl.dll library when a crafted file is provided as input, causing a handler to be overwritten which then points to the exploit’s shell code, already loaded in the memory heap via <a href="http://en.wikipedia.org/wiki/Heap_spraying">heap spraying</a>. The object that accepts the crafted input, BDATuner.MPEG2TuneRequest.1, is associated with CLSID 0955AC62-BF2E-4CBA-A2B9-A63F772D46CF, and thus this is the primary CLSID for which a kill bit needs to be set. Microsoft however recommends setting the kill bit for all of the ActiveX Control Objects hosted by msvidctl.dll.</p>

<p>As security vendors such as Symantec, ISS, and others are aware of the problem, antivirus and IDS signatures are either available or forthcoming.</p>

<h4>Work Around Details</h4>

<p>Microsoft provides an automated <a href="http://go.microsoft.com/?linkid=9672398">Fix it</a> which entails disabling attempts to instantiate a COM object in Internet Explorer by setting the kill bit for the control in the registry. This involves adding a DWORD value to 45 keys in the registry representing Class Identifiers that relate to Microsoft Video ActiveX Control. More information can be found in the [security advisory] (href=&#8221;http://www.microsoft.com/technet/security/advisory/972890.mspx).</p>

<p>To implement the workaround on a single computer, you can manually enter the DWORD value 1024 (0&#215;00000400) for each of the 45 class IDs or launch this <a href="http://praetorianprefect.com/wp-content/uploads/2009/07/kb972890.txt">reg file</a> with the values.</p>

<p>For an enterprise environment, you have two options to deploy this workaround to your workstations. First, through the use of a computer startup script, you can add the execution of a <a href="http://praetorianprefect.com/wp-content/uploads/2009/07/kb972890.txt">reg file</a> with the values for computers to launch at startup. The second option is to add a custom ADM file to a group policy object which is applied to your workstations. Which option to choose depends on preference and your environment.</p>

<h4>Computer Start-up Script</h4>

<p>You may already have a group policy which has a computer startup script enabled. Add a line which executes this <a href="http://praetorianprefect.com/wp-content/uploads/2009/07/kb972890.txt">reg file</a>. Computer startup script is suggested as the user side startup script runs in the user&#8217;s context, and they may not have permission to modify the keys necessary. You can find more information on configuring computer startup scripts <a href="http://technet.microsoft.com/en-us/library/cc779329(WS.10).aspx">here</a>.</p>

<h4> Custom ADM File in Group Policy</h4>

<p>The challenge with an ADM file for this particular workaround is that each class ID which needs to be modified is designated as a separate key in the registry rather than a value. So, instead of being able to create a single configuration entry in a group policy object which would modify every value, you have to have an option for each key. Fortunately, the leg work has been done in this <a href="http://praetorianprefect.com/wp-content/uploads/2009/07/kb972890.adm">example custom ADM file</a>, which you can cut and paste into a larger file you may already have.</p>

<p>Save the file where your GPO editor can browse to it. In Computer Configuration, Administrative Templates, right click and select Add/Remove templates. Once you add the template, you&#8217;ll have to ensure your filtering is setup to see &#8220;unmanaged&#8221; group policies, which are basically custom ADM entries which tattoo the registry. Under filtering, in your GPO editor, uncheck the option as shown:</p>

<p><div id="attachment_374" class="wp-caption alignnone" style="width: 393px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit23.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit23.jpg" alt="gpedit" title="gpedit23" width="383" height="370" class="size-full wp-image-374" /></a><p class="wp-caption-text">gpedit</p></div><br /></p>

<p>Once the ADM is added, and the filter option is cleared, you will see the configuration entries for the Microsoft Video ActiveX kill bit. Set them all to Enabled as shown:</p>

<p><div id="attachment_377" class="wp-caption alignnone" style="width: 642px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit3.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/07/gpedit3.jpg" alt="gpedit" title="gpedit3" width="632" height="507" class="size-full wp-image-377" /></a><p class="wp-caption-text">gpedit</p></div><br /></p>

<p>Once you link the policy to all your Windows XP and Windows Server 2003 computers, you will have implemented the workaround. </p>

<h4>Active X</h4>

<p>ActiveX, while largely associated with Internet browsing, is not a program that runs inside the browser but rather a technology used throughout the Windows operating system. While only Windows XP and certain configurations of Windows Server 2003 are affected a similar control does exist in Windows Vista and Server 2008 that is not vulnerable.</p>

<h4>Example Exploits</h4>

<p>Both links provide example exploit code:</p>

<ul>
<li><a href="http://www.rec-sec.com/2009/07/06/ms-directshow-msvidctl-exploit/">http://www.rec-sec.com/2009/07/06/ms-directshow-msvidctl-exploit/</a></li>
<li><a href="http://www.csis.dk/en/news/news.asp?tekstID=799">http://www.csis.dk/en/news/news.asp?tekstID=799</a></li>
</ul>

<h4>References</h4>

<ul>
<li><a href="http://www.microsoft.com/technet/security/advisory/972890.mspx">Microsoft Security Advisory (972890)</a></li>
<li><a href="http://blog.trendmicro.com/zero-day-microsoft-directshow-mpeg2tunerequest-exploit-leads-to-killav-malware/">Zero-day MPEG2TuneRequest Exploit Leads to KILLAV</a></li>
<li><a href="http://blogs.technet.com/srd/archive/2009/07/06/new-vulnerability-in-mpeg2tunerequest-activex-control-object-in-msvidctl-dll.aspx">Microsoft Security Research &amp; Defense</a></li>
<li><a href="http://www.symantec.com/connect/blogs/another-unpatched-vulnerability-being-massively-exploited-internet-explorer">Another Unpatched Vulnerability is Being Massively Exploited via Internet Explorer</a></li>
</ul>

<h4>Vulnerability Cross Reference</h4>

<ul>
<li><a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0015">CVE-2008-0015</a></li>
<li>Bugtraq ID: <a href="http://www.securityfocus.com/bid/35558">35558</a></li>
<li>US-CERT Cyber Security Alert: <a href="http://www.us-cert.gov/cas/techalerts/TA09-187A.html">TA09-187A</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/07/turning-an-atm-into-a-slot-machine/">Turning an ATM into a Slot Machine</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</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>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/07/microsoft-video-activex-control-vulnerability/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
