Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: Protection ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 17 of 56 Topic 9274 of 10113
Post > Topic >>

Re: Protection from SQL injection

by aidan@[EMAIL PROTECTED] (Aidan Van Dyk) Apr 29, 2008 at 11:23 AM

--JkW1gnuWHDypiMFO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

* Tom Lane <tgl@[EMAIL PROTECTED]
> [080429 10:59]:
> "Tom Dunstan" <pgsql@[EMAIL PROTECTED]
> writes:
> > Damn, am I the only person who likes the idea?
> 
> Just about.  The reason that this idea isn't going anywhere is that its
> cost/benefit ratio is untenably bad.  Forbidding literals will break
> absolutely every SQL-using application on the planet, and in many cases
> fixing one's app to obey the rule would be quite painful (consider
> especially complex multi-layered apps such as are common in the Java
> world).  In exchange for that, you get SQL injection protection that
> has got a lot of holes in it, plus it stops protecting you at all
> unless you are using a not-SQL-standard database.  That tradeoff is
> not happening, at least not in any nontrivial application.
> 
> Analogies such as PIE just point up the difference: for 99% of
> applications, you can enable PIE without doing any more work than
> adding a compile switch.  If people were looking at major surgery
> on most of their apps to enable it, the idea would never have gone
> anywhere.

I guess my database apps qualify as "nontrivial".  I'm pretty sure that
I *could* enable something like this in all my web-facing apps *and* my
compiled C/C++ apps and not have any troubles.

And I happen to have programs/code that fail on PIE/exec****eld stuff.

I guess everything is relative.

That said, though *I* like the idea (and since I develop against
PostgreSQL 1st and use params for my queries I would consider it a nice
tool to "keep me honest"), I can easily see that the cost/benefit ratio
on this could be quite low and make it not worth the code/sup****t
necessary.

> If you're going to ask people to do significant revision of their
> apps to gain security, they're going to want it to work no matter
> what database they run their apps against.  This is why you need
> a client-side solution such as tainting.

Well, just because a tool is available doesn't mean people have to use
it.  I mean, we have PostgreSQL, and we think that's worth it, even
though to use it, "everybody" has to do significant revision of their
apps.

a.

-- 
Aidan Van Dyk                                             Create like a
god,
aidan@[EMAIL PROTECTED]
                                       command like a
king,
http://www.highrise.ca/
                                  work like a
slave.

--JkW1gnuWHDypiMFO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFIFz1YuVxNPsxNPScRAl9WAJ9bxDwbID2NUne73kKeOk5G6daSHACgpxYc
S2resHdVQGKyHDHJlSCIimQ=
=mmNu
-----END PGP SIGNATURE-----

