From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alexander Petrossian <alexander.petrossian@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: Александр Петросян <paf@yandex.ru>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: debugger from superuser only.... why?
Date: Wed, 27 Sep 2023 09:52:09 -0400
Message-ID: <598114.1695822729@sss.pgh.pa.us> (raw)
In-Reply-To: <938407CE-46E9-4699-AB0C-DB02F2755B2A@gmail.com>
References: <6006191695187640@mail.yandex.ru>
<CAKoxK+4AsQCWNLriWeo3R2G9fuGcxyC=eWijb4H6eN3N8ymBJg@mail.gmail.com>
<086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com>
<170505.1695652114@sss.pgh.pa.us>
<938407CE-46E9-4699-AB0C-DB02F2755B2A@gmail.com>
Alexander Petrossian <alexander.petrossian@gmail.com> writes:
> 25 сент. 2023 г., в 17:28, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
>> you’d have a big problem with being able to change the behavior of
>> security-definer functions.
> Could you please elaborate on this, Tom?
pldebugger allows you to change the contents of a function's
local variables. Obviously the threat level would depend a lot
on the details of the particular function, but it's not hard
to envision cases where that would be enough to make the function
do something other than what it was supposed to.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, alexander.petrossian@gmail.com, fluca1978@gmail.com, paf@yandex.ru
Subject: Re: debugger from superuser only.... why?
In-Reply-To: <598114.1695822729@sss.pgh.pa.us>
References: <6006191695187640@mail.yandex.ru> <CAKoxK+4AsQCWNLriWeo3R2G9fuGcxyC=eWijb4H6eN3N8ymBJg@mail.gmail.com> <086C5BA0-7B8F-42EE-ABEC-3EF403D1599B@gmail.com> <170505.1695652114@sss.pgh.pa.us> <938407CE-46E9-4699-AB0C-DB02F2755B2A@gmail.com> <598114.1695822729@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox