<?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>Darknet - The Darkside &#187; IIS</title>
	<atom:link href="http://www.darknet.org.uk/tag/iis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darknet.org.uk</link>
	<description>Ethical Hacking, Penetration Testing &#38; Computer Security</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:34:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Microsoft IIS Semicolon Bug Leaves Servers Vulnerable</title>
		<link>http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/</link>
		<comments>http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 04:11:44 +0000</pubDate>
		<dc:creator>Darknet</dc:creator>
				<category><![CDATA[Exploits/Vulnerabilities]]></category>
		<category><![CDATA[Web Hacking]]></category>
		<category><![CDATA[Windows Hacking]]></category>
		<category><![CDATA[hacking-web-servers]]></category>
		<category><![CDATA[hacking-windows]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[iis exploit]]></category>
		<category><![CDATA[iis vulnerability]]></category>
		<category><![CDATA[IIS-hacking]]></category>
		<category><![CDATA[lfi]]></category>
		<category><![CDATA[local file inclusion]]></category>
		<category><![CDATA[microsoft iis bug]]></category>
		<category><![CDATA[microsoft iss]]></category>
		<category><![CDATA[semicolon bug]]></category>
		<category><![CDATA[semicolon hack]]></category>
		<category><![CDATA[web-security]]></category>
		<category><![CDATA[web-server-security]]></category>
		<category><![CDATA[windows-security]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/?p=2383</guid>
		<description><![CDATA[The latest news breaking over the Christmas period is that of a fairly serious bug in IIS that allows local file inclusion (LFI) of any filetype due a bug in the way IIS filters handle semicolons (;). Secunia has confirmed the vulnerability &#8220;on a fully patched Windows Server 2003 R2 SP2 running Microsoft IIS version [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>The latest news breaking over the Christmas period is that of a fairly serious bug in IIS that allows local file inclusion (<a href="http://www.darknet.org.uk/tag/LFI/">LFI</a>) of any filetype due a bug in the way IIS filters handle semicolons (;).</p>
<p><a href="http://secunia.com/advisories/37831/">Secunia has confirmed the vulnerability</a> &#8220;on a fully patched Windows Server 2003 R2 SP2 running Microsoft IIS version 6. Other versions may also be affected&#8221;.</p>
<p>Although oddly it only classifies the bug as &#8220;<em>Less critical</em>&#8221; &#8211; basically a 2/5 on their threat scale.</p>
<blockquote><p>A researcher has identified a vulnerability in the most recent version of Microsoft&#8217;s Internet Information Services that allows attackers to execute malicious code on machines running the popular webserver.</p>
<p>The bug stems from the way IIS parses file names with colons or semicolons in them, according to researcher Soroush Dalili. Many web applications are configured to reject uploads that contain executable files, such as active server pages, which often carry the extension &#8220;.asp.&#8221; By appending &#8220;;.jpg&#8221; or other benign file extensions to a malicious file, attackers can bypass such filters and potentially trick a server into running the malware.</p>
<p>There appears to be some disagreement over the severity of the bug, which Dalili said affects all versions of IIS. While he rated it &#8220;highly critical,&#8221; vulnerability tracker Secunia classified it as &#8220;less critical,&#8221; which is only the second notch on its five-tier severity rating scale.</p></blockquote>
<p>It&#8217;s a pretty nasty bug if you ask me, it means any CMS, forum software or gallery page where users are allowed to upload files (running on IIS) can be owned by a webshell without any effort at all.</p>
<p>Even if an app doesn&#8217;t allow native uploading, LFI can now be executed using another exploit and it will bypass any filtering IIS provides against executable files such as .asp scripts.</p>
<p>I don&#8217;t really see how this bug is &#8220;<em>Less critical</em>&#8221; &#8211; I&#8217;d imagine there&#8217;s some mass pwnage going around the World right now.</p>
<blockquote><p>&#8220;Impact of this vulnerability is absolutely high as an attacker can bypass file extension protections by using a semicolon after an executable extension such as &#8216;.asp,&#8217; &#8216;.cer,&#8217; &#8216;.asa&#8217; and so on,&#8221; Dalili wrote. &#8220;Many web applications are vulnerable against file uploading attacks because of this weakness of IIS.&#8221;</p>
<p>In an email to El Reg, Dalili offered the following attack scenario:</p>
<p>&#8220;Assume a website which only accepts JPG files as the users’ avatars. And the users can upload their avatars on the server. Now an attacker tries to upload &#8220;Avatar.asp;.jpg&#8221; on the server. Web application considers this file as a JPG file. So, this file has the permission to be uploaded on the server. But when the attacker opens the uploaded file, IIS considers this file as an ASP file and tries to execute it by &#8216;asp.dll.&#8217;</p>
<p>&#8220;So, the attacker can upload a web-shell on the server by using this method. Most of the uploaders only control the last part of the files as their extensions, and by using this method, their protection will be bypassed.&#8221;</p></blockquote>
<p><a href="http://www.darknet.org.uk/tag/microsoft/">Microsoft</a> as per usual is &#8216;looking into it&#8217; &#8211; I would guess within a week or so users will be screaming for a patch in the next round of updates planned for January if not sooner.</p>
<p>Although if you are using IIS, I wouldn&#8217;t hold your breath for an out of schedule patch &#8211; we all know what <a href="http://www.darknet.org.uk/2009/10/no-emergency-patch-for-latest-windows-exploit/">Microsoft thinks of those</a>.</p>
<p></p>
<p>Source: <a href="http://www.theregister.co.uk/2009/12/25/microsoft_iis_semicolon_bug/http://www.theregister.co.uk/2009/12/25/microsoft_iis_semicolon_bug/">The Register</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D2383+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;t=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;title=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;title=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;title=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/&amp;title=Microsoft+IIS+Semicolon+Bug+Leaves+Servers+Vulnerable" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2009%2F12%2Fmicrosoft-iis-semicolon-bug-leaves-servers-vulnerable%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>My SQL2005 Diary &#8211; Part1</title>
		<link>http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/</link>
		<comments>http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/#comments</comments>
		<pubDate>Wed, 29 Mar 2006 05:15:11 +0000</pubDate>
		<dc:creator>tonyenkiducx</dc:creator>
				<category><![CDATA[Database Hacking]]></category>
		<category><![CDATA[darknet]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL-Server]]></category>
		<category><![CDATA[SQL-Server-2005]]></category>
		<category><![CDATA[Travel]]></category>
		<category><![CDATA[Upgrading]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/</guid>
		<description><![CDATA[At the place I pretend to work, the time has come that most developers equally fear and love, upgrade time. We&#8217;ve been using MSSQL2000 for 90% of our work for about 4 years now, and it&#8217;s served us well, but when a change as big as 2005 server comes along, you have to make the [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>At the place I pretend to work, the time has come that most developers equally fear and love, upgrade time. We&#8217;ve been using MSSQL2000 for 90% of our work for about 4 years now, and it&#8217;s served us well, but when a change as big as 2005 server comes along, you have to make the leap and upgrade. I suppose a little background is in order, but I&#8217;ll have to keep it fairly general as we have some strict rules on what we talk about with people outside the development team.</p>
<p><strong>What we do now</strong></p>
<p>The company I work for is a travel company, one of the big ones, and as with most big travel companies we do a huge variety of things. We own resorts, broker our own insurance, sell for third parties, sell our own holidays, own/rent cruise ships, provide resort management for small hotels, and many other things, all of which is managed through 3 internal sites. We handle the telephone auto-diallers in the call centre, stock-management at our red-sea resort, the links to the main UK flight database, the payment system, our SMS marketing servers, basically, everything.<br />
We have 3 main centres, our corporate headquarters in America, the headquarters in the UK and 1 huge sales centre in the UK also. In addition to that we have either fixed line or internet linked terminals at all our resorts, most of the major airports, all of which connects to our headquarters in the UK(It&#8217;s an ex-cupboard upstairs). Because of the international nature of our business, and the resort links the sites must run with 100% uptime 24/7, even though they are all internal.</p>
<p>The sites run on a variety of different platforms, but the vast majority run on old style ASP and SQL server 2000, with a heavy focus on SQL server. To put the workload in perspective, our ASP apps use approximately 5% of our server&#8217;s total resources, with SQL server taking the other 95% and another magical 1% running Reporting Services (An excellent application if you&#8217;ve never used it). We have a multitude of databases, but we currently run on 4 SQL servers with the databases split as equally as we can get them to avoid having to deal with load balancing. The databases range greatly in size, from a few MB for the HR database, too over 50GB for the lead details database (Call centre data).</p>
<p><strong>Why were upgrading</strong></p>
<p>Due to the size and complexity of the database, performance is extremely important and we have our indexes and maintenance jobs tuned to absolute perfection or the entire thing would come crashing down around us, and we would have a lot of angry people looking to have our heads. But recently we have hit SQL server 2000&#8242;s &#8220;roof&#8221;, which is one of the reasons MSSQL has never challenged Oracle in the big enterprise market, and its proving a big problem for us. SQL server 7 was never meant to be an enterprise level database server, and in typical MS style a lot of SQL server 2000 has come from that original code, as have a lot of the problems, mainly its inability to handle truly massive database.  2005 fixes this.</p>
<p>SQL server 2000 was also limited in that it handled everything via transactions and locking, so if you want to retrieve data from the database in an editable format you have to basically lock that information so nobody else can access it.  This can cause all kinds of problems, such as one user being told they can&#8217;t perform an action, because their locking themselves (Usually through bad coding) or a deadlock which is data being altered while they are waiting for a lock to end.  2005 borrows from Oracle in that is uses a combination of locking and versioning, which takes a copy of the data, performs the action on it and then puts it back into the database.  This presents its own problems, but it does mean users can always get to their data.</p>
<p>There are also some significant coding changes, including some very cool stuff that is new to database servers as a whole.  The ability to include code from other languages is one of the main talking points, which basically allows you to execute .net code within your stored procs.  This may not sound so great, but you have to consider how it changes the way a DBA will work.  At the moment database code needs to be specific, because speed is always an issue the server has to constantly optimize the way it works, and it can&#8217;t do this with vague and dynamic code.  For example&#8230;</p>
<p><em>Select * from Invoice</em></p>
<p>Would bring back everything from the invoice table.  But what if we just wanted a price field?</p>
<p><em>Select Invoice.Price From Invoice</em></p>
<p>That&#8217;s easy enough.  But what if we wanted the gross price, for example, from insurance items, but the net price for everything else. We would do this(Pseudo-code);</p>
<p><em>Select (if Invoice.catagory = &#8216;INSURANCE&#8217; then Invoice.Gross else Invoice.net end if) from Invoice</em></p>
<p>Again, it looks simple enough, but unfortunately the real code to do this is very complicated and grossly in-efficient at the moment, not to mention completely impossible in certain situations.  In 2005 the method above would be perfectly legal, and using Microsoft&#8217;s CLR compiler to pre-compile the code,  it&#8217;s considered adequate (It&#8217;s still not as good as plain SQL, but its good enough).  This and the performance improvements in the new server would be enough to warrant an upgrade on their own.</p>
<p><strong>What were doing next</strong></p>
<p>We have setup 2 MSDN&#8217;d 2005 servers and mirrored our web server as a test bed for upgrading our code.  Fortunately the vast majority of our code will still work, but to take advantage of the upgrades and new features we will have to re-write vast swathes of code.  And all of our 500+ DTS&#8217;s and jobs will have to be completely re-written.  And then comes the fun of learning an entirely new interpreter and compiler, and tuning it for maximum performance.</p>
<p></p>
<p>I&#8217;ll keep you updated</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=My+SQL2005+Diary+%E2%80%93+Part1+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D130+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;t=My+SQL2005+Diary+%E2%80%93+Part1" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;title=My+SQL2005+Diary+%E2%80%93+Part1" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;title=My+SQL2005+Diary+%E2%80%93+Part1" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;title=My+SQL2005+Diary+%E2%80%93+Part1" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/&amp;title=My+SQL2005+Diary+%E2%80%93+Part1" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2006%2F03%2Fmy-sql2005-diary-part1%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2006/03/my-sql2005-diary-part1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

