Security Considerations



ASP.NET Security Settings

FileUpEE's interceptor - the HttpModule - caches request data before it is processed by ASP.NET.

The HttpModule writes to the hard drive as the same account as the application under which it is running, and can write to any directory on the server. The HttpModule can cache to a network share, but only if the account has network privileges.

The location of the temporary directory can be configured in the web.config file. To set the HttpModule temp directory:

  1. Open the web.config file for the web site.

  2. Navigate to the FileUpEETempDir application key under the <appSettings> node.

  3. In Value attribute, enter the path and folder name.

In ASP.NET, if impersonation is disabled - as it is by default - FileUpEE executes in the context of the NETWORK_SERVICE account (in IIS 6) or the ASPNET account (in IIS 5.1). To allow uploads, the NETWORK_SERVICE account or ASPNET account must have Read, Write, and Modify permissions for FileUpEE's temporary and destination folders. An upload's destination folder is set in code by DestinationDirectory, DestinationPath, or SaveAs.

In a 3 tier upload (client -> web server -> file server) FileUpEE will use two temporary folders, one on the Web server and one on the file server. Both temporary folders require Read, Write, and Modify permissions for the ASPNET or authenticated user account under which the application is running on that machine.

Under ASP.NET impersonation is controlled in the .NET configuration file for your web application - web.config or machine.config (For information about these files, see Installing FileUpEE for ASP.NET). If no userName or password is set, the application will run in the user set in IIS just as it would for an ASP application. To enable impersonation, set impersonate to true in the <identity> node in the <system.web> section of web.config or machine.config:

<identity impersonate="true" userName="" password=""/>

Top


ASP Security Settings

In ASP, FileUpEE executes in a specific user context:

To allow uploads, the IUSR_MACHINENAME or authenticated user must have Read, Write, and Modify NTFS permissions for FileUpEE's temporary and destination folders. An upload's destination folder is set in code by DestinationDirectory, DestinationPath, or SaveAs. The temporary directory for an upload can be set in code by the property TempStorageLocation. If you do not assign a value to TempStorageLocation, uploads will be cached in the system's default directory for cached files, which is determined by the system environment variable TEMP.

To change the system's default directory for cached files, reset the TEMP environment variable, as follows:

  1. Open the Control Panel.

  2. Select System.

  3. Select the Advanced tab.

  4. Click Environment variables...

  5. Select TEMP from the System Variables list.

  6. Click Edit.

  7. Enter a new Variable Value, and click Ok.

In a 3 tier upload (client -> web server -> file server) FileUpEE will use two temporary folders -- one on the Web server and one on the file server. Both temporary folders require Read, Write, and Modify permissions for the anonymous or authenticated user.

If UseMemory is set to True, FileUpEE will not write temporary files and it is not necessary to set permissions for a temporary directory.

Top


General Guidelines

Top

Copyright © 2010 SoftArtisans, Inc. All rights reserved.