pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Ensure that all temp files made during pg_upgrade are non-world-
6+ messages / 1 participants
[nested] [flat]

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a926eb84e07a604da6d059eca1fd87f919bb5d7a

Modified Files
--------------
src/bin/pg_upgrade/dump.c       | 10 ----------
src/bin/pg_upgrade/file.c       | 15 ---------------
src/bin/pg_upgrade/pg_upgrade.c |  4 ++++
src/bin/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 7 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6ba52aeb24e62586b51e77723d87627c18a844ca

Modified Files
--------------
src/bin/pg_upgrade/dump.c       | 10 ----------
src/bin/pg_upgrade/file.c       | 15 ---------------
src/bin/pg_upgrade/pg_upgrade.c |  4 ++++
src/bin/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 7 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1341e017dffee00fb245081ec5a11d3b93d9aafb

Modified Files
--------------
src/bin/pg_upgrade/dump.c       | 10 ----------
src/bin/pg_upgrade/file.c       | 15 ---------------
src/bin/pg_upgrade/pg_upgrade.c |  3 +++
src/bin/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 6 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/17aa0236811eb080dde7fb16ca70cb1283ad016a

Modified Files
--------------
src/bin/pg_upgrade/dump.c       | 10 ----------
src/bin/pg_upgrade/file.c       | 14 --------------
src/bin/pg_upgrade/pg_upgrade.c |  3 +++
src/bin/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 6 insertions(+), 25 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c3456208d1d4b281417c1e43fd24d211bf35ec95

Modified Files
--------------
contrib/pg_upgrade/dump.c       | 10 ----------
contrib/pg_upgrade/file.c       | 14 --------------
contrib/pg_upgrade/pg_upgrade.c |  3 +++
contrib/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 6 insertions(+), 25 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Ensure that all temp files made during pg_upgrade are non-world-
@ 2018-02-05 15:58  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2018-02-05 15:58 UTC (permalink / raw)
  To: pgsql-committers

Ensure that all temp files made during pg_upgrade are non-world-readable.

pg_upgrade has always attempted to ensure that the transient dump files
it creates are inaccessible except to the owner.  However, refactoring
in commit 76a7650c4 broke that for the file containing "pg_dumpall -g"
output; since then, that file was protected according to the process's
default umask.  Since that file may contain role passwords (hopefully
encrypted, but passwords nonetheless), this is a particularly unfortunate
oversight.  Prudent users of pg_upgrade on multiuser systems would
probably run it under a umask tight enough that the issue is moot, but
perhaps some users are depending only on pg_upgrade's umask changes to
protect their data.

To fix this in a future-proof way, let's just tighten the umask at
process start.  There are no files pg_upgrade needs to write at a
weaker security level; and if there were, transiently relaxing the
umask around where they're created would be a safer approach.

Report and patch by Tom Lane; the idea for the fix is due to Noah Misch.
Back-patch to all supported branches.

Security: CVE-2018-1053

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9c59e48a22aa150c4d63017955328d87bea1cd29

Modified Files
--------------
contrib/pg_upgrade/dump.c       | 10 ----------
contrib/pg_upgrade/file.c       | 14 --------------
contrib/pg_upgrade/pg_upgrade.c |  3 +++
contrib/pg_upgrade/pg_upgrade.h |  4 +++-
4 files changed, 6 insertions(+), 25 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2018-02-05 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>
2018-02-05 15:58 pgsql: Ensure that all temp files made during pg_upgrade are non-world- Tom Lane <tgl@sss.pgh.pa.us>

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