Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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=supportNote 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

File name

File version

File size

Date

Time

Platform

Hwebcore.dll

7.0.6001.22369

12,800

05-Feb-2009

05:41

x86

Iiscore.dll

7.0.6001.22369

190,464

05-Feb-2009

05:41

x86

W3dt.dll

7.0.6001.22369

23,552

05-Feb-2009

05:41

x86

IIS 7.0, x64

File name

File version

File size

Date

Time

Platform

Hwebcore.dll

7.0.6001.22369

15,360

05-Feb-2009

06:14

x64

Iiscore.dll

7.0.6001.22369

288,768

05-Feb-2009

06:14

x64

W3dt.dll

7.0.6001.22369

30,720

05-Feb-2009

06:15

x64

IIS 7.0, IA64

File name

File version

File size

Date

Time

Platform

Hwebcore.dll

7.0.6001.22369

37,376

05-Feb-2009

04:42

IA-64

Iiscore.dll

7.0.6001.22369

543,232

05-Feb-2009

04:42

IA-64

W3dt.dll

7.0.6001.22369

51,712

05-Feb-2009

04:42

IA-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.aspxFor 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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×