aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/createuser.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2020-02-10 11:47:09 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2020-02-10 11:47:09 -0300
commitbdd19e48a8c14e4e2a5edac7a6dc23de842ccdd6 (patch)
tree592c0b3b0909f8c3cc4a495e2745b462f6e4f0ae /src/bin/scripts/createuser.c
parentc59b0be9885b40e1a555ece5d3d848575542ee8d (diff)
downloadpostgresql-bdd19e48a8c14e4e2a5edac7a6dc23de842ccdd6.tar.gz
postgresql-bdd19e48a8c14e4e2a5edac7a6dc23de842ccdd6.zip
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
Diffstat (limited to 'src/bin/scripts/createuser.c')
0 files changed, 0 insertions, 0 deletions