postgresql/src/bin/scripts
Noah Misch 254eb04f17 Obstruct shell, SQL, and conninfo injection via database and role names.
Due to simplistic quoting and confusion of database names with conninfo
strings, roles with the CREATEDB or CREATEROLE option could escalate to
superuser privileges when a superuser next ran certain maintenance
commands.  The new coding rule for PQconnectdbParams() calls, documented
at conninfo_array_parse(), is to pass expand_dbname=true and wrap
literal database names in a trivial connection string.  Escape
zero-length values in appendConnStrVal().  Back-patch to 9.1 (all
supported versions).

Nathan Bossart, Michael Paquier, and Noah Misch.  Reviewed by Peter
Eisentraut.  Reported by Nathan Bossart.

Security: CVE-2016-5424
2016-08-08 10:07:51 -04:00
..
po Translation updates 2016-05-09 10:06:37 -04:00
t Fix TAP tests to use only standard command-line argument ordering. 2015-04-04 13:34:23 -04:00
.gitignore Add TAP tests for client programs 2014-04-14 21:33:46 -04:00
clusterdb.c Obstruct shell, SQL, and conninfo injection via database and role names. 2016-08-08 10:07:51 -04:00
common.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
common.h Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
createdb.c scripts: Remove newlines from end of generated SQL 2014-02-10 21:47:19 -05:00
createlang.c Field conninfo strings throughout src/bin/scripts. 2016-08-08 10:07:51 -04:00
createuser.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
dropdb.c scripts: Remove newlines from end of generated SQL 2014-02-10 21:47:19 -05:00
droplang.c Field conninfo strings throughout src/bin/scripts. 2016-08-08 10:07:51 -04:00
dropuser.c scripts: Remove newlines from end of generated SQL 2014-02-10 21:47:19 -05:00
Makefile Clean up temp installations after client program tests. 2014-04-25 15:40:35 -04:00
nls.mk Translation updates 2014-12-15 00:23:25 -05:00
pg_isready.c Mark response messages for translation in pg_isready. 2014-11-28 02:13:57 +09:00
reindexdb.c Obstruct shell, SQL, and conninfo injection via database and role names. 2016-08-08 10:07:51 -04:00
vacuumdb.c Obstruct shell, SQL, and conninfo injection via database and role names. 2016-08-08 10:07:51 -04:00