<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/MU" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Oh, Gimme a Break, Willya?!? Some Details Would be Useful - WPAD</title>
	<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/</link>
	<description>Written by Dr Thomas W Shinder, consultant to Microsoft, HP and many Fortune 500 companies on ISA firewall and Web proxy deployments this blog is where administrators get information about ISA Server Universal Threat Management firewalls. Topics include how to manage, deploy, and troubleshoot ISA Server as a network firewall, Web proxy/Web cache, remote access VPN server and VPN gateway to provide a high level of network security for all corporate computers.</description>
	<pubDate>Fri, 10 Oct 2008 23:09:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>

	<item>
		<title>by: Jim Harrison</title>
		<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84227</link>
		<pubDate>Sun, 01 Apr 2007 23:03:21 +0000</pubDate>
		<guid>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84227</guid>
					<description>1) looking forward to them - the blog might have seemed less nasty if this were available and referenced in the linked article

2) I have no doubt that you speak from real experieence, but in fact, it's not &quot;the default&quot; as the original article seems to indicate.

3) user-agents don't necessarily mean &quot;direct to service&quot; ot &quot;IE-handled&quot; HTTP traffic; it's a simple matter to specify the user-agent to be used by both WinInet and WinHTTP.  My http_test script does exactly that.

Also, you seem to be hung up on the &quot;user creds&quot;.  Yes; you can get the domain\username, and from that, a dictionary attack is far more plausible, but by default, you can't &quot;use&quot; NTLM credentials anywhere except where they are provided.  As far as what you can do with those credentials, that's dependent on the trust level applied to your malicious web/proxy server by the domain.  If you're able to get this machine trusted for delegation, you are either an internal admin or the domain was already compromised.

Yes; the question of grabbing credentials off the wire is a bad one (part of the MITM scenario I listed as part of the threat groups), but ignoring the potential for a malicious wpad seems a bit short-sighted, IMHO.  Anyone with the skills to register a fake wpad and deploy a credentials-grabbing web server should be expected to also have the skills to write the basic JScript that comprises every WPAD.dat (the default request for any wpad-consuming client) script ever created.  From here, our enterprising jerk can do much more than simply snatch NTLM credentials; they can monitor the traffic sent between the client and the real proxy or upstream server.  In this way, they can operate much longer without attracting attention.  A credentials-grabbing web site that simpy disconnects after authenticating the user is going to attract attention as the Internet access stops dead.

I'm not arguing that the mitigation steps are invalid - in fact, they'll work exactly as described.  My issue is with the minimalist nature of the article (ok; maybe &quot;gimme a break&quot; was a bit much, but Jertemy really torqued my screws).  There are few things I hate more than &quot;just enough information to cause too much concern&quot;.  The article spent more time on &quot;looky mommy!&quot; than it did with &quot;this is a good, easy answer&quot;.

Sorry, Dan - ISA does not (never did) &quot;register&quot; anything in DNS, WINS, or DHCP.  If you observed this in your environment, it is because a human made it so.  If you mean ISA responds to requests for &quot;http://isaserver/wpad.dat&quot; or &quot;http://isaserver/wspad.dat&quot;, that's a different matter and even then, this doesn't happen by default; enabling a response to this specific request also requires human intervention (enabling auto-discovery).

