aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/complex.c
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2017-11-06 09:16:24 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2017-11-06 09:16:24 +0000
commit1f23d1cd21ed46dba882729bedd9c40b71995989 (patch)
tree0142fe633272a0d01a2b00444f3f5bc23336f480 /src/tutorial/complex.c
parent971983f42fe6e8b90490a76a649f0c92905d7d47 (diff)
downloadpostgresql-1f23d1cd21ed46dba882729bedd9c40b71995989.tar.gz
postgresql-1f23d1cd21ed46dba882729bedd9c40b71995989.zip
Always require SELECT permission for ON CONFLICT DO UPDATE.
The update path of an INSERT ... ON CONFLICT DO UPDATE requires SELECT permission on the columns of the arbiter index, but it failed to check for that in the case of an arbiter specified by constraint name. In addition, for a table with row level security enabled, it failed to check updated rows against the table's SELECT policies when the update path was taken (regardless of how the arbiter index was specified). Backpatch to 9.5 where ON CONFLICT DO UPDATE and RLS were introduced. Security: CVE-2017-15099
Diffstat (limited to 'src/tutorial/complex.c')
0 files changed, 0 insertions, 0 deletions