pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: 798604270@qq.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18936: Trigger enable users to modify the tables which he doesn't have privilege
Date: Wed, 21 May 2025 08:17:53 +0200
Message-ID: <c842110a59d8c273c2edecc3510e2c3a4bca3d3c.camel@cybertec.at> (raw)
In-Reply-To: <18936-197af1cbbd49156f@postgresql.org>
References: <18936-197af1cbbd49156f@postgresql.org>

On Tue, 2025-05-20 at 13:07 +0000, PG Bug reporting form wrote:
> If an attacker gains privileges on a table, they can exploit triggers to
> modify or exfiltrate data from other tables, provided the trigger can be
> activated by either a superuser or a user with privileges on the target
> tables.

That's working as designed.
If a superuser performs a data modification on a table owned by an
untrustworthy user, it is "game over".
That is one of the reasons why you should use a superuser only for tasks
that require superuser privileges.

Yours,
Laurenz Albe





view thread (4+ messages)  latest in thread

Message-ID: <c842110a59d8c273c2edecc3510e2c3a4bca3d3c.camel@cybertec.at>
Permalink:  ../c842110a59d8c273c2edecc3510e2c3a4bca3d3c.camel@cybertec.at/
Also on:    postgresql.org/message-id/c842110a59d8c273c2edecc3510e2c3a4bca3d3c.camel@cybertec.at

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: laurenz.albe@cybertec.at, 798604270@qq.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18936: Trigger enable users to modify the tables which he doesn't have privilege
  In-Reply-To: <c842110a59d8c273c2edecc3510e2c3a4bca3d3c.camel@cybertec.at>

* 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