Re: Bugtraq: Having Fun With PostgreSQL - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Bugtraq: Having Fun With PostgreSQL
Date
Msg-id 20070627193320.GL7531@tamriel.snowman.net
Whole thread Raw
In response to Re: Bugtraq: Having Fun With PostgreSQL  (Florian Pflug <fgp.phlo.org@gmail.com>)
List pgsql-hackers
* Florian Pflug (fgp.phlo.org@gmail.com) wrote:
> Stephen Frost wrote:
> >Uh, have the admin create appropriate views.
> I meant letting them use it to connect to abitrary databases and hosts, not
> executing only predefined quries. My wording wasn't clear in that regard,
> though.

Perhaps I wasn't clear.  My response to that is "don't.".  It's not a
safe or sane thing for a user to be able to do.

> >I disagree.  What dblink *does* is insecure and in general *shouldn't*
> >be something regular users can do.  That goes well and beyond just the
> >ident case, imv, but it's handy thing to point to atm.

> I fail to see why dblink is any more insecure than, say, plpgsql or
> plperl (not plperlu). It doesn't give any more priviliges than pgsql
> would. The only exception IMHO are privileges that you get because
> dblink issues that connection from a specific machine as a specific user.

Trusted languages shouldn't be able to open socket connections.  If
plpgsql (erm, don't think so) or plperl (I hope it can't...) can do that
then they should be marked as untrusted.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: R: [postgresql-it] no cascade triggers?
Next
From: Doug Knight
Date:
Subject: Capturing binary and other output destined for "make install"