Re: [HACKERS] Possible make_oidjoins_check Security Issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Possible make_oidjoins_check Security Issue
Дата
Msg-id 17913.1099522533@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Possible make_oidjoins_check Security Issue  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [HACKERS] Possible make_oidjoins_check Security Issue
Список pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> From a public relations perspective and a code reuse perspective I think
> we should create temporary tables securely.  The attached applied patch
> fixes contrib/findoidjoins/make_oidjoins_check.

... and creates issues of its own, such as attempting an rm -rf on
something that it shouldn't.  At the very least don't install the trap
until after creating the directory successfully.

I really think this is a waste of time though.  The current code creates
the temp files in the current directory, and if the bad guy has write
access on that directory you are already screwed (for instance, what's
to stop him from altering the script file itself to do anything at all
when you run it?).  I do not think that putting stuff back into /tmp is
an improvement; that just adds risks where none exist now.

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Possible make_oidjoins_check Security Issue
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Possible make_oidjoins_check Security Issue