Building web sites with PHP is easy. Building secured web sites--in any
language--is hard. The end result is many PHP sites with security issues. I
thought therefore it would be a good idea to put together a top ten list of
mistakes to avoid, so that beginners have something concrete to check their
work against, instead of fuzzy recommendations like "using session variables
is more secured."
Here's my nomination:
* Copying an uploaded file into a web-accessible folder without checking its
extension
This mistake allows someone to upload a .php file onto your website and gain
complete control.
language--is hard. The end result is many PHP sites with security issues. I
thought therefore it would be a good idea to put together a top ten list of
mistakes to avoid, so that beginners have something concrete to check their
work against, instead of fuzzy recommendations like "using session variables
is more secured."
Here's my nomination:
* Copying an uploaded file into a web-accessible folder without checking its
extension
This mistake allows someone to upload a .php file onto your website and gain
complete control.
Comment