pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend @ 2019-06-17 12:49 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2019-06-17 12:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix buffer overflow when parsing SCRAM verifiers in backend Any authenticated user can overflow a stack-based buffer by changing the user's own password to a purpose-crafted value. This often suffices to execute arbitrary code as the PostgreSQL operating system account. This fix is contributed by multiple folks, based on an initial analysis from Tom Lane. This issue has been introduced by 68e61ee, so it was possible to make use of it at authentication time. It became more easily to trigger after ccae190 which has made the SCRAM parsing more strict when changing a password, in the case where the client passes down a verifier already hashed using SCRAM. Back-patch to v10 where SCRAM has been introduced. Reported-by: Alexander Lakhin Author: Jonathan Katz, Heikki Linnakangas, Michael Paquier Security: CVE-2019-10164 Backpatch-through: 10 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/09ec55b933091cb5b0af99978718cb3d289c71b6 Modified Files -------------- src/backend/libpq/auth-scram.c | 35 ++++++++++++++++++++++++++-------- src/test/regress/expected/password.out | 23 ++++++++++++++++++++++ src/test/regress/sql/password.sql | 18 +++++++++++++++++ 3 files changed, 68 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend @ 2019-06-17 12:49 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2019-06-17 12:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix buffer overflow when parsing SCRAM verifiers in backend Any authenticated user can overflow a stack-based buffer by changing the user's own password to a purpose-crafted value. This often suffices to execute arbitrary code as the PostgreSQL operating system account. This fix is contributed by multiple folks, based on an initial analysis from Tom Lane. This issue has been introduced by 68e61ee, so it was possible to make use of it at authentication time. It became more easily to trigger after ccae190 which has made the SCRAM parsing more strict when changing a password, in the case where the client passes down a verifier already hashed using SCRAM. Back-patch to v10 where SCRAM has been introduced. Reported-by: Alexander Lakhin Author: Jonathan Katz, Heikki Linnakangas, Michael Paquier Security: CVE-2019-10164 Backpatch-through: 10 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/90adc16ea13750a6b6f704c6cf65dc0f1bdb845c Modified Files -------------- src/backend/libpq/auth-scram.c | 35 ++++++++++++++++++++++++++-------- src/test/regress/expected/password.out | 23 ++++++++++++++++++++++ src/test/regress/sql/password.sql | 18 +++++++++++++++++ 3 files changed, 68 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend @ 2019-06-17 12:49 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2019-06-17 12:49 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix buffer overflow when parsing SCRAM verifiers in backend Any authenticated user can overflow a stack-based buffer by changing the user's own password to a purpose-crafted value. This often suffices to execute arbitrary code as the PostgreSQL operating system account. This fix is contributed by multiple folks, based on an initial analysis from Tom Lane. This issue has been introduced by 68e61ee, so it was possible to make use of it at authentication time. It became more easily to trigger after ccae190 which has made the SCRAM parsing more strict when changing a password, in the case where the client passes down a verifier already hashed using SCRAM. Back-patch to v10 where SCRAM has been introduced. Reported-by: Alexander Lakhin Author: Jonathan Katz, Heikki Linnakangas, Michael Paquier Security: CVE-2019-10164 Backpatch-through: 10 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4c779ce324a15ffa0171160c52579130f25fcd3f Modified Files -------------- src/backend/libpq/auth-scram.c | 35 ++++++++++++++++++++++++++-------- src/test/regress/expected/password.out | 23 ++++++++++++++++++++++ src/test/regress/sql/password.sql | 18 +++++++++++++++++ 3 files changed, 68 insertions(+), 8 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-06-17 12:49 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-06-17 12:49 pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend Michael Paquier <michael@paquier.xyz> 2019-06-17 12:49 pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend Michael Paquier <michael@paquier.xyz> 2019-06-17 12:49 pgsql: Fix buffer overflow when parsing SCRAM verifiers in backend Michael Paquier <michael@paquier.xyz>
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