Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS 6.0 And ASP Security Question

Status
Not open for further replies.

manitoba

Programmer
Jan 29, 2004
79
0
0
CA
IIS 6.0 has a security feature where an ASP script from one virtual root cannot access the file system mapped to a different virtual root. Does anyone know how to disable this?
 
If you mean the ability to use ../ to access folders and files outside the webroot, you are looking to enable parent paths.

It is on the Home Directory tab -> Configuration... -> App Options -> Enable parent paths checkbox.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Thanks Chris, but it's not parent paths that I am after. Say in IIS 6.0 you create 2 Web sites and map them to:

C:\Site1
C:\Site2

If I write an ASP script that runs in Site1, it cannot access the folder C:\Site2

File permissions on both folders are set to Full Control for Everyone.
 
It can't be done for pretty obvious reasons. It's one of the reasons parent paths are normally disabled. If it was easily done it would leave every IIS hosted server open to directory traversal attack by every script kiddie in the world.

you can make the FSO access the site folders directly but the paths would have to be hardcoded and the NTFS permissions would need to be set accordingly.

But scripts normally can only run in the context of the one site.

Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top