--JkW1gnuWHDypiMFO--
 




 56 Posts in Topic:
Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-28 20:55:34 
Re: Protection from SQL injection
josh@[EMAIL PROTECTED] (  2008-04-28 12:09:29 
Re: Protection from SQL injection
sfrost@[EMAIL PROTECTED]   2008-04-28 15:17:35 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-04-28 23:00:18 
Re: Protection from SQL injection
direvus@[EMAIL PROTECTED]  2008-04-29 09:03:33 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-04-29 09:26:24 
Re: Protection from SQL injection
sam@[EMAIL PROTECTED] (S  2008-04-29 00:15:44 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-29 13:37:37 
Re: Protection from SQL injection
kleptog@[EMAIL PROTECTED]  2008-04-29 15:16:12 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-04-29 15:29:44 
Re: Protection from SQL injection
tino@[EMAIL PROTECTED] (  2008-04-29 16:35:41 
Re: Protection from SQL injection
andrew@[EMAIL PROTECTED]   2008-04-29 11:05:54 
Re: Protection from SQL injection
tino@[EMAIL PROTECTED] (  2008-04-30 16:47:56 
Re: Protection from SQL injection
stark@[EMAIL PROTECTED]   2008-04-29 09:36:02 
Re: Protection from SQL injection
pgsql@[EMAIL PROTECTED]   2008-04-29 19:44:29 
Re: Protection from SQL injection
tgl@[EMAIL PROTECTED] (T  2008-04-29 10:58:17 
Re: Protection from SQL injection
aidan@[EMAIL PROTECTED]   2008-04-29 11:23:04 
Re: Protection from SQL injection
josh@[EMAIL PROTECTED] (  2008-04-29 11:39:09 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-04-29 21:06:18 
Re: Protection from SQL injection
stark@[EMAIL PROTECTED]   2008-04-29 14:19:51 
Re: Protection from SQL injection
aidan@[EMAIL PROTECTED]   2008-04-29 16:01:44 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-29 21:29:41 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-29 22:18:48 
Re: Protection from SQL injection
andrew@[EMAIL PROTECTED]   2008-04-29 16:33:01 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-04-29 16:55:21 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-04-29 17:23:39 
Re: Protection from SQL injection
josh@[EMAIL PROTECTED] (  2008-04-29 15:24:10 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-05-01 19:00:25 
Re: Protection from SQL injection
andrew@[EMAIL PROTECTED]   2008-05-01 13:09:38 
Re: Protection from SQL injection
tgl@[EMAIL PROTECTED] (T  2008-05-01 13:25:07 
Re: Protection from SQL injection
josh@[EMAIL PROTECTED] (  2008-04-29 14:10:20 
Re: Protection from SQL injection
adsmail@[EMAIL PROTECTED]  2008-04-30 02:19:21 
Re: Protection from SQL injection
singh.gurjeet@[EMAIL PROT  2008-04-30 06:17:03 
Re: Protection from SQL injection
stark@[EMAIL PROTECTED]   2008-04-29 21:02:30 
Re: Protection from SQL injection
josh@[EMAIL PROTECTED] (  2008-04-29 18:20:36 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-04-30 10:20:09 
Re: Protection from SQL injection
kleptog@[EMAIL PROTECTED]  2008-04-30 22:58:34 
Re: Protection from SQL injection
tgl@[EMAIL PROTECTED] (T  2008-04-30 17:33:38 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-05-01 09:13:27 
Re: Protection from SQL injection
hannu@[EMAIL PROTECTED]   2008-04-29 23:21:10 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-04-30 12:55:06 
Re: Protection from SQL injection
books@[EMAIL PROTECTED]   2008-04-30 10:08:25 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-30 14:42:51 
Re: Protection from SQL injection
thomas.tom.mueller@[EMAIL  2008-04-30 17:22:50 
Re: Protection from SQL injection
singh.gurjeet@[EMAIL PROT  2008-04-30 22:41:08 
Re: Protection from SQL injection
tgl@[EMAIL PROTECTED] (T  2008-04-30 13:28:19 
Re: Protection from SQL injection
singh.gurjeet@[EMAIL PROT  2008-04-30 23:07:55 
Re: Protection from SQL injection
aidan@[EMAIL PROTECTED]   2008-04-30 13:50:25 
Re: Protection from SQL injection
stark@[EMAIL PROTECTED]   2008-05-01 11:07:08 
Re: Protection from SQL injection
tgl@[EMAIL PROTECTED] (T  2008-05-01 11:26:21 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-05-01 11:47:04 
Re: Protection from SQL injection
lists@[EMAIL PROTECTED]   2008-05-01 18:33:07 
Re: Protection from SQL injection
ajs@[EMAIL PROTECTED] (A  2008-05-01 15:17:37 
Re: Protection from SQL injection
fw@[EMAIL PROTECTED] (Fl  2008-05-04 19:38:45 
Re: Protection from SQL injection
Chris Browne <cbbrowne  2008-05-05 10:28:12 
Re: Protection from SQL injection
andrew@[EMAIL PROTECTED]   2008-05-05 14:00:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 22:26:02 CDT 2008.