Consider the following scenario:
Notes
- 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.
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.