![]() |
PHP & Mysql injection in phplist
Hello all,
I want to secure a page which uses the script of "phplist". Basically this script stores username, name, surname, email etc of users in order for the company to send newsletters to their clients. Except from stripping slashes,backslashes etc or special characters, are there any other ways to prevent the data stored in the db from somenone that wants to "lay their hands" on them? Thank you! |
You should probably use mysql_real_escape_string() and that should mostly cover you from user input.
|
i think there alot of ways to do this...........you could check if they person has actually come from the page that you wanted them to come from....also you could check if(get_magic_quotes_gpc()) is set and if yes then i think you should use strip slashes, then use mysql_real_escape_string, just try to make the perpetrators life a bit harder.
|
You may want to use someting like the ADO mysql framework, which allows prepared statements (these can also be more optimized in some situations).
|
This page gives hints of security issues with php and sql... hope it helps
http://www.sitepoint.com/article/php-security-blunders |
| All times are GMT -5. The time now is 1:31 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC