aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-09-03 22:08:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-09-03 22:08:05 +0000
commit187e5d8981210c00f7f824de4926d036006d5b02 (patch)
treeb057316488fbbb3e3e5510a9cf9d8bef912ea11b /src/backend/utils/adt/xml.c
parentd0a368c65699b32212575bb573474c18c29ddef9 (diff)
downloadpostgresql-187e5d8981210c00f7f824de4926d036006d5b02.tar.gz
postgresql-187e5d8981210c00f7f824de4926d036006d5b02.zip
Disallow RESET ROLE and RESET SESSION AUTHORIZATION inside security-definer
functions. This extends the previous patch that forbade SETting these variables inside security-definer functions. RESET is equally a security hole, since it would allow regaining privileges of the caller; furthermore it can trigger Assert failures and perhaps other internal errors, since the code is not expecting these variables to change in such contexts. The previous patch did not cover this case because assign hooks don't really have enough information, so move the responsibility for preventing this into guc.c. Problem discovered by Heikki Linnakangas. Security: no CVE assigned yet, extends CVE-2007-6600
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions