Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

February 21, 2006 12:00 AM

Isolating a Web Application from the Rest of Your Web Site

Windows IT Pro
InstantDoc ID #49194
Rating: (0)

We recently added a new Active Server Pages (ASP) application to our company's public Web server. In the past, we've been able to tightly lock down the server, but this externally developed application requires some loosening of security, and I'm not confident the application code itself is that secure. The application doesn't have confidential data or handle business transactions, but other areas of the Web site do, and of course I think about the home page itself. How can I best isolate the new application from the rest of the Web site in case the app gets hacked?

Excellent thinking! The best isolation of course would be hosting the application on a different server (and in a different forest, if the server is a member of a domain). But if that isn't an option, several features in Microsoft IIS were originally envisioned for ISPs hosting multiple Web sites–you can make use of these to implement some isolation so that if your new application does not get hacked, the intruder doesn't automatically gain access to the rest of your site.

First, if the application allows anonymous connections at the IIS level, create a new user account for IIS to impersonate when servicing these connections. Restrict the user's group memberships, NTFS permissions, and user rights so that the account has the fewest privileges possible. Then configure IIS to use this account on the Directory Security tab of the application folder's Properties dialog box in IIS.

IIS 6.0 also allows you to control the identity of the actual worker processes that service HTTP and HTTP Secure (HTTPS) requests. Create another new user account with minimal authority. Then, create a new application pool in the Microsoft Management Console (MMC) Internet Information Services snap-in. On the Identity tab of the application pool's Properties dialog box, configure the pool to run under the second account you just created. Back on the application folder's properties in IIS, select the Directory or Virtual Directory tab (depending on the type of folder in which the application resides). Under Application Settings, click Create and name the application. Now, in the Application Pool drop-down box, select the new pool you just created.

Now the application is running as a separate account both at the impersonation and worker process levels. An attacker who might compromise the application at the application level or even within IIS through a buffer overflow shouldn't have access to other parts of the Web site. To make sure, though, create a group and add both new accounts as members. Then explicitly deny the group access to other folders in your Web site.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.