On Mar 4, 6:39*am, "LP" <no_spam@_nospam.com> wrote:
> Hi there,
>
> I'm going to be using (anonymous) impersonation on my web site so everything
> will run under IUSR. I'm a little confused about what end-users will be able
> to do versus my app itself however. For instance, if I create a read-only
> folder, my app (running under IUSR) can read it without issue. However, I
> don't want end-users to be able to see it. Therefore, even if directory
> browsing is turned off, is there any way for end-users to be able to read
> what's in the folder since IUSR still has read permissions (or worse yet,
> write to the folder if write permissions is also on). Thanks in advance.
Since your app will be accessible to the end user and under their
control, anything your app can access can potentially be accessed by
the end-user. It doesn't matter how you authentication or impersonate.
Your only defense is to not write a security vulnerability in your
application code to allow your security nightmare to happen.
For example, you can turn directory browsing off, but if your
application allows users to access CreateFile-like behavior, depending
on its implementation, may be vulnerable to be used as directory
browsing. Same thing with write permissions.
Since Web servers are designed to serve resources under its websites
after passing Authentication, if you want to prevent the end-user from
using the Web Server itself (not just your application) to read files
you want to hide, then do NOT put those files in directories that are
part of any website.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//