WebApp Sec mailing list archives

Re: Prevent security bypass


From: "Ernie Nelson" <Juridian () juridian com>
Date: Fri, 7 Feb 2003 17:48:25 -0800

A simpler method that requires less work is to simply name your include with
the .asp extension.  If you feel the need to mark it as an include prefixing
the filename with inc_ (such as inc_secure.asp).  That way even if the
directories aren't configured right, the code is stripped out and harmless.


I know I'm going to catch sh!t here cause I used .inc, but you can easily
mitigate this by turning off read access in IIS to directories that only
hold files included by other files (such as /scripts/)


Current thread: