Lock user in website folder
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 > Lock user in website folder




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

    Lock user in website folder  
ttopholm


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


 
03-13-06 01:47 AM

How can I lock an iusr_ so it can't go out of it's wwwroot folder...

Because I found a script, which can show my whole C-drive with fso in asp,
but I want to disable that so it only can see the wwwroot and not outside
that.

in the php-engine you have open_basedir, do you also have that in IIS.

And is it possible to configure open_basedir for each virtual website in IIS
.

I hope you can help.





[ Post a follow-up to this message ]



    Re: Lock user in website folder  
Ken Schaefer


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


 
03-13-06 07:48 AM

Change NTFS permissions on your hard disk.

you don't tell us what OS you are using. For Win2000/XP and 2003 Server,
there are various pre-canned security templates from Microsoft you can apply
to lock down file system permissions.

Cheers
Ken

"ttopholm" <ttopholm@discussions.microsoft.com> wrote in message
news:43324B07-B1F7-4578-A45B-940A4EE6BFBE@microsoft.com...
: How can I lock an iusr_ so it can't go out of it's wwwroot folder...
:
: Because I found a script, which can show my whole C-drive with fso in asp,
: but I want to disable that so it only can see the wwwroot and not outside
: that.
:
: in the php-engine you have open_basedir, do you also have that in IIS.
:
: And is it possible to configure open_basedir for each virtual website in
IIS.
:
: I hope you can help.







[ Post a follow-up to this message ]



    Re: Lock user in website folder  
David Wang [Msft]


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


 
03-13-06 07:48 AM

To lock iusr so that it cannot go outside of its folder, you simply remove
FileSystem ACLs to the iusr from everywhere that it should not be.

Any other solution simply implement security checks as a layer on top of the
filesystem, which means if someone finds a way to bypass that security by
going directly to the filesystem, you have no security.

FSO is generic server-side functionality that talks directly to the
filesystem APIs, so NTFS ACL is the only security model.

If you want bounded behavior, use ASP.Net, which via CAS gives you a
manageable, bounded behavior in Managed Code which sits on top of the
filesystem.

This is basically what open_basedir() in php does as well - it gives you
bounded behavior that sits on top of the filesystem.

But both can obviously be bypassed if you allow direct calls to the
filesystem. So ultimately, if you don't want IUSR to be able to enumerate C:
, then remove read access to IUSR from C: and it won't be able to, no matter
what.


As for open_basedir() behavior: that is a php question best asked within PHP
forums.


--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//

"ttopholm" <ttopholm@discussions.microsoft.com> wrote in message
news:43324B07-B1F7-4578-A45B-940A4EE6BFBE@microsoft.com...
> How can I lock an iusr_ so it can't go out of it's wwwroot folder...
>
> Because I found a script, which can show my whole C-drive with fso in asp,
> but I want to disable that so it only can see the wwwroot and not outside
> that.
>
> in the php-engine you have open_basedir, do you also have that in IIS.
>
> And is it possible to configure open_basedir for each virtual website in
> IIS.
>
> I hope you can help.







[ Post a follow-up to this message ]



    RE: Lock user in website folder  
ttopholm


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


 
03-13-06 12:51 PM

I am using windows 2003..

I have solved the php problem.

But how do I remove the iusr_ from the c-drive, because it doesn't show in
the security tab, and i have removed it from the user group.

/Tue

"ttopholm" wrote:

> How can I lock an iusr_ so it can't go out of it's wwwroot folder...
>
> Because I found a script, which can show my whole C-drive with fso in asp,
> but I want to disable that so it only can see the wwwroot and not outside
> that.
>
> in the php-engine you have open_basedir, do you also have that in IIS.
>
> And is it possible to configure open_basedir for each virtual website in I
IS.
>
> I hope you can help.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:58 PM.      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