Groups | Blog | Home
all groups > iis security > december 2003 >

iis security : Map folder to drive letter instead of partitioning disk


NK
12/18/2003 8:48:49 PM
Hello,

I have run into a problem and I wanted to run my idea by
the group to receive your feedback on it.

I would like to follow the best practice of putting the
system, web content and log files in different drive
partitions. However, I have to do this on an existing web
server with all these three on the C drive. I don't have
the option to rebuild it, nor do I have Partition Magic
or any similar tool. So, using separate drive partitions
is not possible.

Instead of partitioning my disk, if I share the Inetpub
folder and then map it to a different drive letter, would
I achieve the same effect (mitigation of directory
traversal attacks) as if I were to use a genuine drive
partition? Using a different partition for the logs would
prevent a denial of service attack (by filling up the
system partition) from taking place. Is this also
achievable by using a mapped drive?

Thanks in advance! I appreciate your help.

Best regards,
NK
David Wang [Msft]
12/18/2003 11:49:30 PM
Hmm, didn't think about the mapped drive to mitigate a part of ASP Path
Tranversal... but it seems to work for me on IIS5 from a mitigation
perspective.

It doesn't work for logging, though, as IIS insists on a local partition
there (logging to UNC is just not a good idea).

Another thought -- this is the sort of server that we'd like to recommend
users consolidate using the upcoming "Virtual Server" technology. You can
create a replica of this server as a virtual machine and run it on a
modern-day PC (which you can upgrade as needed), and the virtual machine's
HD can always grow as needed (limited by physical HD space). No Partition
Magic needed.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Hello,

I have run into a problem and I wanted to run my idea by
the group to receive your feedback on it.

I would like to follow the best practice of putting the
system, web content and log files in different drive
partitions. However, I have to do this on an existing web
server with all these three on the C drive. I don't have
the option to rebuild it, nor do I have Partition Magic
or any similar tool. So, using separate drive partitions
is not possible.

Instead of partitioning my disk, if I share the Inetpub
folder and then map it to a different drive letter, would
I achieve the same effect (mitigation of directory
traversal attacks) as if I were to use a genuine drive
partition? Using a different partition for the logs would
prevent a denial of service attack (by filling up the
system partition) from taking place. Is this also
achievable by using a mapped drive?

Thanks in advance! I appreciate your help.

Best regards,
NK

Ed Ahlsen-Girard
12/19/2003 5:29:27 AM
[quoted text, click to view]
PMJI,

Additionally, in the ordinary course of events, a mapped drive sees all
the space available on it's physical disk(s), and will merrily fill it
up. I don't know if you can impose disk quotas on a share.
anonymous NO[at]SPAM discussions.microsoft.com
12/19/2003 6:25:36 AM

[quoted text, click to view]
Karl Levinson [x y] mvp
12/19/2003 7:47:30 AM
I wouldn't bet the security of my company's data on such a scheme.

You could use the free FIPS utility. [Except I'm not sure whether it works
on NTFS partitions, and make sure you have a backup and plenty of free disk
space and defragmented for contigous free space first.]

You could also just purchase additional hard drives. Depending on what kind
of drives you're using, they're relatively cheap.


[quoted text, click to view]

jcochran.nospam NO[at]SPAM naplesgov.com
12/19/2003 2:34:17 PM
On Thu, 18 Dec 2003 20:48:49 -0800, "NK"
[quoted text, click to view]

No.

[quoted text, click to view]

No.

jcochran.nospam NO[at]SPAM naplesgov.com
12/19/2003 2:37:07 PM
On Thu, 18 Dec 2003 23:49:30 -0800, "David Wang [Msft]"
[quoted text, click to view]

That depends on the transversal being attempted. While there
shouldn't be any available if you use security and apply the various
fixes, a transversal can start in either the mapped drive *or* the
physical partition. Naturally, if it starts in the mapped drive and
can't move higher in the heirarchy, it will get stopped.

David Wang [Msft]
12/19/2003 4:06:11 PM
Yeah, that's why I said a part of the traversal attack. Mapped drive stops
the ../ traversal starting from the mapped drive, but it's not going to
stop an absolute path. And certainly, it's not going to help the
"content/log files on system partition" issue at all.

Bottom line, if you want to use disk partitions, use real physical disks
from some source. If you cannot spare the namespace change, MOUNT the
partitions on the new disk into the old partition's namespace. i.e.
purchase another HD, create two partitions on it, and MOUNT those partitions
onto the C:\inetpub\wwwroot directory (after copying all that content to the
partition) as well as the LogFiles directory. Voila. You've just
segregated web content/log from System partition without changing any
existing configuration

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]

That depends on the transversal being attempted. While there
shouldn't be any available if you use security and apply the various
fixes, a transversal can start in either the mapped drive *or* the
physical partition. Naturally, if it starts in the mapped drive and
can't move higher in the heirarchy, it will get stopped.

Jeff

AddThis Social Bookmark Button