Re: Re: DB wildcards

From: Date: Tue, 17 May 2005 21:19:16 +0000
Subject: Re: Re: DB wildcards
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19250@lists.php.net to get a copy of this message
On Tue, 2005-05-17 at 10:04 +0200, Massimiliano Arione wrote: > Danny Brow wrote: > >>Why dangerous? > >>The DB provides atuomating quote and escape of values putted in > >>placeholfers. > > > > Because some one can do an sql injection attack. I get this warning > > every time I post a question, but either I've removed the extra code to > > make it easier to read or have not yet started to make my code secure. > > Don't you think that escaping strings is enough against sql injection? > I don't think anything is enough, the app I'm developing, if it all works out will be in environments where data is sensitive enough to have laws that govern it's use and distribution. It's not military either, but it's important stuff. Escaping strings needs to be done before it hits the DB, or you could get an attack like: ' or '' = ' in a password field or something like that. I not a pro in php or sql yet. I bet there are a million examples of why sql statements need to be purified via php first. Dan. PS. Sorry for sending that last e-mail directly to you Massimiliano.

« previous php.pear.general (#19250) next »