FIX: The internal IP address of an IIS 7.0 server is revealed if an HTTP Request that does not have a Host header or has a NULL Host header is sent to the server

Article translations Article translations
Article ID: 967342 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • An HTTP Request that does not have a Host header or that has a NULL Host header is sent to an Internet Information Service (IIS) 7.0 server.
  • An ISAPI filter is configured in IIS 7. The ISAPI filter calls the GetServerVariables(servername) function during an SF_NOTIFY_PREPROC_HEADERS notification.
In this scenario, the internal IP address of the server is returned to the client in an HTTP response.

Notes
  • In some cases, IIS 7.0 server may be flagged as "insecure" by security scanning tools if internal IP address of the server is revealed.
  • SF_NOTIFY_PREPROC_HEADERS notifications occur for each request. These notifications indicate that the server has completed preprocessing of the headers associated with the request, but has not begun to process the information in the headers.
  • Web browsers that use HTTP/1.1 must include a Host header when the browser sends an HTTP request. Therefore, this scenario occurs most frequently when the HTTP request is not sent by a Web browser or when it is sent by a Web browser that uses HTTP/1.0.

CAUSE

The issue occurs because SF_NOTIFY_PREPROC_HEADERS is called before IIS reads the alternateHostName property in the configuration data. Therefore, IIS can only return the IP address of the server.

If the request contains a Host value and the GetServerVariables(servername) call is made in SF_NOTIFY_PREPROC_HEADERS, SERVER_NAME will contain the value of the client's Host header.

RESOLUTION

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Important Windows Vista and Windows Server 2008 hotfixes are included in the same packages. However, only one of these products may be listed on the “Hotfix Request” page. To request the hotfix package that applies to both Windows Vista and Windows Server 2008, just select the product that is listed on the page.

Prerequisites

You must have Windows Vista Service Pack 1 or Windows Server 2008 installed to apply this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
IIS 7.0, x86
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Hwebcore.dll7.0.6001.2236912,80005-Feb-200905:41x86
Iiscore.dll7.0.6001.22369190,46405-Feb-200905:41x86
W3dt.dll7.0.6001.2236923,55205-Feb-200905:41x86
IIS 7.0, x64
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Hwebcore.dll7.0.6001.2236915,36005-Feb-200906:14x64
Iiscore.dll7.0.6001.22369288,76805-Feb-200906:14x64
W3dt.dll7.0.6001.2236930,72005-Feb-200906:15x64
IIS 7.0, IA64
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Hwebcore.dll7.0.6001.2236937,37605-Feb-200904:42IA-64
Iiscore.dll7.0.6001.22369543,23205-Feb-200904:42IA-64
W3dt.dll7.0.6001.2236951,71205-Feb-200904:42IA-64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about ISAPI Filter Event Order, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/ms524855.aspx
For more information about Request-Processing in IIS 7, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/ms691018.aspx


Note Because the alternateHostName property is used to stop the internal IP address of the server from being revealed, you should also set a value for alternateHostName when you install this hotfix. To set the alternateHostName value, execute the following command:
appcmd.exe set config -section:system.webServer/serverRuntime /alternateHostName:"<Server Name>"  /commit:apphost
For more information about IIS 7.0 serverRuntime Element, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/aa347568.aspx

REFERENCES

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 967342 - Last Review: November 9, 2010 - Revision: 2.0
APPLIES TO
  • Microsoft Internet Information Services 7.0
Keywords: 
kbhotfixserver kbautohotfix kbexpertiseadvanced kbqfe kbsurveynew KB967342

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com