all groups > iis security > december 2007 >
You're in the

iis security

group:

Disable TRACE IIS 6


Disable TRACE IIS 6 Rob
12/7/2007 2:16:00 AM
iis security:
We have had results from a pen test and they state that we have TRACE HHTP
enabled and also the OPTIONS request returns GET, HEAD, POST, PUT,
DELETE,TRACE, OPTIONS, CONNECT

We have disabled TRACE via the registry (EnableTraceMethod = 0)
I have installed urlscan and allowed only GET, HEAD, POST verbs
I've got into the home directory > configuration for the root, default and
each virutal site and edited each extension so that only GET, HEAD and POST
are allowed

We do not use WebDAV - prohibited and only use ASP

However, using Nesses, netcat and wfetch all return the same:
OPTIONS still show GET, HEAD, POST, PUT, DELETE,TRACE, OPTIONS, CONNECT
TRACE / HTTP/1.0 still returns a 200 OK and not a 501
PUT /../..HTTP/1.0 returns a 403 forbidden tho I am unsure whether that
matters or not?

Any ideas? Is thois a false positve?
Re: Disable TRACE IIS 6 David Wang
12/7/2007 2:11:27 PM
[quoted text, click to view]


Return value of OPTIONS is static so you can ignore it.

URLScan will reject PUT with 404 if it is running so it looks like
URLScan is not running on your system as you think.

TRACE has special code in IIS that skips over URLScan's attempt to
reject it, so EnableTraceMethod=0 is the only way. Are you sure your
TRACE actually worked to reveal anything after you set the registry
key because simply returning 200 doesn't mean there's a problem...

Consider the security setting of Known Extensions -- IIS returns 404
for disabled extensions or unknown file extensions even if the file
exists -- because to do anything else gives away information.
Likewise, if OPTIONS and TRACE start doing different things by
configuration, it gives away information...


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
Re: Disable TRACE IIS 6 Rob
12/10/2007 3:40:01 AM
Hi David and thanks for your response.

The odd thing about the OPTIONS values are that on our dev server the
response is only TRACE, GET, HEAD and when I do a TRACE I get the 501
response. The only differences with the live and dev server is that we are
implementing a new site (currently on the dev server) which only uses ASP 2.0
and this is where I think the issue lies. Our live server has some sites
that use ASP 1.1. I've done some digging and can see that http handlers done
through ASP 1.1 send a 403 foribidden response if the verb is not allowed so
I suspect this is where the response is coming from for PUT and DELETE. I
don't yet know enough about the TRACE method to be able to see if anything is
being revealed - that's todays reading! I suspect it's all ok.


[quoted text, click to view]
AddThis Social Bookmark Button