pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Ignore attempts to \gset into specially treated variables. 7+ messages / 1 participants [nested] [flat]
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/098fb00799ffb026ff12c64bd21635f963cfc609 Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 26 ++++++++++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 41 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/67029845b08d93108d53f572e2d58334c850126f Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 26 ++++++++++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 41 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3855e5b4767b189d4daf6e9a774e4e64be72e0ff Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 26 ++++++++++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 41 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7b356c78f67099db0bb5dc20663adcedc273c7a0 Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 26 ++++++++++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 41 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a498db87be103f93856dd515a574b2d67d3c1237 Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 26 ++++++++++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 41 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/12fd81cb7fab49ba0a5f004596e52271275deec0 Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 18 ++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 33 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Ignore attempts to \gset into specially treated variables. @ 2020-11-09 15:35 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 7+ messages in thread From: Noah Misch @ 2020-11-09 15:35 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Ignore attempts to \gset into specially treated variables. If an interactive psql session used \gset when querying a compromised server, the attacker could execute arbitrary code as the operating system account running psql. Using a prefix not found among specially treated variables, e.g. every lowercase string, precluded the attack. Fix by issuing a warning and setting no variable for the column in question. Users wanting the old behavior can use a prefix and then a meta-command like "\set HISTSIZE :prefix_HISTSIZE". Back-patch to 9.5 (all supported versions). Reviewed by Robert Haas. Reported by Nick Cleaton. Security: CVE-2020-25696 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a54dfbee1f1bad431793968918bbb8541dc860a0 Modified Files -------------- src/bin/psql/common.c | 7 +++++++ src/bin/psql/variables.c | 18 ++++++++++++++++++ src/bin/psql/variables.h | 1 + src/test/regress/expected/psql.out | 4 ++++ src/test/regress/sql/psql.sql | 3 +++ 5 files changed, 33 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-11-09 15:35 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. Noah Misch <noah@leadboat.com> 2020-11-09 15:35 pgsql: Ignore attempts to \gset into specially treated variables. 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