postgresql/src/include
Noah Misch 582edc369c Empty search_path in Autovacuum and non-psql/pgbench clients.
This makes the client programs behave as documented regardless of the
connect-time search_path and regardless of user-created objects.  Today,
a malicious user with CREATE permission on a search_path schema can take
control of certain of these clients' queries and invoke arbitrary SQL
functions under the client identity, often a superuser.  This is
exploitable in the default configuration, where all users have CREATE
privilege on schema "public".

This changes behavior of user-defined code stored in the database, like
pg_index.indexprs and pg_extension_config_dump().  If they reach code
bearing unqualified names, "does not exist" or "no schema has been
selected to create in" errors might appear.  Users may fix such errors
by schema-qualifying affected names.  After upgrading, consider watching
server logs for these errors.

The --table arguments of src/bin/scripts clients have been lax; for
example, "vacuumdb -Zt pg_am\;CHECKPOINT" performed a checkpoint.  That
now fails, but for now, "vacuumdb -Zt 'pg_am(amname);CHECKPOINT'" still
performs a checkpoint.

Back-patch to 9.3 (all supported versions).

Reviewed by Tom Lane, though this fix strategy was not his first choice.
Reported by Arseniy Sharoglazov.

Security: CVE-2018-1058
2018-02-26 07:39:44 -08:00
..
access Support all SQL:2011 options for window frame clauses. 2018-02-07 00:06:56 -05:00
bootstrap Update copyright for 2018 2018-01-02 23:30:12 -05:00
catalog Add window RANGE support for float4, float8, numeric. 2018-02-24 13:23:38 -05:00
commands Support parameters in CALL 2018-02-22 21:36:48 -05:00
common Return implementation defined value if pg_$op_s$bit_overflow overflows. 2018-02-14 14:23:57 -08:00
datatype Update copyright for 2018 2018-01-02 23:30:12 -05:00
executor Be lazier about partition tuple routing. 2018-02-22 10:55:54 -05:00
fe_utils Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
foreign Update copyright for 2018 2018-01-02 23:30:12 -05:00
lib Remove some inappropriate #includes. 2018-02-16 12:14:08 -05:00
libpq Use abstracted SSL API in server connection log messages 2018-01-26 09:50:46 -05:00
mb Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Add a new upper planner relation for partially-aggregated results. 2018-02-26 09:32:32 -05:00
optimizer Add a new upper planner relation for partially-aggregated results. 2018-02-26 09:32:32 -05:00
parser Allow UNIQUE indexes on partitioned tables 2018-02-19 17:40:00 -03:00
port Remove outdated/removed Win32 URLs in C comments 2018-01-09 18:33:21 -05:00
portability Update copyright for 2018 2018-01-02 23:30:12 -05:00
postmaster Update copyright for 2018 2018-01-02 23:30:12 -05:00
regex Update copyright for 2018 2018-01-02 23:30:12 -05:00
replication Ability to advance replication slots 2018-01-17 11:38:34 +00:00
rewrite Update copyright for 2018 2018-01-02 23:30:12 -05:00
snowball Update copyright for 2018 2018-01-02 23:30:12 -05:00
statistics Update copyright for 2018 2018-01-02 23:30:12 -05:00
storage Fix crash when canceling parallel query 2018-02-16 16:21:24 -05:00
tcop Replace GrantObjectType with ObjectType 2018-01-19 14:01:14 -05:00
tsearch Update copyright for 2018 2018-01-02 23:30:12 -05:00
utils Refactor format_type APIs to be more modular 2018-02-17 19:02:15 -03:00
.gitignore
c.h Fix StaticAssertExpr() under C++ 2018-02-18 22:28:11 -05:00
fmgr.h Remove prototype for fmgr() function, which no longer exists. 2018-02-07 08:42:36 -05:00
funcapi.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
getaddrinfo.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
getopt_long.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile
miscadmin.h Mark assorted GUC variables as PGDLLIMPORT. 2018-02-09 15:54:45 -05:00
pg_config_ext.h.in
pg_config_ext.h.win32
pg_config_manual.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_config.h.in Another attempt at fixing build with various OpenSSL versions 2018-01-04 19:09:27 -05:00
pg_config.h.win32
pg_getopt.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_trace.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgstat.h Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
pgtar.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgtime.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
port.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
postgres_ext.h
postgres_fe.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
postgres.h Move the extern declaration for ExceptionalCondition into c.h. 2018-02-14 19:43:33 -05:00
rusagestub.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
windowapi.h Update copyright for 2018 2018-01-02 23:30:12 -05:00