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

Поиск
Список
Период
Сортировка
От Sander Steffann
Тема Re: Is this a bug, possible security hole, or wrong assumption?
Дата
Msg-id 001601c20f96$c2f655f0$64c8a8c0@balefire10ww
обсуждение исходный текст
Ответ на Is this a bug, possible security hole, or wrong assumption?  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Hi,

> Mike Mascari <mascarm@mascari.com> writes:
> > What appears to me is that the rewriter is just tacking the IS NULL test
> > onto the parsed query. As a result, a function is called with data from
> > a view before the evaluation of IS NULL removes those rows from the
> > selection process. Is that right? If so, is that a security problem?
>
> You're essentially asking for a guarantee about the order of evaluation
> of WHERE clauses.  There is no such guarantee, and won't be because it
> would be a crippling blow to performance.

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...

Sander.



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

Предыдущее
От: "Joshua b. Jore"
Дата:
Сообщение: Re: Problem (bug?) with deferred foreign key checks?
Следующее
От: Diana Senn
Дата:
Сообщение: Re: Problem (bug?) with deferred foreign key checks?