Eliminating Unicode exploits for IIS

Most Unicode exploits, if not all, are based on NT commands being in their default directory. For example, the "cmd.exe" command on a Windows 2000 Server is located in the %systemroot%winntsystem32 and the %systemroot%winntsystem32dllcashe directories. The dllcashe folder is for the Windows File Protection (WFP) service in case the file has been replaced/overwritten in the system32 directory.

Knowing the location of the necessary commands for exploitation purposes is half the battle. The rest comes easy with the widely available "canned" scripts for Unicode exploits. The scripts utilize the "cmd, ftp,telnet, etc." command line utilities to create folders, add users and download files from an FTP server.

The Microsoft's Security Checklist for IIS 4.0 included a recommendation for relocating critical command components from the system32 directory to a different folder. You might say security by obscurity; however, it does eliminate the Unicode exploits.

In order to have the same protection from Unicode vulnerabilities for IIS 5.0 and later, the WFP service needs to be disabled. Setting the registry key "SFCDisable" value to ffffff9d does just that. Move the critical files like "cmd, ftp, telnet, etc." from system32 to a different folder. Delete the same files from the dllcashe directory. The WFP service can be re-enabled with the "sfc /enable" command, which does not replace the moved/deleted files. However, running the

Requires Free Membership to View

"sfc /scannow" command will.

The above procedures do not guarantee a secured IIS server. The appropiate permissions for users and ACL for the file system still need to be implemented. Some people might even find it easier to use alternate Web servers. However, other people might not have a choice.

This was first published in August 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.