Re: Is this a bug, possible security hole, or wrong

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: Is this a bug, possible security hole, or wrong
Дата
Msg-id 3D0885E1.8F369ACA@mascari.com
обсуждение исходный текст
Ответ на Is this a bug, possible security hole, or wrong assumption?  (Mike Mascari <mascarm@mascari.com>)
Ответы Re: Is this a bug, possible security hole, or wrong  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
>
> "Sander Steffann" <sander@steffann.nl> writes:
> > But he is right in that his trick works. This proves that views can not be
> > safely used for security, which is an important thing to realise...
>
> A different way to look at it is that the privilege of creating
> functions shouldn't be handed out willy-nilly.  The trick of hiding
> recording operations in a function can be used in other ways besides
> this one.

Tom,

If a user has permissions to write PL/SQL functions, and the statistics
collector is running with STATS_COMMAND_STRING = true, could not that
user "log" other users' queries using the same technique I described by
querying pg_stat_activity? If so, isn't the labeling of PL/SQL (or
PL/Tcl, PL/Perl, etc.) as 'TRUSTED' an overstatement? ;-)

Mike Mascari
mascarm@mascari.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Stephane Bortzmeyer
Дата:
Сообщение: Setting up the pgReplicator: nightmare in the dark
Следующее
От: "Jim Morcombe"
Дата:
Сообщение: Help required with installing postgreSQL on SCO Openserver