security - Are absolute paths in a CGI script secure? -


i'm creating new design website, , there old cgi script, sends email our server. can't post code here because of privacy issues, problem clear in second.

this cgi script takes templates, , redirects "thanks.htm" page. while doing this, using absolute paths.

now question: secure use absolute paths? mean, possible read out cgi scripts information server architecture?

thanks in advance, greetings thunderhook

you didn't mention platform or webserver, regardless, configured web server shouldn't able serve readable cgi scripts. think in secured environment, cgi-bin directory should live outside of accessible webspace.

imho, problem using absolute paths isn't security issue as extensibility issue. if app, set os environment variable document root, build absolute path using variable. provide added security? maybe - concerns file structure recon mitigated. makes easier reconfigure app, or port new server/location.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -