NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
BID:194
Info
NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
| Bugtraq ID: | 194 |
| Class: | Configuration Error |
| CVE: |
CVE-1999-0450 |
| Remote: | Yes |
| Local: | Yes |
| Published: | Jan 26 1999 12:00AM |
| Updated: | Jul 11 2009 12:16AM |
| Credit: | This vulnerability was first posted to the NTBugtraq mailing list by David Litchfield (Mnemonix). |
| Vulnerable: |
Microsoft IIS 5.0 Microsoft IIS 4.0 Microsoft IIS 3.0 Microsoft IIS 2.0 |
| Not Vulnerable: | |
Discussion
NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
A GET request that specifies a nonexistent file with an IISAPI-registered extension (ie .pl, .idq) will cause the IIS server to return an error message that includes the full path of the root web server directory.
This can happen if the file is referenced as the target of the GET or passed in a variable to a script that looks for the file.
Example:
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't open perl script "C:\InetPub\scripts\ bogus.pl": No such file or directory
A GET request that specifies a nonexistent file with an IISAPI-registered extension (ie .pl, .idq) will cause the IIS server to return an error message that includes the full path of the root web server directory.
This can happen if the file is referenced as the target of the GET or passed in a variable to a script that looks for the file.
Example:
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Can't open perl script "C:\InetPub\scripts\ bogus.pl": No such file or directory
Exploit / POC
NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
see discussion
see discussion
Solution / Fix
NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
Solution:
In IIS4 and above, you can configure it to check for the existence of a file before it returns an error message.
In IIS4:
Preferences -> Home directory -> Application
select "Check if file exists" for all IISAPI mappings registered
Also, remove all unused mappings.
Solution:
In IIS4 and above, you can configure it to check for the existence of a file before it returns an error message.
In IIS4:
Preferences -> Home directory -> Application
select "Check if file exists" for all IISAPI mappings registered
Also, remove all unused mappings.
References
NT IIS IISAPI Extension Enumerate Root Web Server Directory Vulnerability
References:
References: