![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 54
Rep Power: 3
![]() |
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! |
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 751
Rep Power: 3
![]() |
You should probably use mysql_real_escape_string() and that should mostly cover you from user input.
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: May 2006
Location: UK - London
Posts: 329
Rep Power: 3
![]() |
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.
__________________
Quote:
|
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Oct 2006
Posts: 20
Rep Power: 0
![]() |
You may want to use someting like the ADO mysql framework, which allows prepared statements (these can also be more optimized in some situations).
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4
![]() |
This page gives hints of security issues with php and sql... hope it helps
http://www.sitepoint.com/article/php-security-blunders
__________________
"God bless u all" :) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MySQL with python? | snipertomcat | Python | 2 | Apr 13th, 2006 1:34 AM |
| Process injection | jayme | C++ | 3 | Jan 28th, 2006 6:05 AM |
| Tutorial - Using MySQL in C# | Darkhack | C# | 12 | Jan 17th, 2006 9:28 AM |
| Simple Perl / MySQL Problem.. pls help! | domquemo | Perl | 0 | Jan 11th, 2006 4:08 AM |
| DLL Injection Help!!! | Encryption | C++ | 0 | Apr 3rd, 2005 7:43 AM |