PL/pgSQL EXECUTE quote_ident(), and SQL injection

Поиск
Список
Период
Сортировка
От Knut P. Lehre
Тема PL/pgSQL EXECUTE quote_ident(), and SQL injection
Дата
Msg-id fb99a155433d4.4a44a260@broadpark.no
обсуждение исходный текст
Ответы Re: PL/pgSQL EXECUTE quote_ident(), and SQL injection  ("Knut P. Lehre" <knutpl@broadpark.no>)
Список pgsql-general
Is there any known way to inject SQL into a function similar to this?

create function testinjection(text,integer)
 returns void as
$BODY$
declare
begin
execute 'update '||quote_ident($1)||' set c=null where id='||$2;
return;
end;
$BODY$
language 'plpgsql' volatile security definer;
grant execute on function testinjection(text,integer) to public;

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

Предыдущее
От: "Massa, Harald Armin"
Дата:
Сообщение: Re: masking the code
Следующее
От: Nishkarsh
Дата:
Сообщение: Re: Trigger Function and backup