Disable drive list using ASP Code
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > Disable drive list using ASP Code




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Disable drive list using ASP Code  
Lisandro Weissheimer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-07 06:22 PM

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







[ Post a follow-up to this message ]



    Re: Disable drive list using ASP Code  
David Wang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-01-07 06:24 AM

On Jun 29, 7:42 am, Lisandro Weissheimer
<LisandroWeisshei...@discussions.microsoft.com> wrote:
> 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 inhttp://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=B4t do this, some sites uses this component.
>
> I know that it can be done without disabling FileSystemObject, but don=B4t
> know how.
>
> Anyone can help me please?
>
> Thanks,
>
>  Lisandro



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
//






[ Post a follow-up to this message ]



    Re: Disable drive list using ASP Code  
Lisandro Weissheimer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-02-07 12:19 PM

Thanks David!

I´ll apply the ACL.

"David Wang" wrote:

> On Jun 29, 7:42 am, Lisandro Weissheimer
> <LisandroWeisshei...@discussions.microsoft.com> wrote: 
>
>
>
> 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
> //
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:41 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register