<?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>Gabe Hilado&#039;s SharePoint &#38; ASP.NET Blog &#187; Security</title>
	<atom:link href="http://spdeveloper.net/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://spdeveloper.net</link>
	<description>Microsoft, SharePoint, ASP.NET, Software Solutions</description>
	<lastBuildDate>Thu, 29 Sep 2011 15:13:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>MS10-070 out &#8211; addresses ASP.NET Padding Oracle Attack Vulnerability</title>
		<link>http://spdeveloper.net/2010/09/ms10-070-addresses-aspnet-padding-oracle-attack-vulnerability/</link>
		<comments>http://spdeveloper.net/2010/09/ms10-070-addresses-aspnet-padding-oracle-attack-vulnerability/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 20:48:02 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=373</guid>
		<description><![CDATA[Microsoft came out today with an out-of-band security update for the ASP.NET Padding Oracle Attack Vulnerability. If you didn&#8217;t perform the recommended workaround last week (when this vulnerability was disclosed) because you thought the Microsoft update was going to come out soon&#8211;well, I think you got lucky today now that the update is out. BUT, I hope [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft came out today with an out-of-band security update for the <a href="http://spdeveloper.net/2010/09/security-advisory-2416728-released-asp-net-vulnerability/">ASP.NET Padding Oracle Attack Vulnerability</a>. If you didn&#8217;t perform the <a href="http://spdeveloper.net/2010/09/asp-net-vulnerability-homogenize-the-response-codes/">recommended workaround</a> last week (when this vulnerability was disclosed) because you thought the Microsoft update was going to come out soon&#8211;well, I think you got lucky today now that the update is out. BUT, I hope your public ASP.NET sites didn&#8217;t get exploited during all that time! Now that the update is out, you should look into the following Microsoft Security Bulletin as soon as possible:</p>
<p><a href="http://www.microsoft.com/technet/security/bulletin/MS10-070.mspx">http://www.microsoft.com/technet/security/bulletin/MS10-070.mspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/09/ms10-070-addresses-aspnet-padding-oracle-attack-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET Vulnerability Workaround &#8211; Homogenize the App&#8217;s Response Codes</title>
		<link>http://spdeveloper.net/2010/09/asp-net-vulnerability-homogenize-the-response-codes/</link>
		<comments>http://spdeveloper.net/2010/09/asp-net-vulnerability-homogenize-the-response-codes/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 21:28:48 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IIS 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=366</guid>
		<description><![CDATA[Yesterday, I blogged about the newest ASP.NET Vulnerability. As of this writing, there is still no patch for the ASP.NET Security Advisory 2416728. If the detection tool as part of the workaround provided by Microsoft reports that your apps are okay, then you don’t have nothing to worry about—just wait for the security update (what [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I blogged about the <a href="http://spdeveloper.net/2010/09/security-advisory-2416728-released-asp-net-vulnerability">newest ASP.NET Vulnerability</a>. As of this writing, there is still no patch for the <a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx" target="_blank">ASP.NET Security Advisory 2416728</a>. If the <a href="http://blogs.technet.com/b/srd/archive/2010/09/17/understanding-the-asp-net-vulnerability.aspx" target="_blank">detection tool as part of the workaround</a> provided by Microsoft reports that your apps are okay, then you don’t have nothing to worry about—just wait for the security update (what else can you do?).</p>
<p>Now, if the detection tool reports that your apps are vulnerable, and the apps are public-facing (on the Web), you will really want to consider the workaround.</p>
<p>The emphasis of the workaround is to “<strong>homogenize the error codes</strong>”. The exploit relies on error codes returned by the application to an attacker. The more differentiated the error codes, the more it learns about the encryption, and the better chance it has on cracking the encryption (read-up on “Padding Oracle Attack”).</p>
<p>I created a stripped-down test ASP.NET Web application project that initially has <strong>customErrors=&#8221;Off&#8221;</strong>. Within the project, I created pages that will deliberately throw errors. I have a “Divide by Zero” page, a “Throw Error” page, a “View State Exception” page, and a link from the default page to a non-existent page. I used Fiddler to monitor the traffic to and from the app while customErrors=&#8221;Off&#8221;. Next, I apply <a href="http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx" target="_blank">Scott Guthrie’s ASP.NET workaround</a> for this vulnerability. I set <strong>customErrors=&#8221;On&#8221;</strong> and initially, I use <strong>redirectMode=&#8221;ResponseRedirect&#8221;</strong>. The <strong>HTTP 500</strong> response codes disappeared but there are still HTTP 302 (redirect) responses. See the evolution of the response codes as I changed the customErrors section:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/09/Fiddler-with-mixed-error-codes.jpg"><img class="aligncenter size-full wp-image-367" title="Fiddler Screenshot of Mixed Error-Codes" src="http://spdeveloper.net/wp-content/uploads/2010/09/Fiddler-with-mixed-error-codes.jpg" alt="Fiddler Screenshot of Mixed Error-Codes" width="764" height="390" /></a></p>
<p><strong>customErrors=&#8221;On&#8221;</strong> starts at line 13 in the screenshot above. No more HTTP 500 once customErrors was turned on. However, there are still HTTP 302, which may clue-in the attacker that an error occurred and hence the redirect to a generic page.</p>
<p>So we change the customErrors element once more time. I set <strong>redirectMode=&#8221;ResponseRewrite&#8221;</strong>:</p>
<pre class="brush: xml;">   

&lt;customErrors mode=&quot;On&quot; defaultRedirect=&quot;fatwhale.htm&quot; redirectMode=&quot;ResponseRewrite&quot; /&gt;
</pre>
<p>(By the way, in case you’re wondering what the “fatwhale.htm” page is, it is in reference to the <a href="http://farm3.static.flickr.com/2006/2535960917_b589357e4d.jpg" target="_blank">twitter whale</a> whenever twitter service gets overloaded.)</p>
<p>After setting redirectMode=”ResponseRewrite”, the traffic captured by Fiddler shows that everything is consistently HTTP 200, even though we know that run-time errors were occurring on the individual pages:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/09/Fiddler-homogenized-HTTP-codes.jpg"><img class="size-full wp-image-368 alignnone" title="Fiddler Screenshot - All HTTP 200 Response" src="http://spdeveloper.net/wp-content/uploads/2010/09/Fiddler-homogenized-HTTP-codes.jpg" alt="Fiddler Screenshot - All HTTP 200 Response" width="444" height="289" /></a></p>
<p>Scott responded to some of the comments in his blog post and he strongly encouraged people to homogenize the response/error codes. The Fiddler screenshots I showed above is what I think Scott Gu means by “homogenizing the codes”.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/09/asp-net-vulnerability-homogenize-the-response-codes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Security Advisory 2416728 Released &#8211; ASP.NET Vulnerability</title>
		<link>http://spdeveloper.net/2010/09/security-advisory-2416728-released-asp-net-vulnerability/</link>
		<comments>http://spdeveloper.net/2010/09/security-advisory-2416728-released-asp-net-vulnerability/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 02:55:08 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[IIS 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=358</guid>
		<description><![CDATA[I&#8217;ve been wanting to write this earlier today but it was a typical busy Monday. It&#8217;s about the recently published vulnerability in ASP.NET. I was looking at my twitter feeds this past Sunday to see what people I’m following are up to. I came across Tom Resing’s tweet about Security Advisory 2416728. The advisory came [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been wanting to write this earlier today but it was a typical busy Monday. It&#8217;s about the recently published vulnerability in ASP.NET. I was looking at my twitter feeds this past Sunday to see what people I’m following are up to. I came across <a href="http://twitter.com/resing" target="_blank">Tom Resing</a>’s tweet about <strong><a href="http://blogs.technet.com/b/msrc/archive/2010/09/17/security-advisory-2416728-released.aspx" target="_blank">Security Advisory 2416728</a></strong>. The advisory came out Friday night (September 17) but I didn&#8217;t read about it till yesterday. I looked into it and was troubled by what was described in the article. In the article, it says;</p>
<blockquote><p><em>At this time we are not aware of any attacks using this vulnerability and we <strong>encourage customers to review the advisory for mitigations and workarounds</strong>.</em></p></blockquote>
<p>Oh yeah, add the fact that the article starts with:</p>
<blockquote><p><em>Today we released </em><a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx"><em>Security Advisory 2416728</em></a><em> describing a<strong> publicly disclosed vulnerability</strong> in ASP.NET that affects all versions of the .NET Framework.</em></p></blockquote>
<p>If those lines don’t get your attention, I don’t know what will!</p>
<p>A detection script was made available also at the TechNet article “<a href="http://blogs.technet.com/b/srd/archive/2010/09/17/understanding-the-asp-net-vulnerability.aspx" target="_blank">Understanding the ASP.NET Vulnerability</a>”. The script is ran as a VBScript and will report all Web app configurations that are vulnerable. If your apps are not vulnerable, the script will report “OK” on the app. The report looks like the following:</p>
<p><span style="font-family: Courier New; font-size: 0.9em;">Microsoft (R) Windows Script Host Version 5.6<br />
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. </span></p>
<p><span style="font-family: Courier New; font-size: 0.9em;">Enumerating possible paths with ASP.Net configuration that have custom errors turned off. </span></p>
<p><span style="font-family: Courier New; font-size: 0.9em;">C:\inetpub\wwwroot\web.config: ** Vulnerable configuration found **<br />
C:\Inetpub\wwwroot\TestApp1\web.config: ** Vulnerable configuration found **<br />
C:\Inetpub\wwwroot\wss\VirtualDirectories\2639\wpresources\web.config: ** Vulnerable configuration found **<br />
C:\Inetpub\wwwroot\wss\VirtualDirectories\4444\web.config: ** Vulnerable configuration found **<br />
C:\Inetpub\wwwroot\TestApp2\web.config: ok</span></p>
<p>If your app shows “Vulnerable configuration found”, then the Security Advisory is applicable for that app. You want to see “ok” like in the last line of the example above.</p>
<p>The vulnerability is called <strong><a href="http://blogs.iis.net/nazim/archive/2010/09/18/asp-net-zero-day-vulnerability-padding-oracle-exploit.aspx" target="_blank">“Padding Oracle Exploit”</a></strong>. The attacker will attempt to send tampered data to the web server and the web server will generate error messages. As more error codes get returned to the attacker for the tampered requests, the attacker can learn what the encryption is. Once the encryption is compromised, the exploit beings. This vulnerability will allow an attacker to read data, even encrypted ones such as data stored in the View State, and even download files such as the <strong>web.config</strong> file from the target server. (But requests for web.config files cannot be served by IIS, right???) Scott Guthrie <a href="http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx" target="_blank">explains in his blog</a> how this vulnerability works. Scott also explains how to workaround this issue. Before a patch or security update appears, this is the best tool against the exploit provided by Microsoft.</p>
<p>You say “But I never store sensitive information in the View State!” Well, read on. In the <a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx" target="_blank">Microsoft TechNet Security Advisory</a> (and even <a href="http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx" target="_blank">Scott’s blog post</a>), the workaround’s main theme is homogenizing the error page. The TechNet security advisory says “<em><strong>Homogenizing errors is a crucial component to help protect against this attack</strong></em>.” This means turning <strong>customErrors</strong> to “On” and explicitly specifying the <strong>defaultRedirect</strong> page. For full details, please read Scott Guthrie’s blog post.</p>
<p>Now, you might say, this is just another over-hyped, exaggerated propaganda by the Microsoft haters. Well you can throw that argument out the window since it is Microsoft itself that is telling its customers about the vulnerability. There is also a <a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3332" target="_blank">Common Vulnerabilities and Exposure entry</a> for this. The CVE entry says it just has a “candidate” status on it right now and may even be “rejected in the future”.  Is that grounds for ignoring it because it’s just a “candidate” CVE entry? Is it really worth ignoring because the probability and severity of the exploit has not been fully established yet? For public-facing sites, I recommend you implement the workaround as soon as possible. The workaround is fairly cheap to implement—just do it! There will be many apps that will be fine and no workarounds would be necessary (their customErrors configuration is already protected against this exploit). But if the detection tool above says “vulnerable” on your site, and the site is public facing, all I can say is “Wow!” should you decide to ignore it.</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/09/security-advisory-2416728-released-asp-net-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You can&#8217;t create Web Applications in Central Admin even if you are Farm Admin</title>
		<link>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/</link>
		<comments>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 19:43:38 +0000</pubDate>
		<dc:creator>Gabe Hilado</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://spdeveloper.net/?p=321</guid>
		<description><![CDATA[Situation: you finished installing SharePoint 2010 on Windows 7. You have ran the SharePoint Products Configuration Wizard. You are finally inside Central Administration 2010 and was surprised that creating new Web Applications is disabled: What the heck?? You thought you were admin! You check the Farm Administrators list and your account is there. So, what [...]]]></description>
			<content:encoded><![CDATA[<p>Situation: you finished installing <strong>SharePoint 2010 on Windows 7.</strong> You have ran the SharePoint Products Configuration Wizard. You are finally inside Central Administration 2010 and was surprised that creating new Web Applications is disabled:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincantcreatewebapps.png"><img style="display: inline; border: 0px;" title="central-admin-FarmAdmin-cant-create-web-apps" src="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincantcreatewebapps_thumb.png" border="0" alt="central-admin-FarmAdmin-cant-create-web-apps" width="643" height="366" /></a></p>
<p>What the heck?? You thought you were admin! You check the Farm Administrators list and your account is there. So, what gives??</p>
<p><a href="http://technet.microsoft.com/en-us/magazine/2009.07.uac.aspx" target="_blank">Windows User-Access-Control</a> is getting in the way. Although your account is Farm admin, because of UAC, you’re still not permitted to do stuff in Central Admin like create new Web apps. The fix? <a href="http://support.microsoft.com/kb/975787" target="_blank"><strong>Disable UAC</strong></a> and reboot Windows. After reboot, you should be able to create new Web apps:</p>
<p><a href="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincancreatewebapps.png"><img style="display: inline; border: 0px;" title="central-admin-FarmAdmin-can-create-web-apps" src="http://spdeveloper.net/wp-content/uploads/2010/06/centraladminFarmAdmincancreatewebapps_thumb.png" border="0" alt="central-admin-FarmAdmin-can-create-web-apps" width="658" height="375" /></a></p>
<p><strong><span style="text-decoration: underline;"><span style="color: #ff0000;">Caution</span></span></strong>: after you have created your Web apps and Site collections in Central Admin, turn on the UAC again and reboot. Turning off UAC for good is not recommended even if it’s annoying.  If you permanently turn off UAC, malware might have a chance to install in your PC (you are admin, no prompts for system mods—yikes!!)</p>
]]></content:encoded>
			<wfw:commentRss>http://spdeveloper.net/2010/06/you-cant-create-web-applications-in-central-admin-even-if-youre-farm-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

