Re: Comments on PHP security
| From: | Brian Moon | Date: | Fri, 12 Jan 2007 03:25:23 +0000 |
| Subject: | Re: Comments on PHP security | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27395@lists.php.net to get a copy of this message | ||
Mathieu CARBONNEAUX wrote:
but i think some good security idea have been said, for exemple using "prepare statement" to avoid sql injection...We really need to stop spreading this myth that prepared statements are a security measure. Prepared statements only allow passing of the value parts of where clauses and a couple of other parts of the query. Limit values would be the most common thing in a query that use variables but are the not allowed to be prepared. I have also seen plenty of applications that use variables for the table names, field names, order by, and other parts. Prepared statements help with none of those. Prepared statements protect very little against sql injection. Making people believe otherwise is dangerous. -- Brian Moon ------------- http://dealnews.com/ It's good to be cheap =)