pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix priv checks for ALTER <object> DEPENDS ON EXTENSION
Date: Mon, 10 Feb 2020 15:07:37 +0000
Message-ID: <E1j1Aev-0000dB-Pv@gemulon.postgresql.org> (raw)

Fix priv checks for ALTER <object> DEPENDS ON EXTENSION

Marking an object as dependant on an extension did not have any
privilege check whatsoever; this allowed any user to mark objects as
droppable by anyone able to DROP EXTENSION, which could be used to cause
system-wide havoc.  Disallow by checking that the calling user owns the
mentioned object.

(No constraints are placed on the extension.)

Security: CVE-2020-1720
Reported-by: Tom Lane
Discussion: 31605.1566429043@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b048f558dd7c26a0c630a2cff29d3d8981eaf6b9

Modified Files
--------------
src/backend/commands/alter.c | 11 +++++++++++
1 file changed, 11 insertions(+)



view thread (5+ messages)  latest in thread

Message-ID: <E1j1Aev-0000dB-Pv@gemulon.postgresql.org>
Permalink:  ../E1j1Aev-0000dB-Pv@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1j1Aev-0000dB-Pv@gemulon.postgresql.org

 · 

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 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-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Fix priv checks for ALTER <object> DEPENDS ON EXTENSION
  In-Reply-To: <E1j1Aev-0000dB-Pv@gemulon.postgresql.org>
  References: <E1j1Aev-0000dB-Pv@gemulon.postgresql.org>

* 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