* Tom Lane ([EMAIL PROTECTED]) wrote:
> Gregory Stark <[EMAIL PROTECTED]> writes:
> > All that really has to happen is that dblink should by default not be
> > callable by any user other than Postgres.
> Yeah, that is not an unreasonable change.  Someone suggested it far
> upthread, but we seem to have gotten distracted :-(

Indeed, I know I did, though I think there were others also. :)

> > The only problem with this is that dblink provides 36 different functions
> I think just having the install script revoke public execute access
> on the connection-establishing functions would be sufficient.  There
> are only two of 'em.

Agreed.  We might want to mention this issue in the documentation
somewhere also, though I'm not really sure where. :/  Basically:

"Be very careful with functions which allow a user to make a remote
connection (eg: dblink).  When ident is used as an authentication
mechanism it may be possible for a regular user to gain superuser
priviledges.  Functions run in the database backend, which runs as
the OS user the backend was started under.  Therefore, connections from
the database backend will be authenticated as the OS user the backend
was started under would be- which using ident generally means a
password-less connection to the database superuser account by means of a
local filesystem socket."



Attachment: signature.asc
Description: Digital signature

Reply via email to