Looking forward to the article just the same (or maybe more)...</description>
		<content:encoded><![CDATA[<p>1) looking forward to them - the blog might have seemed less nasty if this were available and referenced in the linked article</p>
<p>2) I have no doubt that you speak from real experieence, but in fact, it&#8217;s not &#8220;the default&#8221; as the original article seems to indicate.</p>
<p>3) user-agents don&#8217;t necessarily mean &#8220;direct to service&#8221; ot &#8220;IE-handled&#8221; HTTP traffic; it&#8217;s a simple matter to specify the user-agent to be used by both WinInet and WinHTTP.  My http_test script does exactly that.</p>
<p>Also, you seem to be hung up on the &#8220;user creds&#8221;.  Yes; you can get the domain\username, and from that, a dictionary attack is far more plausible, but by default, you can&#8217;t &#8220;use&#8221; NTLM credentials anywhere except where they are provided.  As far as what you can do with those credentials, that&#8217;s dependent on the trust level applied to your malicious web/proxy server by the domain.  If you&#8217;re able to get this machine trusted for delegation, you are either an internal admin or the domain was already compromised.</p>
<p>Yes; the question of grabbing credentials off the wire is a bad one (part of the MITM scenario I listed as part of the threat groups), but ignoring the potential for a malicious wpad seems a bit short-sighted, IMHO.  Anyone with the skills to register a fake wpad and deploy a credentials-grabbing web server should be expected to also have the skills to write the basic JScript that comprises every WPAD.dat (the default request for any wpad-consuming client) script ever created.  From here, our enterprising jerk can do much more than simply snatch NTLM credentials; they can monitor the traffic sent between the client and the real proxy or upstream server.  In this way, they can operate much longer without attracting attention.  A credentials-grabbing web site that simpy disconnects after authenticating the user is going to attract attention as the Internet access stops dead.</p>
<p>I&#8217;m not arguing that the mitigation steps are invalid - in fact, they&#8217;ll work exactly as described.  My issue is with the minimalist nature of the article (ok; maybe &#8220;gimme a break&#8221; was a bit much, but Jertemy really torqued my screws).  There are few things I hate more than &#8220;just enough information to cause too much concern&#8221;.  The article spent more time on &#8220;looky mommy!&#8221; than it did with &#8220;this is a good, easy answer&#8221;.</p>
<p>Sorry, Dan - ISA does not (never did) &#8220;register&#8221; anything in DNS, WINS, or DHCP.  If you observed this in your environment, it is because a human made it so.  If you mean ISA responds to requests for &#8220;http://isaserver/wpad.dat&#8221; or &#8220;http://isaserver/wspad.dat&#8221;, that&#8217;s a different matter and even then, this doesn&#8217;t happen by default; enabling a response to this specific request also requires human intervention (enabling auto-discovery).</p>
<p>Looking forward to the article just the same (or maybe more)&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dan Kaminsky</title>
		<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84207</link>
		<pubDate>Sun, 01 Apr 2007 20:52:31 +0000</pubDate>
		<guid>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84207</guid>
					<description>1) The details of the work were publicly presented; I'll try to get the slides up shortly.  Send me an email and I'll send you a copy.

2) I've been to quite a few places where a machine can get into the namespace simply by turning on.  Usually, this is because of WINS, but DHCP-&amp;#62;DNS is seen as well (better compatibility with non-Windows systems).  Here's the requirements:

   a) Must be easy to register names anonymously
   b) Must not have WPAD name already registered
   c) Must have Windows machines on network

3) They're WPAD aware, but not WPAD by default.  In the field, when you turn on the WPAD spoofer, you get lots of Windows services (remember, they have Agent strings), a number of IE browsers, and no Firefox.

Now, lets get to your next paragraph.  You most certainly are splitting hairs:  Yes, all I can register is an address, but at that address, all I need to put is a web server hosting a single text file.  That address can be anywhere on the Internet -- if for some strange reason I didn't want to put a web server on the actual network, I could put it off in Malaysia and clients would go grab their proxy script from there.  &quot;An attacker would have to know how to put up a web server and a proxy server&quot; is not exactly a high bar to jump.

WU will probably use machine creds, but CryptoAPI runs as the user (in some cases, anyway).

I'm not sure why you keep harping on MITM.  This isn't like the old school MITM's where I need to break into routers or get into the physical path.  This is like FX's attacks back in 2003, where I could attack spanning trees on switches and get myself onto any VLAN I wanted, company-wide.  Any port, even in the lobby, and I win.  That's not so good.

