Skip to content

Commit

Permalink
Update to version v2.6.2-1 to fix PGP vulnerability: EFAIL attack
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyennv committed May 16, 2018
1 parent 73a52e3 commit 2da4450
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions openpgp_zimbra_secure/js/openpgpjs/openpgp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5196,7 +5196,7 @@ exports.default = {
tolerant: true, // ignore unsupported/unrecognizable packets instead of throwing an error
show_version: true,
show_comment: true,
versionstring: "OpenPGP.js v2.6.2",
versionstring: "OpenPGP.js v2.6.2-1",
commentstring: "https://openpgpjs.org",
keyserver: "https://keyserver.ubuntu.com",
node_store: './openpgp.store'
Expand Down Expand Up @@ -20111,9 +20111,9 @@ SymmetricallyEncrypted.prototype.write = function () {
*/
SymmetricallyEncrypted.prototype.decrypt = function (sessionKeyAlgorithm, key) {
var decrypted = _crypto2.default.cfb.decrypt(sessionKeyAlgorithm, key, this.encrypted, true);
// for modern cipher (blocklength != 64 bit, except for Twofish) MDC is required
if (!this.ignore_mdc_error && (sessionKeyAlgorithm === 'aes128' || sessionKeyAlgorithm === 'aes192' || sessionKeyAlgorithm === 'aes256')) {
throw new Error('Decryption failed due to missing MDC in combination with modern cipher.');
// If MDC errors are not being ignored, all missing MDC packets in symmetrically encrypted data should throw an error
if (!this.ignore_mdc_error) {
throw new Error('Decryption failed due to missing MDC.');
}
this.packets.read(decrypted);

Expand Down
4 changes: 2 additions & 2 deletions openpgp_zimbra_secure/js/openpgpjs/openpgp.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openpgp_zimbra_secure/js/openpgpjs/openpgp.worker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2da4450

Please sign in to comment.