pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data 6+ messages / 1 participants [nested] [flat]
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/7b758b7d605aca10b36aa1c26bbf16c33f8ac726 Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/fba1fb4efba51587cd0a9817af1f3e629caf157a Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0ba20043129280c6d076c80cc60e3f73880b9ea4 Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/85270ac7a24a50d43ba4bd4d7af1e28b14dee7ee Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b84e5c017cca6a5f259899f525b077497d35da47 Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
* pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data @ 2015-05-18 14:04 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2015-05-18 14:04 UTC (permalink / raw) To: pgsql-committers pgcrypto: Report errant decryption as "Wrong key or corrupt data". This has been the predominant outcome. When the output of decrypting with a wrong key coincidentally resembled an OpenPGP packet header, pgcrypto could instead report "Corrupt data", "Not text data" or "Unsupported compression algorithm". The distinct "Corrupt data" message added no value. The latter two error messages misled when the decrypted payload also exhibited fundamental integrity problems. Worse, error message variance in other systems has enabled cryptologic attacks; see RFC 4880 section "14. Security Considerations". Whether these pgcrypto behaviors are likewise exploitable is unknown. In passing, document that pgcrypto does not resist side-channel attacks. Back-patch to 9.0 (all supported versions). Security: CVE-2015-3167 Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/e5981aebde61521d8dcace6f45b52d1dc9035a90 Modified Files -------------- contrib/pgcrypto/expected/pgp-decrypt.out | 51 ++++++++++++++++ contrib/pgcrypto/expected/pgp-pubkey-decrypt.out | 4 +- contrib/pgcrypto/mbuf.c | 2 +- contrib/pgcrypto/pgp-decrypt.c | 70 ++++++++++++++++------ contrib/pgcrypto/pgp.h | 4 +- contrib/pgcrypto/px.c | 3 - contrib/pgcrypto/px.h | 2 - contrib/pgcrypto/sql/pgp-decrypt.sql | 45 ++++++++++++++ doc/src/sgml/pgcrypto.sgml | 8 +++ 9 files changed, 162 insertions(+), 27 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] 6+ messages in thread
end of thread, other threads:[~2015-05-18 14:04 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data Noah Misch <noah@leadboat.com> 2015-05-18 14:04 pgsql: pgcrypto: Report errant decryption as "Wrong key or corrupt data 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