The only &quot;fact&quot; you're really attacking is that the wpad.dat file is stored directly in DNS.  OK, fine.  There's a layer of indirection that the reporter missed.  But &quot;Oh gimme a break, willya?&quot; is a bit much.  At the end of the day:

1)  I do this.
2)  I take over Google, and get NTLM user creds from lots of people.
3)  You read the news article.
4)  You follow the steps in the KB article.
5)  I can't do this anymore.

This seems like a good outcome.  This entire blog post seems to say, &quot;The threat is overblown, you shouldn't register these names&quot;, and I believe that's a disservice to good security administration.

BTW, I know ISA Server registers WSPAD; are you sure it doesn't register WPAD too?</description>
		<content:encoded><![CDATA[<p>1) The details of the work were publicly presented; I&#8217;ll try to get the slides up shortly.  Send me an email and I&#8217;ll send you a copy.</p>
<p>2) I&#8217;ve been to quite a few places where a machine can get into the namespace simply by turning on.  Usually, this is because of WINS, but DHCP-&gt;DNS is seen as well (better compatibility with non-Windows systems).  Here&#8217;s the requirements:</p>
<p>   a) Must be easy to register names anonymously<br />
   b) Must not have WPAD name already registered<br />
   c) Must have Windows machines on network</p>
<p>3) They&#8217;re WPAD aware, but not WPAD by default.  In the field, when you turn on the WPAD spoofer, you get lots of Windows services (remember, they have Agent strings), a number of IE browsers, and no Firefox.</p>
<p>Now, lets get to your next paragraph.  You most certainly are splitting hairs:  Yes, all I can register is an address, but at that address, all I need to put is a web server hosting a single text file.  That address can be anywhere on the Internet &#8212; if for some strange reason I didn&#8217;t want to put a web server on the actual network, I could put it off in Malaysia and clients would go grab their proxy script from there.  &#8220;An attacker would have to know how to put up a web server and a proxy server&#8221; is not exactly a high bar to jump.</p>
<p>WU will probably use machine creds, but CryptoAPI runs as the user (in some cases, anyway).</p>
<p>I&#8217;m not sure why you keep harping on MITM.  This isn&#8217;t like the old school MITM&#8217;s where I need to break into routers or get into the physical path.  This is like FX&#8217;s attacks back in 2003, where I could attack spanning trees on switches and get myself onto any VLAN I wanted, company-wide.  Any port, even in the lobby, and I win.  That&#8217;s not so good.</p>
<p>The only &#8220;fact&#8221; you&#8217;re really attacking is that the wpad.dat file is stored directly in DNS.  OK, fine.  There&#8217;s a layer of indirection that the reporter missed.  But &#8220;Oh gimme a break, willya?&#8221; is a bit much.  At the end of the day:</p>
<p>1)  I do this.<br />
2)  I take over Google, and get NTLM user creds from lots of people.<br />
3)  You read the news article.<br />
4)  You follow the steps in the KB article.<br />
5)  I can&#8217;t do this anymore.</p>
<p>This seems like a good outcome.  This entire blog post seems to say, &#8220;The threat is overblown, you shouldn&#8217;t register these names&#8221;, and I believe that&#8217;s a disservice to good security administration.</p>
<p>BTW, I know ISA Server registers WSPAD; are you sure it doesn&#8217;t register WPAD too?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jim Harrison</title>
		<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84101</link>
		<pubDate>Sun, 01 Apr 2007 03:18:56 +0000</pubDate>
		<guid>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84101</guid>
					<description>Dan,

The article that spawned this blog lists nothing of any work performed by anyone at all.  The focus of this missive is the manner in which the issue is raised and discussed; the discussion around the issues and threat model are merely &quot;first-run&quot;.  I have no doubt that more time spent digging can certainly result in more interesting scenarios.

1) Since any collaboration between IOA and MS on this issue is covered under NDA, it's clearly not subject for discussion in a public forum; much less a ComputerWorld article and is therefore inarguable for either side here.  If the details of this work become public, then perhaps we can argue specific points.

