audit file location

D

David Thielen

Hi;

I am writing an audit file of actions taken on my website. This is an audit
trail, not a log file (I open it in append only mode and the user it is
running as does not have delete or overwrite permissions).

Where should I place this? I want a folder under the webapp folder that a
user cannot get to.
 
D

Dominick Baier [DevelopMentor]

i would place it outside of the web directory. this is sensitive data and
the further away the better.
 
D

Dominick Baier [DevelopMentor]

hi,

sure, App_Data (2.0) would be an equivalent...
1.1 does hot have something comparable

But the further away from your web root the more secure - i think this was
your original question, right?
 
Y

Yuan Ren[MSFT]

Hi Dave,

Thanks for posting!

As Dominick suggested, you just put the file into the App_Data folder.
Then, the user can not access these sensitive files.

In addition, you can use the NTFS permission to prevent the unauthenticated
user accessing the sensitive file.

Thanks for your understanding!

Regards,

Yuan Ren [MSFT]
Microsoft Online Support
 
D

David Thielen

Hi;

If further away is more secure, then that means both ASP's security and NTFS
security has holes in it which is a scary thought.

App_Data seems like a logical place and since the forms security database is
there - theres much worse at risk if a user can get to that directory...

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
 
D

Dominick Baier [DevelopMentor]

i don't agree -

it is just that App_Data is a known directory - and if your application has
a programming error like directory traversal (e.g. by feeding insufficiently
input validated data in a FileStream or something similar) - as an attacker,
the first thing i would try to do is to access the App_Data (especially as
aspnetdb.mdf is also a known filename) - it is not about flaws in ASP.NET
or NTFS - it is about flaws in YOUR code.

Think about it . exploiting a flaw in your code is much harder if you don't
know what you are looking for - and as you most often cannot put directories
into directory traversal attacks - putting those files even on a separate
hard disk/partition is even more secure.

just my 2cents.
 
D

Dominick Baier [DevelopMentor]

Think about it . exploiting a flaw in your code is much harder if you
don't know what you are looking for - and as you most often cannot put
directories into directory traversal attacks - putting those files
even on a separate hard disk/partition is even more secure.

wanted to say:

and as you most often cannot put drive letters into directory traversal attacks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,087
Members
48,773
Latest member
Kaybee

Latest Threads

Top