Hi,
I want to create a quick list of security issues for php & mysql/postresql sites. There's a lot out there, but what's annoying is that it's spread out all over the place. So below is what I've found so far - if anyone has something to add, please reply to this post. This'll help me and I imagine anyone else out there thinking the same.
Thanks, JB
PS. Links also welcome.
IN PHP.INI
use safe_mode if possible
turn off register_globals (access variables with $_POST)
turn off display_errors (log errors instead of displaying)
error_reporting = E_ALL (to aid in building cleaner code)
turn on magic_quotes_gpc
IN YOUR CODE:
make a point of properly validating data that enters a form
use addslashes() when submitting to db
use post instead of get (not all that great)
consider https for areas that require passwords