Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Setting Anonymous 'Write and Execute' Permission to a folder

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Search Engine Optimization Meets Online PR  
Author Message
jeff_j_dunlap

External


Since: Jan 16, 2008
Posts: 1



(Msg. 1) Posted: Wed Jan 16, 2008 7:31 am
Post subject: Setting Anonymous 'Write and Execute' Permission to a folder
Archived from groups: microsoft>public>inetserver>iis (more info?)

Dear IIS Users:

I have an application accessible by anyone on the internet ('Anonymous
access') and the application's directory has 'Write' and 'Execute'
permissions set.

Am I vulnerable to having someone be able to upload a malicious file
and cause harm even though ftp nor Webdav is not enabled to that
folder?

I assume that the only avenue for attack in this scenario would be by
using buffer overlows posted to my exe. Is this correct or not?

And if so, would creating a max buffer size for both get and post
operations plus stripping out everything and keeping only alpha-
numeric and special url characters? Would I still be vulnerable?

Please advise.

Jeff

 >> Stay informed about: Setting Anonymous 'Write and Execute' Permission to a folder 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 2) Posted: Thu Jan 17, 2008 7:06 am
Post subject: Re: Setting Anonymous 'Write and Execute' Permission to a folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

Are you talking about setting NTFS permissions? Or setting the permissions
in IIS Manager?

Confusingly, both these permissions Write and Execute, refer to permissions
that can be set in both NTFS ACLs, and also in IIS Manager.

Cheers
Ken

<jeff_j_dunlap RemoveThis @yahoo.com> wrote in message
news:8053029e-e070-45bb-81c0-1bfb83356aef@j20g2000hsi.googlegroups.com...
> Dear IIS Users:
>
> I have an application accessible by anyone on the internet ('Anonymous
> access') and the application's directory has 'Write' and 'Execute'
> permissions set.
>
> Am I vulnerable to having someone be able to upload a malicious file
> and cause harm even though ftp nor Webdav is not enabled to that
> folder?
>
> I assume that the only avenue for attack in this scenario would be by
> using buffer overlows posted to my exe. Is this correct or not?
>
> And if so, would creating a max buffer size for both get and post
> operations plus stripping out everything and keeping only alpha-
> numeric and special url characters? Would I still be vulnerable?
>
> Please advise.
>
> Jeff

 >> Stay informed about: Setting Anonymous 'Write and Execute' Permission to a folder 
Back to top
Login to vote
Jeff Dunlap

External


Since: Aug 09, 2007
Posts: 3



(Msg. 3) Posted: Thu Jan 17, 2008 9:40 am
Post subject: Re: Setting Anonymous 'Write and Execute' Permission to a folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Ken,

> Are you talking about setting NTFS permissions? Or setting the permissions
> in IIS Manager?
>
> Confusingly, both these permissions Write and Execute, refer to permissions
> that can be set in both NTFS ACLs, and also in IIS Manager.

I'm talking about both permissions.
- IIS permissions set to 'Scripts and Executables' and 'Write'
- NTFS permissions for IUSR_xxxx (Internet Guest Account) set to 'Write'

This configuration allow an executable in a specific directory to run as
well as write to data files (such as txt files) in that directory.

Taking away the NTFS write permission fir IUSR_xxxx will allow the
executable to run but it will no longer be able to write to data files in
that directory.

David provided me with alot of good advise, and in fact, I have discovered
that in IIS, I do not have to have 'Write' access enabled after all!

I can simply enable IIS 'Scripts and Executables' (with no IIS read / IIS
write access), then in NTFS enable the IUSR_xxx to have write access. This
configuration allows an anonymous user to run my executable which can read
and write to data files as well as report data contained in those data files.
I originally thought that I had to have IIS 'Write' and 'Scripts and
Executables' but now I see that IIS 'Write' was not required at all!

Please let me know if it is safe to run in this latest configuration now
that IIS 'Write' is no longer enabled.

Best Regards,

Jeff
 >> Stay informed about: Setting Anonymous 'Write and Execute' Permission to a folder 
Back to top
Login to vote
David Wang

External


Since: Nov 14, 2007
Posts: 361



(Msg. 4) Posted: Thu Jan 17, 2008 11:56 am
Post subject: Re: Setting Anonymous 'Write and Execute' Permission to a folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Jan 17, 9:40 am, Jeff Dunlap <JeffDun... DeleteThis @discussions.microsoft.com>
wrote:
> Hi Ken,
>
> > Are you talking about setting NTFS permissions? Or setting the permissions
> > in IIS Manager?
>
> > Confusingly, both these permissions Write and Execute, refer to permissions
> > that can be set in both NTFS ACLs, and also in IIS Manager.
>
> I'm talking about both permissions.
>   - IIS permissions set to 'Scripts and Executables' and 'Write'
>   - NTFS permissions for IUSR_xxxx (Internet Guest Account) set to 'Write'
>
> This configuration allow an executable in a specific directory to run as
> well as write to data files (such as txt files) in that directory.
>
> Taking away the NTFS write permission fir IUSR_xxxx will allow the
> executable to run but it will no longer be able to write to data files in
> that directory.
>
> David provided me with alot of good advise, and in fact, I have discovered
> that in IIS, I do not have to have 'Write' access enabled after all!  
>
> I can simply enable IIS 'Scripts and Executables' (with no IIS read / IIS
> write access), then in NTFS enable the IUSR_xxx to have write access.  This
> configuration allows an anonymous user to run my executable which can read
> and write to data files as well as report data contained in those data files.
>  I originally thought that I had to have IIS 'Write' and 'Scripts and
> Executables' but now I see that IIS 'Write' was not required at all!
>
> Please let me know if it is safe to run in this latest configuration now
> that IIS 'Write' is no longer enabled.
>
> Best Regards,
>
> Jeff


Yes, I was going to point you in the same direction that you just
took. It is more secure.

Here is explanation for your confusion:
http://blogs.msdn.com/david.wang/archive/2005/08/20/Why-can-I-upload-a...le-with


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
 >> Stay informed about: Setting Anonymous 'Write and Execute' Permission to a folder 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]