X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 900635299A for ; Wed, 10 Aug 2005 14:02:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37623-01 for ; Wed, 10 Aug 2005 17:02:22 +0000 (GMT) Received: from www.cotse.net (smtp.cotse.net [68.166.125.227]) by svr1.postgresql.org (Postfix) with ESMTP id 71001528DF for ; Wed, 10 Aug 2005 14:02:20 -0300 (ADT) Received: from localhost (localhost[127.0.0.1]) (authenticated bits=0) by smtp (5.7.4/5.7.4) with ESMTP id j7AH2308095794 for ; Wed, 10 Aug 2005 13:02:04 -0400 (EDT) (envelope-from rick@cotse.net) Message-ID: <42FA330D.7020908@cotse.net> Date: Wed, 10 Aug 2005 10:02:05 -0700 From: Rick Roman User-Agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Preventing sql injection Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/130 X-Sequence-Number: 18449 I have a web application that will allow users to submit comments. The database activity consists of a single insert statement into a comments table. I want to lock down this operation against sql injection attacks. Can someone point me to a discussion of general principles? I've seen reference to V3 extended-query protocol. Where is this invoked? Other suggestions?