Vulnerability Development mailing list archives

Re: CGI source being exposed using "~"


From: dave () NRMAIL COM (David Augros)
Date: Tue, 9 May 2000 09:14:50 -0400


Another thing you can do to prevent this is add script handlers for the
backup extensions (if you use file extensions to tell apache what is a
cgi script). In httpd.conf, add the line:

AddHandler cgi-script .cgi .cgi~

Then, if a browser requests the backup file, the server will just
execute the older version of the script, which in most cases is probably
preferable to having the source code displayed.

--
Dave



Current thread: