<?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>technoratica &#187; IIS</title>
	<atom:link href="http://gavin.mclelland.ca/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://gavin.mclelland.ca</link>
	<description>The personal blog of a Stealth Mode CEO</description>
	<lastBuildDate>Thu, 10 Dec 2009 19:55:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IIS Service Unavailable aka. Windows Security update kills application pool</title>
		<link>http://gavin.mclelland.ca/2009/12/09/iis-service-unavailable-aka-windows-security-update-kills-application-pool/</link>
		<comments>http://gavin.mclelland.ca/2009/12/09/iis-service-unavailable-aka-windows-security-update-kills-application-pool/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 21:48:54 +0000</pubDate>
		<dc:creator>gavin.mclelland</dc:creator>
				<category><![CDATA[Alerts]]></category>
		<category><![CDATA[CFML]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[Application Pool]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Server 2003 R2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Update]]></category>

		<guid isPermaLink="false">http://gavin.mclelland.ca/?p=70</guid>
		<description><![CDATA[Last night all severs running Windows 2003 R2, IIS6 and ColdFusion/ASP.Net were sabotaged! Actually, any windows based web application making use of the IIS6 application pool was affected and guess who killed them... Havoc is consuming the inter-webs while non-technical users are asking the question who killed my web site? It was the boys over in Redmond, WA. Quite the slip Microsoft. 

Read on for the Solution]]></description>
			<content:encoded><![CDATA[<p>Last night all severs running Windows 2003 R2, IIS6 and ColdFusion/ASP.Net were sabotaged! Actually, any windows based web application making use of the IIS6 application pool was affected and guess who killed them&#8230; Havoc is consuming the inter-webs while non-technical users are asking the question; &#8220;who killed my web site&#8221;?</p>
<p>The answer, It was the boys over in Redmond, WA. Quite the debacle ( <a href="http://images.google.com/images?q=fail+whale">Fail Whale</a> ) for Microsoft.</p>
<p>After installation of the following updates:</p>
<ul>
<li>Security Update for Windows Server 2003 (KB974318)</li>
<li>Windows Malicious Software Removal Tool &#8211; December 2009 (KB890830)</li>
<li>Security Update for Windows Server 2003 (KB973904)</li>
<li>Update for Windows Server 2003 (KB971737)</li>
<li>Update for Windows Server 2003 (KB973917)</li>
<li>Security Update for Windows Server 2003 (KB974392)</li>
<li>Cumulative Security Update for Internet Explorer 8 for Windows Server 2003 (KB976325)</li>
</ul>
<p>We noticed multiple occurrences  the following warnings in the System event viewer:</p>
<blockquote><p>A process serving application pool &#8216;DefaultAppPool&#8217; terminated unexpectedly. The process id was &#8217;3524&#8242;. The process exit code was &#8217;0xffffffff&#8217;.</p></blockquote>
<p>These warnings were immediately followed by a lovely error:</p>
<blockquote><p>Application pool &#8216;DefaultAppPool&#8217; is being automatically disabled due to a series of failures in the process(es) serving that application pool.</p></blockquote>
<p>With these messages at hand it became apparent that one of the Windows Security Updates was to blame. Looking into the specifics of each of the updates I had conluded that the suspect was &#8220;<a href="http://support.microsoft.com/default.aspx/kb/973917">Update for Windows Server 2003 (KB973917)</a>&#8220;.</p>
<p>While I am still working to identify possible solutions for affected servers independently, removing Update 973917 has restored service temporarily for a number of my clients.</p>
<p>Anyone else see the Humor in this?</p>
<p>Take a lesson from this; Windows Automatic Update is kind of like a friend who secretly wants to cause you problems, because its fun&#8230;.</p>
<p><strong>Updated on December, 9 2009 at 1:59pm</strong></p>
<p><a href="http://support.microsoft.com/?kbid=2009746">The official response</a>&#8230; get this; Microsoft wants us to reinstall Service Pack 2 for Windows Server 2003 on the affected installations to bring all IIS6.0 components up to date. Seems like a Cop out to me. Sure it would fix the issue but this is going to cause a lot of man hours for a number of companies.</p>
]]></content:encoded>
			<wfw:commentRss>http://gavin.mclelland.ca/2009/12/09/iis-service-unavailable-aka-windows-security-update-kills-application-pool/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Added SQL Injection attack protection with Rewrite Rules</title>
		<link>http://gavin.mclelland.ca/2008/06/07/added-sql-injection-attack-protection-with-rewrite-rules/</link>
		<comments>http://gavin.mclelland.ca/2008/06/07/added-sql-injection-attack-protection-with-rewrite-rules/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 00:50:03 +0000</pubDate>
		<dc:creator>gavin.mclelland</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://gavin.mclelland.ca/2008/06/07/added-sql-injection-attack-protection-with-rewrite-rules/</guid>
		<description><![CDATA[Sure you can protect against SQL injection attacks at the code layer, but what happens when hackers find something you missed? With Rewrite Rules, using mod_rewrite on apache or ISAPI_Rewrite for IIS, you can add rules to ignore URL based SQL Injection all together. Below is and example of some basic protection you can add. [...]]]></description>
			<content:encoded><![CDATA[<p>Sure you can protect against SQL injection attacks at the code layer, but what happens when hackers find something you missed? With Rewrite Rules, using mod_rewrite on apache or ISAPI_Rewrite for IIS, you can add rules to ignore URL based SQL Injection all together. Below is and example of some basic protection you can add.</p>
<p>In ISAPI_Rewrite</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteRule</span> .*DECLARE.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*NVARCHAR.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*INSERT .* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*INSERT %20.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .* xp_.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*%20xp_.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*%20@.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .* @.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*@%20.* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*@ .* /security-violation.htm [I]
<span style="color: #00007f;">RewriteRule</span> .*<span style="color: #7f007f;">';* /security-violation.htm [I]
RewriteRule .*EXEC<span style="color: #000099; font-weight: bold;">\(</span>@.* /security-violation.htm [I]
RewriteRule .*sp_password.* /security-violation.htm [I]
RewriteRule /security-violation.htm /security.cfm[I,L]</span></pre></div></div>

<p>In mod_rewrite</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">RewriteRule</span> .*DECLARE.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*NVARCHAR.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*INSERT .* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*INSERT %20.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .* xp_.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*%20xp_.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*%20@.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .* @.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*@%20.* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*@ .* /security-violation.htm [NC]
<span style="color: #00007f;">RewriteRule</span> .*<span style="color: #7f007f;">';* /security-violation.htm [NC]
RewriteRule .*EXEC<span style="color: #000099; font-weight: bold;">\(</span>@.* /security-violation.htm [NC]
RewriteRule .*sp_password.* /security-violation.htm [NC]
RewriteRule /security-violation.htm /security.cfm[NC,L]</span></pre></div></div>

<p>Add security.cfm to your webroot:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfoutput</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #000000; font-weight: bold;">h1</span><span style="color: #0000FF;">&gt;</span></span>
HACK ATTEMPT LOGGED FROM IP: <span style="color: #0000FF;">#remote_addr#</span> 
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #000000; font-weight: bold;">h1</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
#DateFormat(Now(), &quot;MM-DD-YYYY&quot;)# @ #TimeFormat(Now(), &quot;HH:MM:SS&quot;)#
&nbsp;
<span style="color: #0000FF;">#script_name#</span>&amp;<span style="color: #0000FF;">#query_string#</span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfoutput</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfmail</span> <span style="color: #0000FF;">to</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Sysadmin&quot;</span> <span style="color: #0000FF;">from</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;Your Website&quot;</span> subject<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;HACK ATTEMPT FROM IP: #remote_addr#&quot;</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
HACK ATTEMPT RECORDED:
&nbsp;
#DateFormat(Now(), &quot;MM-DD-YYYY&quot;)# @ #TimeFormat(Now(), &quot;HH:MM:SS&quot;)#
&nbsp;
IP: <span style="color: #0000FF;">#remote_addr#</span>
&nbsp;
ATTEMPT:
&nbsp;
http://<span style="color: #0000FF;">#server_name#</span><span style="color: #0000FF;">#script_name#</span>&amp;<span style="color: #0000FF;">#query_string#</span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfmail</span><span style="color: #0000FF;">&gt;</span></span>
<span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfabort</span><span style="color: #0000FF;">&gt;</span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://gavin.mclelland.ca/2008/06/07/added-sql-injection-attack-protection-with-rewrite-rules/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