2) Windows DHCP servers will behave according to the way they're configured.  Yes, by default, DHCP will attempt to register DNS records, but 99.444% of the time, this fails because most admins don't understand the required steps to take to make this work.  By defualt, it does not work, making this question moot.  There are specific steps that have to be taken to make this process function correctly, and therefore, the DHCP registration of DNS-based WPAD records is much less of a threat.  There is no argument that WINS provides absolutely no protection against malicious name registrations.

3) IE is not the only wpad-consuming browser.  I've personally tested Firefox and Netscape (8x or greater) and found them both to be wpad-aware.  Whether this exists by default or not is orthogonal.  If your applications seek a wpad name record, they're potentially vulnerable.  FF will also provide NTLM credentials to the requesting site or proxy in the local network.  This is the way this stuff was designed to operate. 

No one is splitting any hairs; the core of this threat is that the client uses the WPAD DNS / WINS name query to locate the host where it can acquire a script that causes it to act in accordance with EvilWPADDood's wishes.  Take the IE example, since it's the favored here.  IE will attempt to acquire a script from the host referenced by a successful wpad name query.  If this script cannot be obtained, or the script execution results in an error, IE will choose &quot;direct&quot; and move forward on that basis; as will FF and NS.   Unless the client acquires a functional script that redirects them to a malicious host (MITM proxy, etc.), the &quot;attack&quot; is little more than a DoS.  Yes; the earlier you can prevfent this attack, the better, but the point is that the name registrations alone constitute a small threat.

Windows Update and CryptoAPI use the credentials available to them; if no one is logged on, they use machine or service account credentials (the main part of WU pain for those who force authentication at their ISA).  FWIW, the credentials theft question falls sqaurely into the MITM category outlined in the blog.

No one is trying to discount Chris' work.  What's being discounted is a poorly-researched and -written news article that combines a vagure reference to a KB with inaccurate &quot;facts&quot;.  I'll be very interested in seeing how deep you and Chris have taken the attack methodology.

