Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 92B9B4B856B for ; Wed, 11 Apr 2012 02:36:27 -0300 (ADT) Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHqEE-0008RL-6j for pgsql-jdbc@postgresql.org; Wed, 11 Apr 2012 05:36:27 +0000 Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id q3B5a4907402 for ; Tue, 10 Apr 2012 22:36:04 -0700 Message-ID: <4F85183F.6070806@hogranch.com> Date: Tue, 10 Apr 2012 22:35:59 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: [HACKERS] Regarding GSoc Application References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <4F831234.7040209@dunslane.net> <4F8438AD.7060503@dunslane.net> <4F844089.2050308@dunslane.net> <4F84480F.1020905@dunslane.net> <9511.1334071505@sss.pgh.pa.us> <9745.1334072198@sss.pgh.pa.us> < CAHyXU0z93NV5Q=UeaeSLkYN272KDsVX0Wrd=VHLMJ_-qeGEvug@mail.gmail.com> <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> <4 F8508C6.5090305@hogran ch.com> <4f850a5f.4537440a.3ae2.4930@mx.goog! le.com> In-Reply-To: <4f850a5f.4537440a.3ae2.4930@mx.google.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/57 X-Sequence-Number: 22857 On 04/10/12 9:36 PM, Atri Sharma wrote: > Hi John, > > Yes,I agree,that can be done,but we had an extensive discussion on it > yesterday and Andrew and Tom believe that would pose serious security issues > as any malicious user can change the arguments sent to the SQL and cause > problems. > I'm not sure what "change the arguments sent to SQL" means. A malicious user with sufficient privileges can do all sorts of damage, and there's not much much you can do about it short of not letting malicious users have privileges. your foreign data wrapper code should probably require that the user who creates a FDW connection to an external database have adequate permissions. the foreign database servr already has its own authentication hoops tha this FDW user will have to provide. -- john r pierce N 37, W 122 santa cruz ca mid-left coast