host header names as security devices

From: Chris Davis (chris.davis@computerjobs.com)
Date: 03/03/03

  • Next message: Sandy Ryan: "code red---- on system that is already (and has been) patched"
    From: Chris Davis <chris.davis@computerjobs.com>
    To: "'focus-ms@securityfocus.com'" <focus-ms@securityfocus.com>
    Date: Mon, 3 Mar 2003 11:23:42 -0500 
    
    

    The IIS "host header name" setting provides virtual naming capability for a
    single IP/port assignment. I am curious if the use of a host header name
    adds any security against IP address range port 80 scanners that attempt to
    exploit target hosts.

    In the event of an HTTP request sent to the IP address (rather than to the
    hostname) of an IIS server running a web site configured with an IIS host
    header name, in absence of a default site, the IIS server will return "No
    web site is configured at this address" because the HTTP request did not
    match a configured host header name and there was no default site to return.

    Does IIS short circuit all the ISAPI filtering and such in this case where
    the request does not match a configured host header name and no default site
    exists? If so, then are unpatched/unknown vulnerabilities not exploitable
    when a request is made by IP address rather than host name since the request
    may not make it to the ISAPI filters that have buffer overflows (or
    encoding%20issues or other vulnerabilities)?

    If IIS does short circuit the ISAPI filtering of the request, it seems that
    use of host header names (while disabling the default site) can act as an
    impediment to automated scanners that scan IP ranges trying exploits without
    knowing hostnames.

    (The IIS lockdown tool will filter requests with cmd.exe and root.exe and
    *.dll and *.ida and such, which you would still want to use to prevent
    attacks that do use your configured host header name. In addition to the
    IIS lockdown tool's features, the possible host header name ISAPI
    short-circuit might add a security layer that excludes all IP block scanner
    requests that attempt exploits from the possibility of success.)

    Does anybody have inside knowledge of how far an HTTP request to an IIS
    server without a default site will be processed before "No web site is
    configured at this address" is returned when the HTTP request does not match
    a configured host header name? Is there a true security gain in
    implementing this concept?

    Thanks
    Chris Davis, Senior CS Major
    Computer Science
    Southern Polytechnic State University
    http://www.WinSnmpWalk.org


  • Next message: Sandy Ryan: "code red---- on system that is already (and has been) patched"

    Relevant Pages

    • Re: IIS 6.0 - no host header value - Are host header requests proc
      ... The packets may not be malformed - it may be that the end client is using a DNS server that is incorrectly configured. ... In the case that a request comes in with a host header that matches none of the websites on your machine, then IIS will look for a site that is listening with no host header value *and* specifically bound to the IP address that the request came in on. ...
      (microsoft.public.inetserver.iis.security)
    • Re: Penetration test and request Host header
      ... an information disclosure vulnerability that your penetration testers are probably going to "ding" you on. ... revolves around an intentionally incorrect Host header in a request to ... Note the Host header that contains a domain that is not ... The response from IIS looks like ...
      (microsoft.public.inetserver.iis.security)
    • Penetration test and request Host header
      ... We were recently dinged during a client's penetration test. ... revolves around an intentionally incorrect Host header in a request to ... Note the Host header that contains a domain that is not ... The response from IIS looks like ...
      (microsoft.public.inetserver.iis.security)
    • Re: owa goes to wrong page.
      ... They haven't been using host header name on the system. ... I rechecked the log visits etc. Do you know if i upgrade to iis 5.1 will it show up under the version info through mmc. ... I found through checking w3svc log it stopped logging and i can not get it to start to trouble shoot. ...
      (microsoft.public.exchange.admin)
    • Re: Operation confusion caused by phrase "bound to all ips on that machine"
      ... One thing you would need to keep in mind especially with IIS and ISA on the ... setup it's listener to listen on all IP addresses on port 80.. ... IIS itself would still be listening on all ... that its configured to listen on, port, and host header. ...
      (microsoft.public.windows.server.sbs)