BTW, ISA creates no WPAD registrations whatsoever; this is performed by the network admin or not at all.</description>
		<content:encoded><![CDATA[<p>Dan,</p>
<p>The article that spawned this blog lists nothing of any work performed by anyone at all.  The focus of this missive is the manner in which the issue is raised and discussed; the discussion around the issues and threat model are merely &#8220;first-run&#8221;.  I have no doubt that more time spent digging can certainly result in more interesting scenarios.</p>
<p>1) Since any collaboration between IOA and MS on this issue is covered under NDA, it&#8217;s clearly not subject for discussion in a public forum; much less a ComputerWorld article and is therefore inarguable for either side here.  If the details of this work become public, then perhaps we can argue specific points.</p>
<p>2) Windows DHCP servers will behave according to the way they&#8217;re configured.  Yes, by default, DHCP will attempt to register DNS records, but 99.444% of the time, this fails because most admins don&#8217;t understand the required steps to take to make this work.  By defualt, it does not work, making this question moot.  There are specific steps that have to be taken to make this process function correctly, and therefore, the DHCP registration of DNS-based WPAD records is much less of a threat.  There is no argument that WINS provides absolutely no protection against malicious name registrations.</p>
<p>3) IE is not the only wpad-consuming browser.  I&#8217;ve personally tested Firefox and Netscape (8x or greater) and found them both to be wpad-aware.  Whether this exists by default or not is orthogonal.  If your applications seek a wpad name record, they&#8217;re potentially vulnerable.  FF will also provide NTLM credentials to the requesting site or proxy in the local network.  This is the way this stuff was designed to operate. </p>
<p>No one is splitting any hairs; the core of this threat is that the client uses the WPAD DNS / WINS name query to locate the host where it can acquire a script that causes it to act in accordance with EvilWPADDood&#8217;s wishes.  Take the IE example, since it&#8217;s the favored here.  IE will attempt to acquire a script from the host referenced by a successful wpad name query.  If this script cannot be obtained, or the script execution results in an error, IE will choose &#8220;direct&#8221; and move forward on that basis; as will FF and NS.   Unless the client acquires a functional script that redirects them to a malicious host (MITM proxy, etc.), the &#8220;attack&#8221; is little more than a DoS.  Yes; the earlier you can prevfent this attack, the better, but the point is that the name registrations alone constitute a small threat.</p>
<p>Windows Update and CryptoAPI use the credentials available to them; if no one is logged on, they use machine or service account credentials (the main part of WU pain for those who force authentication at their ISA).  FWIW, the credentials theft question falls sqaurely into the MITM category outlined in the blog.</p>
<p>No one is trying to discount Chris&#8217; work.  What&#8217;s being discounted is a poorly-researched and -written news article that combines a vagure reference to a KB with inaccurate &#8220;facts&#8221;.  I&#8217;ll be very interested in seeing how deep you and Chris have taken the attack methodology.</p>
<p>BTW, ISA creates no WPAD registrations whatsoever; this is performed by the network admin or not at all.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dan Kaminsky</title>
		<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84095</link>
		<pubDate>Sun, 01 Apr 2007 02:14:54 +0000</pubDate>
		<guid>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84095</guid>
					<description>Tom--

   No, it's a little worse.  My apologies though, I don't think Chris Paget has posted the slides from Shmoocon on the IOActive website yet.

   A couple things you've missed:

   1) IOA worked rather closely with Microsoft on this issue, in finding it, in measuring the impact, and in developing the fix.
   2) DHCP servers will commonly register entries in DNS for anonymous parties.  WINS of course will also do such registrations.  They're both pretty good at blocking registrations of existing records.  It's when there is no record, that a problem happens.  Unfortunately, very few places have WPAD registrations, so it's easy to take the name.
   3) IE will happily provide NTLM credentials to any proxy, and any site that requests it.  Furthermore, WPAD attackers get access to the Local Intranet zone, exacerbating the impact of a vulnerability in the browser.

    You're splitting hairs with wpad.dat.  DNS and WINS provide the address from which to download wpad.dat.  Also, IE is in fact the only browser to enable WPAD by default, though in normal usage it should disable itself.  This disabling doesn't appear to be completely perfect, though, and won't cover new users that show up post-infection.  It also does not cover various Window services, such as Windows Update or CryptoAPI, which will continue to acquire WPAD resources and will provide NTLM credentials to an attacker.

   Again, let me repeat that:  IE and Window Services are fundamentally more vulnerable to the WPAD issue, because only they have scenarios that enable WPAD by default.  Please let us know if you find anything else!

   Your faith in discoverability is also misplaced.  As an attacker, I can add and remove registrations at will, in both DHCP and WINS.  I showed three years ago how easy it is to tunnel massive amounts of data with DNS; three years later, it's still a trivial way to tunnel through wireless access points.  People monitor what they know to worry about; the reality is that this wasn't on anyone's radar to even be aware of.  Even when people know the risk, they might not even look.  We can only do our best to let people be aware of the risks they're in.

   As was said in the article, this wasn't a disaster of epic proportions, but it is something people should be aware of, and can fix very easily with the fix that we worked with Microsoft to design.  Please keep in mind that I have no way to attack your DNS server normally to register www.google.com; it's not the server that hosts the zone.  But, if I use WPAD, then suddenly I'm able to get Google to come to me.  That's a security problem, and we recommend that people deploy the fix.

   You're welcome to contact me if you have any further questions about this.  Chris put a lot of time into figuring out exactly how this is and isn't vulnerable, and I don't think you're capturing all that he's done.

--Dan

