]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix priv checks for ALTER <object> DEPENDS ON EXTENSION
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 10 Feb 2020 14:47:09 +0000 (11:47 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 10 Feb 2020 15:06:25 +0000 (12:06 -0300)
commite8b8eb937642f56725d4bc025ea7fa57caf6992c
tree2280dc153995b0b930640eeab4ac9441c417a8b1
parent384ecd6efed809fecce08224c7cd37241cc0c602
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
src/backend/commands/alter.c