Re: Restrict FileSystemObject to it's virtual dir

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 10/28/04


Date: Wed, 27 Oct 2004 23:54:21 -0700

Scripting.FileSystemObject does not support any such policy. Web Servers
implement such "rooted" policies, but it only applies to the Web Server and
not scripts run by the Web Server (same reasoning).

You will have to rely on NTFS ACLs to prevent mingling between apps.

In general, "app isolation" is done through NTFS ACLs (i.e. if directory1 is
ACLd only to user1 and directory2 is ACLd only to user2, an app running as
user2 can only access directory2 but not directory1).

You can do this on IIS6 in a couple of ways:
1. Creating an Application Pool for each application, with a unique AppPool
Identity and Anonymous User/Authentication. This effectively binds code run
by that AppPool to the configured AppPool/Anonymous identity(s).
2. Use unique AnonymousUser identity for every application for isolation.
This has a weakness in that if the script code can call "RevertToSelf", it
can gain access to the process identity, which by default already have
access to everything (you're relying on impersonation as isolation).

If you allow users to upload and run arbitrary code on the server, then you
must use Application Pools with unique AppPool Identity to isolate users
from each other. The users must execute code in separate processes or else
they'd share something in common.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"FKeller" <Fritz Keller@discussions.microsoft.com> wrote in message
news:A96D650B-CB7F-4D7D-A2B8-AC33BA528364@microsoft.com...
Hello Dallo
I wonder if you got it to work with the desired security?
I did see that there is a very ingenious ASP-script going around. Even on
big providers you can go with it to all drives, even C:\WINNT and \SYSTEM32
and read, change, delete or upload whatever you want. So as I did see even
big providers have not the needed security and are in danger. How did you
implement the security that users cannot go out of there root? Hackers event
use file upload possibilities in websites to upload the tool and use it
then.
Thanks for help,
Fritz Keller
"Dallo" wrote:
> Hi everybody,
> i've to configure on a single win2003 machine a lot dinamic web site.
> I'd like to protect each site from interference of other sites scripts
that
> uses, for example, filesystemobject method.
> In other words, i dont want asp script using FSO of a site can access,
> modify or delete files on other sites.
> Is there a way to restrict FSO to it's virtual directory?
>
>
> tnx to everyone
> :)
>
>
>


Relevant Pages

  • Re: Restrict FileSystemObject to its virtual dir
    ... not scripts run by the Web Server. ... Creating an Application Pool for each application, with a unique AppPool ... If you allow users to upload and run arbitrary code on the server, ...
    (microsoft.public.inetserver.iis.security)
  • [NEWS] Multiple Vulnerabilities in WASD HTTP Server for OpenVMS
    ... WASD VMS Hypertext Services is a popular HTTP server for OpenVMS released ... - Read access to the whole web server configuration. ... - Getting the sources of all CGI scripts. ...
    (Securiteam)
  • Re: How to upload a file to my web server
    ... If not have em set you up a write enabled directory, then Google for upload scripts. ... my connection from my FrontPage client to my own company's web server is through a cell phone modem. ... What I want to do is to transfer from a client company computer across their own internet connections to my own company's web server. ...
    (microsoft.public.frontpage.programming)
  • Re: PERL WEB PROGRESS BAR
    ... >I am doing little CGI scripts. ... You can setup a javascript indicator for your upload ... which shares the bandwidth with the upload. ...
    (comp.lang.perl.misc)
  • Re: HttpWebRequest file upload problem
    ... Here is the first on a remote web server. ... Here is the second connection which is just to another folder on my ... File upload failed: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.languages.csharp)