P.S.  Given that this is isaserver.org, most people here should have ISA server, and thus will hopefully already have WPAD registrations as created by ISA.  So hopefully nobody here is affected!</description>
		<content:encoded><![CDATA[<p>Tom&#8211;</p>
<p>   No, it&#8217;s a little worse.  My apologies though, I don&#8217;t think Chris Paget has posted the slides from Shmoocon on the IOActive website yet.</p>
<p>   A couple things you&#8217;ve missed:</p>
<p>   1) IOA worked rather closely with Microsoft on this issue, in finding it, in measuring the impact, and in developing the fix.<br />
   2) DHCP servers will commonly register entries in DNS for anonymous parties.  WINS of course will also do such registrations.  They&#8217;re both pretty good at blocking registrations of existing records.  It&#8217;s when there is no record, that a problem happens.  Unfortunately, very few places have WPAD registrations, so it&#8217;s easy to take the name.<br />
   3) IE will happily provide NTLM credentials to any proxy, and any site that requests it.  Furthermore, WPAD attackers get access to the Local Intranet zone, exacerbating the impact of a vulnerability in the browser.</p>
<p>    You&#8217;re splitting hairs with wpad.dat.  DNS and WINS provide the address from which to download wpad.dat.  Also, IE is in fact the only browser to enable WPAD by default, though in normal usage it should disable itself.  This disabling doesn&#8217;t appear to be completely perfect, though, and won&#8217;t cover new users that show up post-infection.  It also does not cover various Window services, such as Windows Update or CryptoAPI, which will continue to acquire WPAD resources and will provide NTLM credentials to an attacker.</p>
<p>   Again, let me repeat that:  IE and Window Services are fundamentally more vulnerable to the WPAD issue, because only they have scenarios that enable WPAD by default.  Please let us know if you find anything else!</p>
<p>   Your faith in discoverability is also misplaced.  As an attacker, I can add and remove registrations at will, in both DHCP and WINS.  I showed three years ago how easy it is to tunnel massive amounts of data with DNS; three years later, it&#8217;s still a trivial way to tunnel through wireless access points.  People monitor what they know to worry about; the reality is that this wasn&#8217;t on anyone&#8217;s radar to even be aware of.  Even when people know the risk, they might not even look.  We can only do our best to let people be aware of the risks they&#8217;re in.</p>
<p>   As was said in the article, this wasn&#8217;t a disaster of epic proportions, but it is something people should be aware of, and can fix very easily with the fix that we worked with Microsoft to design.  Please keep in mind that I have no way to attack your DNS server normally to register <a href='http://www.google.com' rel='nofollow'>www.google.com</a>; it&#8217;s not the server that hosts the zone.  But, if I use WPAD, then suddenly I&#8217;m able to get Google to come to me.  That&#8217;s a security problem, and we recommend that people deploy the fix.</p>
<p>   You&#8217;re welcome to contact me if you have any further questions about this.  Chris put a lot of time into figuring out exactly how this is and isn&#8217;t vulnerable, and I don&#8217;t think you&#8217;re capturing all that he&#8217;s done.</p>
<p>&#8211;Dan</p>
<p>P.S.  Given that this is isaserver.org, most people here should have ISA server, and thus will hopefully already have WPAD registrations as created by ISA.  So hopefully nobody here is affected!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Greg Mulholland</title>
		<link>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84078</link>
		<pubDate>Sat, 31 Mar 2007 22:33:53 +0000</pubDate>
		<guid>http://blogs.isaserver.org/shinder/2007/03/31/oh-gimme-a-break-willya-the-non-security-issue-with-wpad/#comment-84078</guid>
					<description>Wow Tom! i'm guessing whoever A.Nony Mous(e) is that they have looked at the issue in some depth. I agree with the post as it seems to de-bunk the sensationalist, misguided reporting that is far to common. 

G</description>
		<content:encoded><![CDATA[<p>Wow Tom! i&#8217;m guessing whoever A.Nony Mous(e) is that they have looked at the issue in some depth. I agree with the post as it seems to de-bunk the sensationalist, misguided reporting that is far to common. </p>
<p>G
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
