all groups > iis security > june 2007 >
You're in the

iis security

group:

Disable drive list using ASP Code


Disable drive list using ASP Code Lisandro Weissheimer
6/29/2007 7:42:03 AM
iis security:
Hi,

I have a web server runnig IIS 6.0 and need to block that a user can list
my drives and navigate in folders using an ASP code.

The example is in http://paludo.no-ip.org:9090/teste/drive.asp

I know that it can be done disabling FileSystemObeject by running the
following regsvr32 scrrun.dll /u.

But I can´t do this, some sites uses this component.

I know that it can be done without disabling FileSystemObject, but don´t
know how.

Anyone can help me please?

Thanks,

Lisandro

Re: Disable drive list using ASP Code David Wang
6/30/2007 6:50:47 PM
On Jun 29, 7:42 am, Lisandro Weissheimer
[quoted text, click to view]



For the web pages where you want to restrict FileSystem access, change
their authenticated user account to a deny-user-account that you
create/maintain, and then ACL the FileSystem denying that deny-user-
account read/list access and allowing read access to places that you
want.

Using unmanaged components like Scripting.FileSystemObject (which is
basically raw native code running on your webserver) and then allowing
users to upload and run code of their design using the unmanaged
components, your ONLY security defense is NTFS ACLs. Partition your
applications into those that run as limited and non-limited user
accounts and ACL the NTFS FileSystem accordingly.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Re: Disable drive list using ASP Code Lisandro Weissheimer
7/2/2007 4:46:03 AM
Thanks David!

I´ll apply the ACL.

[quoted text, click to view]
AddThis Social Bookmark Button