IIS & ASP security advice

From: Sabir Ahmedi (sahmedi_at_ramapo.edu)
Date: 04/30/03


Date: Wed, 30 Apr 2003 16:14:49 -0400


Hi all,
I have a user who has requested special permissions on my IIS 5.0 server. I
do not want to assign read and write permissions to anonymous web usersince
the directories are sub-directories of my IIS home directory. The following
is the user's request and reasoning for these permissions:

The directory /lord/lord_files/ needs to have read and write permissions set
for it and all subdirectories contained within it. This is because the web
wizard uses that directory so that it can create html files. Basically, any
web users will not have access to write, it might be said in the permissions
that they do but IIS does not allow this to happen unless an ASP script is
written to upload a file. Currently there is a single script that allows for
uploading and this is set to a specific directory
"\lord\biewer\orage\schmuck". This is for the application that I have
developed that allows a user to take a database and convert a table within
it into a web page. This script will only write to that directory and upon
completion of the Conversion Wizard it will delete the files that it has
created. This script will not allow an uploading to any other section of the
web server. The script will only allow the upload of .mdb files. This is to
prevent a user from uploading a program or script that would allow entry
into the server. I understand your concern about users, particularly
hackers/crackers having access to this directory. It is true that because
there are read permission on the directory a user could find the directory,
though this would have to be with trial and error. But they would be unable
to view the contents of the directory because the server is not setup to
show the contents. Now if they were able to find a file that had write
permissions they would still be unable to write to this file, or create
their own. They cannot upload any files to this directory because in order
to do so they would need a script (ASP) on the host machine. Because the
only scripts that I have written that deal with writing to a directory are
secure and do not let the user upload their own scripts, and are hard coded
to specific directories, there should be no need to worry about a users
getting access that way. Now the there is one other possibility, an attacker
might be able to write to this directory if they discovered a hole in IIS,
which would allow them to execute arbitrary commands. Although, this is
highly unlikely as long as the server is up to date on the security updates
form Microsoft.

I am not quite sure if most of what he said is true given my limited IIS
experience. Could someone give me a second opinion as to how this could be
done?? Thanks,

Sabir.



Relevant Pages

  • Re: Permission Problems SBS2003 R1
    ... website on the SBS server? ... Default permissions and user rights for IIS 6.0 ... Step 3: Please check the permissions in IIS manager: ... Step 4: Re-running CEICW on SBS server: ...
    (microsoft.public.windows.server.sbs)
  • RE: SBS 2003/member Web Server and ISUR access
    ... NTFS permissions for the directories and files ... the IIS content directories have the following permissions. ... Server Extensions, ASPNET, SQL Server and other software is installed. ... The IUSR_MachineName account has the following permissions. ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS Hosting Webservice which accesses a COM server
    ... I've create a COM server in VFP which I try to access from a Webservice ... If you want to run executables on IIS from a script (i.e. an ASP, ASP.Net, ... well as Web Service Extension for the appropriate Script Engine. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Virtual Directory - Permission Denied with fso CopyFile
    ... TestUser (normal user account with same credentials on all machines). ... I logged into the IIS server as vdirUser and simply typed ... open and I had read and write permissions to the share. ... I logged off and back into the IIS server as the administrator and deleted ...
    (microsoft.public.inetserver.iis)
  • Re: Bug in .NET Framework compiling C# scripts?
    ... worked fine when copied to the server and then accessed from my ... most likely in IIS 5.1 because it uses .NET Framework 1.1 instead ... But I concede that you are right about ending the script with: ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)