![]() |
![]() |
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
|
Advisory 001
Xcache Webserver Cache Path Disclosure Vulnerability
Problem discovered: Mon, 17 Sep 2001
Abstract:
Description: This is most useful for dynamic content, such as .asp scripts. However, for some scripts, it is not desirable to hold a cached copy. These scripts are most commonly those which are specific to individual users, such as Shopping Baskets and the like. For this reason, Xcache provides the functionality to turn off caching for individual pages, or for entire folders (in which case all pages and subfolders in the folder will also not be cached). When caching is turned off for a document, Xcache returns the absolute pathname to that document in the HTTP headers. Sample headers are below:
[macavity@horus ~/work/research]$ telnet 192.168.0.21 80
HTTP/1.1 200 OK The pathname is revealed as the header 'Content-PageName' in the server response. As previously mentioned, if a folder has caching disabled, all documents contained in that folder and its subfolders are also not cached, and have their paths given out as above. This information can be critical to an attacker, as many webserver vulnerabilities require the attacker to know the webroot, so as to be able to provide an appropriate path to an executable such as 'cmd.exe', or other useful information held outside the root directory of the webserver. Moreover, if the document requested is held outside the webroot, for example the /scripts or /msadc folders, then Xcache will still return the absolute path of the document. In the common case where the webserver content is held on a drive partition different to the operating system, this allows an attacker to quickly check which folders map to directories on the system partition, and hence can help access critical OS executables. Hence, while this vulnerability itself does not compromise the machine, it reveals information that will assist an attacker greatly in using other exploits, such as the Unicode or Double-decode vulnerabilities for IIS 5.
Tested Versions:
Vendor & Patch Information:
Workarounds:
Credits:
Disclaimer:
|
||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||