PC Review


Reply
Thread Tools Rate Thread

Application data in C:\ root path

 
 
Tony Gravagno
Guest
Posts: n/a
 
      3rd Feb 2007
I just found yet another application that stores configuration data in
the C:\ root path. I don't know if they hardcoded "C:" for their
installation or if they were smart enough to at least use the same
partition where the app was being stored.

Some people have a fit over such things. Instinctively it seems that
it would be a security issue to put an app file like a .log or an .xml
or .ini config file in a root directory, but I can't find any
documentation to support the belief. There's no doubt this is sloppy
coding but it's hard to ask a vendor to move their files based on a
sense of elegance.

Can someone point me to some info about why putting app files in the
partition root is bad? Even some blog or discussion on the topic?

Thanks.
 
Reply With Quote
 
 
 
 
Mark Burnett
Guest
Posts: n/a
 
      3rd Feb 2007
One problem is that any user who logs in locally needs read/write access to
the root directory of the system drive to be able to create a swap file.
Therefore, those users would also probably have read/write access to any
other files in that directory.

Another problem is that root directories of other partitions by default
allow everyone full control, so files placed there would be vulnerable
unless someone specifically changed those permissions.

And finally, it is nice having all a progam's files in one directory to make
it easier to control permissions to that program's files. It would be too
easy to overlook a file stored somewhere else.



Mark Burnett
http://xato.net





"Tony Gravagno" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I just found yet another application that stores configuration data in
> the C:\ root path. I don't know if they hardcoded "C:" for their
> installation or if they were smart enough to at least use the same
> partition where the app was being stored.
>
> Some people have a fit over such things. Instinctively it seems that
> it would be a security issue to put an app file like a .log or an .xml
> or .ini config file in a root directory, but I can't find any
> documentation to support the belief. There's no doubt this is sloppy
> coding but it's hard to ask a vendor to move their files based on a
> sense of elegance.
>
> Can someone point me to some info about why putting app files in the
> partition root is bad? Even some blog or discussion on the topic?
>
> Thanks.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to specify relate path from application root Ben Daniel Microsoft ASP .NET 4 14th Oct 2007 03:46 AM
Root URL/ Application path problem with running debugger =?Utf-8?B?YW55ZW9uZQ==?= Microsoft ASP .NET 2 6th Jan 2006 09:32 PM
How to get path do user's Application Data directory Tomas Machala Microsoft Dot NET Framework Forms 2 28th Jul 2005 07:25 PM
question about application root path? =?Utf-8?B?RGF2ZQ==?= Microsoft ASP .NET 3 28th Apr 2005 03:29 PM
How do I change the Default Application Pool ROOT Path =?Utf-8?B?QnJpYW4gUnVwZXJ0?= Microsoft Dot NET 0 20th Jul 2004 07:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 AM.