pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Document security implications of check_function_bodies.
19+ messages / 1 participants
[nested] [flat]
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/30b1c40f98e5e4d0f3d8ec7673f3fbb8ae8ee43f
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
doc/src/sgml/plhandler.sgml | 12 +++++++-----
2 files changed, 12 insertions(+), 8 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/540b4e5bc85f7e44842493a810b04a84881db20f
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
doc/src/sgml/plhandler.sgml | 12 +++++++-----
2 files changed, 12 insertions(+), 8 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/c38c3080cb43e78bd1d082ad1ec3ad2af89c2601
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
doc/src/sgml/plhandler.sgml | 12 +++++++-----
2 files changed, 12 insertions(+), 8 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
REL9_0_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/05514838ba7782c6719a0fcd119643ecdb92d64e
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
doc/src/sgml/plhandler.sgml | 12 +++++++-----
2 files changed, 12 insertions(+), 8 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/338daafe01c31fd8962965a882f2d5b878ea3183
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
doc/src/sgml/plhandler.sgml | 12 +++++++-----
2 files changed, 12 insertions(+), 8 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of check_function_bodies.
@ 2014-02-17 15:05 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2014-02-17 15:05 UTC (permalink / raw)
To: pgsql-committers
Document security implications of check_function_bodies.
Back-patch to 8.4 (all supported versions).
Branch
------
REL8_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/09e2d4c145a6d796271cb8731c6201d76d0a0e9c
Modified Files
--------------
doc/src/sgml/config.sgml | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5770172cb0c9df9e6ce27c507b449557e5b45124
Modified Files
--------------
doc/src/sgml/config.sgml | 10 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/ref/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 100 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ee0d1966e5177816cf9e1ec28957774cddc2b742
Modified Files
--------------
doc/src/sgml/config.sgml | 11 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/ref/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 101 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
REL9_4_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/f28955e382ee4249ab4283a85664e43c1f635ee9
Modified Files
--------------
doc/src/sgml/config.sgml | 11 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 101 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/70396dbe324e5e27e79908cdb7b183e13f326364
Modified Files
--------------
doc/src/sgml/config.sgml | 11 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/ref/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 101 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
REL9_3_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/41ee473a49b9990cac276e5b8e12a96615997f8c
Modified Files
--------------
doc/src/sgml/config.sgml | 11 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 101 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of search_path and the public sch
@ 2018-02-26 15:42 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-02-26 15:42 UTC (permalink / raw)
To: pgsql-committers
Document security implications of search_path and the public schema.
The ability to create like-named objects in different schemas opens up
the potential for users to change the behavior of other users' queries,
maliciously or accidentally. When you connect to a PostgreSQL server,
you should remove from your search_path any schema for which a user
other than yourself or superusers holds the CREATE privilege. If you do
not, other users holding CREATE privilege can redefine the behavior of
your commands, causing them to perform arbitrary SQL statements under
your identity. "SET search_path = ..." and "SELECT
pg_catalog.set_config(...)" are not vulnerable to such hijacking, so one
can use either as the first command of a session. As special
exceptions, the following client applications behave as documented
regardless of search_path settings and schema privileges: clusterdb
createdb createlang createuser dropdb droplang dropuser ecpg (not
programs it generates) initdb oid2name pg_archivecleanup pg_basebackup
pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_isready
pg_receivewal pg_recvlogical pg_resetwal pg_restore pg_rewind pg_standby
pg_test_fsync pg_test_timing pg_upgrade pg_waldump reindexdb vacuumdb
vacuumlo. Not included are core client programs that run user-specified
SQL commands, namely psql and pgbench. PostgreSQL encourages non-core
client applications to do likewise.
Document this in the context of libpq connections, psql connections,
dblink connections, ECPG connections, extension packaging, and schema
usage patterns. The principal defense for applications is "SELECT
pg_catalog.set_config('search_path', '', false)", and the principal
defense for databases is "REVOKE CREATE ON SCHEMA public FROM PUBLIC".
Either one is sufficient to prevent attack. After a REVOKE, consider
auditing the public schema for objects named like pg_catalog objects.
Authors of SECURITY DEFINER functions use some of the same defenses, and
the CREATE FUNCTION reference page already covered them thoroughly.
This is a good opportunity to audit SECURITY DEFINER functions for
robust security practice.
Back-patch to 9.3 (all supported versions).
Reviewed by Michael Paquier and Jonathan S. Katz. Reported by Arseniy
Sharoglazov.
Security: CVE-2018-1058
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1f47ea7b87185ff370ef9b27ea7c561c58583be3
Modified Files
--------------
doc/src/sgml/config.sgml | 11 +++--
doc/src/sgml/contrib.sgml | 2 +-
doc/src/sgml/dblink.sgml | 36 ++++++++++-----
doc/src/sgml/ddl.sgml | 94 ++++++++++++++++++++++++++++------------
doc/src/sgml/ecpg.sgml | 29 +++++++++++++
doc/src/sgml/extend.sgml | 56 +++++++++++++++++-------
doc/src/sgml/libpq.sgml | 82 ++++++++++++++++++++++++++++-------
doc/src/sgml/lobj.sgml | 11 +++++
doc/src/sgml/ref/pgbench.sgml | 11 +++++
doc/src/sgml/ref/psql-ref.sgml | 12 +++++
doc/src/sgml/user-manag.sgml | 15 ++++---
src/test/examples/testlibpq.c | 21 ++++++---
src/test/examples/testlibpq2.c | 29 +++++++++----
src/test/examples/testlibpq2.sql | 4 +-
src/test/examples/testlibpq3.c | 13 +++++-
src/test/examples/testlibpq3.sql | 3 +-
src/test/examples/testlibpq4.c | 19 ++++++--
src/test/examples/testlo.c | 11 +++++
src/test/examples/testlo64.c | 11 +++++
19 files changed, 369 insertions(+), 101 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a117c7a7b62f8978052b69e8e3bfdf8f8099a61d
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/ca4a6de17432bec94988a44de990481f0e18ab22
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/5eecc1cafdbddb21def03e4dd52eb8acf66b6efd
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e09144e6ce2b3ec120d0405ead2b062183f26c6b
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL9_4_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/8c477a42eb9bdb91e7361645c3c343578000cb4a
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/002596d97387c71e23893415b8aecc83b529a0b2
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
src/backend/utils/adt/ruleutils.c | 15 ++---
6 files changed, 147 insertions(+), 33 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
* pgsql: Document security implications of qualified names.
@ 2018-07-29 03:14 Noah Misch <noah@leadboat.com>
0 siblings, 0 replies; 19+ messages in thread
From: Noah Misch @ 2018-07-29 03:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Document security implications of qualified names.
Commit 5770172cb0c9df9e6ce27c507b449557e5b45124 documented secure schema
usage, and that advice suffices for using unqualified names securely.
Document, in typeconv-func primarily, the additional issues that arise
with qualified names. Back-patch to 9.3 (all supported versions).
Reviewed by Jonathan S. Katz.
Discussion: https://postgr.es/m/20180721012446.GA1840594@rfd.leadboat.com
Branch
------
REL9_3_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c0550994489d76427b2b3301841f65161c3e70ad
Modified Files
--------------
doc/src/sgml/ddl.sgml | 15 +++--
doc/src/sgml/ref/create_function.sgml | 14 +++--
doc/src/sgml/syntax.sgml | 8 +++
doc/src/sgml/typeconv.sgml | 103 ++++++++++++++++++++++++++++++++--
doc/src/sgml/xfunc.sgml | 25 ++++++---
5 files changed, 142 insertions(+), 23 deletions(-)
^ permalink raw reply [nested|flat] 19+ messages in thread
end of thread, other threads:[~2018-07-29 03:14 UTC | newest]
Thread overview: 19+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2014-02-17 15:05 pgsql: Document security implications of check_function_bodies. Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-02-26 15:42 pgsql: Document security implications of search_path and the public sch Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
2018-07-29 03:14 pgsql: Document security implications of qualified names. Noah Misch <noah@leadboat.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox