Re: Application name patch - v2

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Application name patch - v2
Дата
Msg-id 4ADC2689.1020300@dunslane.net
обсуждение исходный текст
Ответ на Re: Application name patch - v2  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Application name patch - v2  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers

Pavel Stehule wrote:
> 2009/10/19 Dave Page <dpage@pgadmin.org>:
>   
>> On Mon, Oct 19, 2009 at 8:54 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
>>     
>>> I dislike write access to app name guc for user too. It's not safe.
>>> Maybe only super user can do it?
>>>       
>> That'll render it pretty useless, as most applications wouldn't then
>> be able to set/reset it when it makes sense to do so.
>>     
>
> But application can do it simply via connection string, no? Mostly
> applications has connection string in configuration, so I don't see
> problem there. And if I would to allow access, then I could to wrap
> setting to security definer function.
>
> I see this as security hole. It allows special SQL injection.
>
>   


How is it any more a security hole than any other setting that the user 
can alter with an arbitrary string value (e.g. custom options)?

cheers

andrew




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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Application name patch - v2
Следующее
От: Dave Page
Дата:
Сообщение: Re: Application name patch - v2