X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 412D5D1C920 for ; Mon, 21 Jul 2003 15:18:50 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 76814-01 for ; Mon, 21 Jul 2003 15:18:48 +0000 (GMT) Received: from webmail.muc.domues.com (webmail.muc.domeus.com [62.67.54.176]) by svr1.postgresql.org (Postfix) with ESMTP id 0534BD1C50D for ; Mon, 21 Jul 2003 12:18:46 -0300 (ADT) Received: from coppola.ecircle.de ([192.168.1.142]) by webmail.muc.domues.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h6LFICk27335; Mon, 21 Jul 2003 17:18:12 +0200 Subject: Re: Prepared Statements From: Csaba Nagy To: Richard Welty Cc: pgsql-jdbc-list In-Reply-To: References: <1058550328.19657.168.camel@topanga.toronto.redhat.com> <3F183423.9030900@openratings.com> <1058551402.20165.177.camel@topanga.toronto.redhat.com> <3F183AE0.8060204@openratings.com> <20030719012555.GA20158@opencloud.com> <3F1AC5D1.4010307@openratings.com> <20030721000241.GB665@opencloud.com> <3F1B51C5.4080108@openratings.com> <3F1BDA47.4090709@redhat.com> <3F1BF62B.4020609@openratings.com> <20030721143002.GF2506@opencloud.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Date: 21 Jul 2003 17:18:12 +0200 Message-Id: <1058800692.24769.339.camel@coppola.ecircle.de> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/215 X-Sequence-Number: 7599 > eewwww. > > in a multi-tier architecture where the code that actually talks to > the database is isolated from the GUI, this is a totally unreasonable > expectation -- you really need to audit fields in the GUI, not somewhere > way back in the code. Which it should be done indeed, but you also can't expect that a middle-ware can correctly escape an input string against injection attacks, as it can't know all the JDBC drivers it will talk to... this is the job of the JDBC driver, the app talking to it should not even attempt this. > > even if PostgreSQL's jdbc driver somehow had wonderful code to handle > security problems, sensible DB independent code will _still_ need to audit > in the GUI because there is no reasonable expectation that all jdbc drivers > that might be used will have similar code. > This is not just about security problems fixed, it's about deterministic behavior. If you have a non standard driver, you will not know how it behaves unless you try out every possible input, and even less how it will behave tomorrow. That's why is so important to have standards compliance. > i understand your desire for a single point of control, but moving this > into the jdbc driver is simply wrong. there are simply better ways; > java/swing/javabeans are powerful tools. > Yes, the application has to validate it's data, but this has nothing to do with the JDBC validation. There could be perfectly valid data from the application point of view which can result in unexpected results if the driver doesn't do it's validation job correctly. Cheers, Csaba. > richard > -- > Richard Welty rwelty@averillpark.net > Averill Park Networking 518-573-7592 > Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >