pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: [HACKERS] Regarding GSoc Application
Date: Tue, 10 Apr 2012 22:35:59 -0700
Message-ID: <4F85183F.6070806@hogranch.com> (raw)
In-Reply-To: <4f850a5f.4537440a.3ae2.4930@mx.google.com>
References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com>
	<CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com>
	<CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com>
	<4F831234.7040209@dunslane.net>
	<CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com>
	<4F8438AD.7060503@dunslane.net>
	<CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com>
	<4F844089.2050308@dunslane.net>
	<CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com>
	<4F84480F.1020905@dunslane.net>
	<CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com>
	<9511.1334071505@sss.pgh.pa.us>
	<CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com>
	<9745.1334072198@sss.pgh.pa.us>
	<CAHyXU0zKvvviUPr=xn-XJHdWVOEEBVoUDEDagdh5kseefD E1iw@mail.gmail.com>
	< 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>

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




view thread (43+ messages)  latest in thread

Message-ID: <4F85183F.6070806@hogranch.com>
Permalink:  ../4F85183F.6070806@hogranch.com/
Also on:    postgresql.org/message-id/4F85183F.6070806@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: [HACKERS] Regarding GSoc Application
  In-Reply-To: <4F85183F.6070806@hogranch.com>
  References: <4f802005.cc76440a.668b.ffffcd8e@mx.google.com> <CAHyXU0z+JL+PBSpi8hf+=EsxcYFwUeAhKsVcrW6JVrmq+r-B3A@mail.gmail.com> <CADK3HHLN+3kmMTyYvz8q35eB5xK+fizZoEdqwh4iq2B2xTQUJQ@mail.gmail.com> <4F831234.7040209@dunslane.net> <CAOeZVieUiksGhFFGK_HYdZhCEH13Q7OpOJ0o2Wph-XUbkQYm2w@mail.gmail.com> <4F8438AD.7060503@dunslane.net> <CAHyXU0wUFK_bO48B0eOzUa_434PRf6qmj4=0mWG0SXNJ1KuitA@mail.gmail.com> <4F844089.2050308@dunslane.net> <CAHyXU0zAZNiWdWCfaFc==O+5Z9ccDSxwu5WOG4ds4ZQBgyqNOw@mail.gmail.com> <4F84480F.1020905@dunslane.net> <CAHyXU0wUg1TLdyMm0PzQwgYb6iRyCP4+YkqqaxWGUNUZLsj_PA@mail.gmail.com> <9511.1334071505@sss.pgh.pa.us> <CAOeZVicsfHexSnqQX_ZuFqhgcChzkViKTsNiOjMKOg9qUyRGDg@mail.gmail.com> <9745.1334072198@sss.pgh.pa.us> <4f84fd5f.a93b440a.2eed.42c4@mx.google.com> <4F85183F.6070806@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox