Browse Source

Implement shasum & signature check on auto-update

develop
meriadec 6 years ago
parent
commit
e86af19888
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 1
      package.json
  2. 5
      src/config/errors.js
  3. 32
      src/main/autoUpdate.js
  4. 11
      src/main/bridge.js
  5. 86
      src/main/updater/createAppUpdater.js
  6. 62
      src/main/updater/createElectronAppUpdater.js
  7. 40
      src/main/updater/createMockAppUpdater.js
  8. 111
      src/main/updater/ledger-pubkey.js
  9. 33
      src/main/updater/mocks/mock-privkey-1.asc
  10. 33
      src/main/updater/mocks/mock-privkey-2.asc
  11. 19
      src/main/updater/mocks/mock-pubkey-1.asc
  12. 19
      src/main/updater/mocks/mock-pubkey-2.asc
  13. 52
      src/main/updater/mocks/pubkey-1.asc
  14. 52
      src/main/updater/mocks/pubkey-2.asc
  15. 1
      src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage
  16. 1
      src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum
  17. 16
      src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig
  18. 3
      src/main/updater/mocks/sigko-shasumok/update-info.json
  19. 1
      src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage
  20. 1
      src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum
  21. 16
      src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig
  22. 3
      src/main/updater/mocks/sigok-shasumko/update-info.json
  23. 1
      src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage
  24. 1
      src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum
  25. 16
      src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig
  26. 3
      src/main/updater/mocks/sigok-shasumok/update-info.json
  27. 40
      src/main/updater/pgpHelper.js
  28. 114
      src/main/updater/updater.spec.js
  29. 111
      yarn.lock

1
package.json

@ -69,6 +69,7 @@
"lru-cache": "^4.1.3",
"measure-scrollbar": "^1.1.0",
"moment": "^2.22.2",
"openpgp": "^4.2.1",
"qrcode": "^1.2.0",
"qrloop": "0.8.1",
"qs": "^6.5.1",

5
src/config/errors.js

@ -51,3 +51,8 @@ export const FeeNotLoaded = createCustomErrorClass('FeeNotLoaded')
export const NoDBPathGiven = createCustomErrorClass('NoDBPathGiven')
export const DBWrongPassword = createCustomErrorClass('DBWrongPassword')
export const DBNotReset = createCustomErrorClass('DBNotReset')
// auto-update errors
export const UpdateIncorrectHash = createCustomErrorClass('UpdateIncorrectHash')
export const UpdateIncorrectSig = createCustomErrorClass('UpdateIncorrectSig')
export const UpdateFetchFileFail = createCustomErrorClass('UpdateFetchFileFail')

32
src/main/autoUpdate.js

@ -1,32 +0,0 @@
// @flow
import { app, BrowserWindow } from 'electron'
import { autoUpdater } from 'electron-updater'
type SendFunction = (type: string, data: *) => void
export default (notify: SendFunction) => {
autoUpdater.on('checking-for-update', () => notify('checking'))
autoUpdater.on('update-available', info => notify('updateAvailable', info))
autoUpdater.on('update-not-available', () => notify('updateNotAvailable'))
autoUpdater.on('error', err => notify('error', err))
autoUpdater.on('download-progress', progress => notify('downloadProgress', progress))
autoUpdater.on('update-downloaded', () => notify('downloaded'))
autoUpdater.checkForUpdatesAndNotify()
}
export function quitAndInstall() {
setImmediate(() => {
const browserWindows = BrowserWindow.getAllWindows()
// Fixes quitAndInstall not quitting on macOS, as suggested on
// https://github.com/electron-userland/electron-builder/issues/1604#issuecomment-306709572
app.removeAllListeners('window-all-closed')
browserWindows.forEach(browserWindow => {
browserWindow.removeAllListeners('close')
})
autoUpdater.quitAndInstall(false)
})
}

11
src/main/bridge.js

@ -12,7 +12,6 @@ import user from 'helpers/user'
import { resolveLogsDirectory, cleanUpBeforeClosingSync } from 'helpers/log'
import { deserializeError } from 'helpers/errors'
import setupAutoUpdater, { quitAndInstall } from './autoUpdate'
import { setInternalProcessPID } from './terminator'
import { getMainWindow } from './app'
@ -145,13 +144,3 @@ ipcMain.on('sentryLogsChanged', (event, payload) => {
if (!p) return
p.send({ type: 'sentryLogsChanged', payload })
})
// TODO move this to "command" pattern
ipcMain.on('updater', (event, { type, data }) => {
const handler = {
init: setupAutoUpdater,
quitAndInstall,
}[type]
const send = (type: string, data: *) => event.sender.send('updater', { type, data })
handler(send, data, type)
})

86
src/main/updater/createAppUpdater.js

@ -0,0 +1,86 @@
// @flow
import { UpdateIncorrectHash, UpdateIncorrectSig } from 'config/errors'
import * as pgpHelper from './pgpHelper'
type Opts = {
filename: string,
computeHash: () => Promise<string>,
getNextKey: (?string) => Promise<string>,
getNextKeySignature: string => Promise<string>,
getHashFile: () => Promise<string>,
getHashFileSignature: () => Promise<string>,
}
export default function createAppUpdater(opts: Opts): { verify: () => Promise<void> } {
const {
filename,
computeHash,
getNextKey,
getNextKeySignature,
getHashFile,
getHashFileSignature,
} = opts
// main logic:
// - fetch hashFile + its signature
// - verify signature
// - compare hash with update hash
// throw if any step fail.
async function verify() {
const [hashFile, hashFileSignature] = await Promise.all([getHashFile(), getHashFileSignature()])
await verifyHashFileSignature(hashFile, hashFileSignature, await getNextKey())
await compareHash(hashFile)
}
// compute the update hash and compare it to the hash located in hash file
async function compareHash(hashFile) {
const computedHash = await computeHash()
const hashFromFile = extractHashFromHashFile(hashFile, filename)
if (hashFromFile !== computedHash) {
throw new UpdateIncorrectHash(computedHash)
}
}
// verify hash signature with given pubkey
// if it fails, try to get next key and repeat
// if no more key, throw
async function verifyHashFileSignature(hash, sigContent, pubKey) {
try {
await pgpHelper.verify(hash, sigContent, pubKey)
} catch (err) {
try {
const nextPubKey = await getNextPubKey(pubKey)
await verifyHashFileSignature(hash, sigContent, nextPubKey)
} catch (err) {
throw new UpdateIncorrectSig()
}
}
}
// fetch the next pubkey based on the previous key fingerprint
// also fetch signature, and verify against previous pubkey
async function getNextPubKey(pubKey) {
const fingerprint = await pgpHelper.getFingerprint(pubKey)
const nextPubKey = await getNextKey(fingerprint)
const nextPubKeySignature = await getNextKeySignature(fingerprint)
await pgpHelper.verify(nextPubKey, nextPubKeySignature, pubKey)
return nextPubKey
}
return {
verify,
}
}
// a hash file looks like: "<hash> <filename>\n<hash> <filename>"
// we only need the hash for the given filename
function extractHashFromHashFile(hashFile, filename) {
let hash
hashFile.split('\n').find(r => {
const row = r.split(/\s+/)
hash = row[1] === filename ? row[0] : ''
return !!hash
})
return hash
}

62
src/main/updater/createElectronAppUpdater.js

@ -0,0 +1,62 @@
// @flow
import crypto from 'crypto'
import path from 'path'
import fs from 'fs'
import network from 'api/network'
import { UpdateFetchFileFail } from 'config/errors'
import { fsReadFile } from 'helpers/fs'
import createAppUpdater from './createAppUpdater'
import pubKey from './ledger-pubkey'
export default async ({ feedURL, updateVersion }: { feedURL: string, updateVersion: string }) => {
const { app } = require('electron')
const updateFolder = path.resolve(app.getPath('userData'), '__update__')
const { fileName: filename } = await readUpdateInfos(updateFolder)
const hashFileURL = `${feedURL}/ledger-live-desktop-${updateVersion}.sha512sum`
const hashSigFileURL = `${feedURL}/ledger-live-desktop-${updateVersion}.sha512sum.sig`
const keysURL = `${feedURL}/pubkeys`
return createAppUpdater({
filename,
computeHash: () => sha512sumPath(path.resolve(updateFolder, filename)),
getHashFile: () => getDistantFileContent(hashFileURL),
getHashFileSignature: () => getDistantFileContent(hashSigFileURL),
getNextKey: (fingerprint: ?string) =>
fingerprint ? getDistantFileContent(`${keysURL}/${fingerprint}.asc`) : pubKey,
getNextKeySignature: async (fingerprint: string) =>
getDistantFileContent(`${keysURL}/${fingerprint}.asc.sig`),
})
}
// read the electron-updater file. we basically only need the filename here,
// because the hash file contains hashes for all platforms (better to have
// only 1 file to sign lel)
export async function readUpdateInfos(updateFolder: string) {
const updateInfoPath = path.resolve(updateFolder, 'update-info.json')
const updateInfoContent = await fsReadFile(updateInfoPath)
return JSON.parse(updateInfoContent)
}
// compute hash for given path. i guess we only need that here
export function sha512sumPath(filePath: string) {
return new Promise((resolve, reject) => {
const sum = crypto.createHash('sha512')
const stream = fs.createReadStream(filePath)
stream.on('data', data => sum.update(data))
stream.on('end', () => resolve(sum.digest('hex')))
stream.on('error', reject)
})
}
async function getDistantFileContent(url: string) {
try {
const res = await network({ method: 'GET', url })
return res.data
} catch (err) {
throw new UpdateFetchFileFail(url)
}
}

40
src/main/updater/createMockAppUpdater.js

@ -0,0 +1,40 @@
// @flow
import createAppUpdater from './createAppUpdater'
export default ({
filename,
computedHash,
hashFile,
signature,
pubKey,
pubKeys,
}: {
filename: string,
computedHash: string,
hashFile: string,
signature: string,
pubKey: string,
pubKeys: Array<{ fingerprint: string, content: string, signature: string }>,
}) =>
createAppUpdater({
filename,
computeHash: () => Promise.resolve(computedHash),
getHashFile: () => Promise.resolve(hashFile),
getHashFileSignature: () => Promise.resolve(signature),
getNextKey: async (fingerprint: ?string) => {
if (!fingerprint) return Promise.resolve(pubKey)
const key = pubKeys.find(k => k.fingerprint === fingerprint)
if (!key) {
throw new Error(`Cannot find key for fingerprint ${fingerprint}`)
}
return key.content
},
getNextKeySignature: async (fingerprint: string) => {
const key = pubKeys.find(k => k.fingerprint === fingerprint)
if (!key) {
throw new Error(`Cannot find signature for key ${fingerprint}`)
}
return key.signature
},
})

111
src/main/updater/ledger-pubkey.js

@ -0,0 +1,111 @@
// TODO: it's actually my key. replace with qorum key.
export default `-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFvQ9SEBEADbDiM5dfhqdZae0QFSd9QVf8k7hmt+7Ybz4vwRN+s3Xfz9feBC
QBu/UePLpc18Jb1nnHUa7bf3FRilvCG0Lwl0SrSYJ7dmOPsWqE4lHnuBF1AAzFh0
MR/I6ydOl9fe6thamzv1a61gV+yp+fSKHS0BUv+jto1XV0YOpKnODxOnVIh0n+pf
KpsGSLug0/S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g6NnEl/0Qcvurr6RlDhTxOubxKZaZdvUwDAarDqHWpEeXo
edRfWORPob99dvdcajU0yKWXPzqMtaO8Orsm/P9rXq6fR7LVmJ6o7g+gorJDE8aB
+m3OuSSqq19QL8cmwZ1lVMdGOD8+knAxrr1+bq33QdekBycZ+A==
=97OE
-----END PGP PUBLIC KEY BLOCK-----`

33
src/main/updater/mocks/mock-privkey-1.asc

@ -0,0 +1,33 @@
-----BEGIN PGP PRIVATE KEY BLOCK-----
lQHYBFv8BAcBBADRLTFoRU3IUz37E70wy2jv7jg7QLSoHnJglcUYzq+RCBnQAfxQ
NOcQtJDKOJyo1v3819o5pxnrxWAutM/CNpjanzcWM1yLfHjrKo8BbHlmIbWBmV7w
8te+rm/VlyNi30D1eIIJy276nByW4rMLcfFe4T055xbEvRNvQzR+KfrCBwARAQAB
AAP8Dv3XMart5TKaGZmTkKCzd6ayHwUHLZlpByUUyC9gA9v5xZ+uzqzL9rWKPwQJ
rkwiTfHGcSVZxT0TJKXO0hOJpthgqbMnHokIhrYeNrDbU4l4tgE74Ik+8F3dGGns
C48Q+6lfACbpLMz7wq+60lLT7tzBKgYGA4G35W9+CY9jz8ECAOX3SpqFpOkoYcjh
GsmBSlTs9Kz4JyZDdigiM7xrroe9zkXtwuGUY2X14le/vCoZl3EP/WYV2CY8uODm
cMTYbaECAOjbZZPjudH9Ux234qdv/lMsiYwZ86aQmSUnaR2tNrTmlMiW60yKbsMC
smP0A+wZvpI9U6hMU8cbNtN7SW8WfqcCAOabL3NCCeQbDQBHI/0oKqrSIkMTQzKL
1MdUcvitzHBiKrOGF0PUgiZ0mNVXsSvLH0grULllAwfws3UeRmYGVwWfE7QiRm9v
IEJhciAoTW9jayBLZXkgMSkgPGZvb0BiYXIuY29tPojOBBMBCAA4FiEERZ/aCM7e
heCvgo2lv5b5SATkBG4FAlv8BAcCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AA
CgkQv5b5SATkBG5tlwP/V1nUnbcJloznFVZFQJtL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YhBIYc7/mz1bTFvaROyYSsTWDfrpfPBQJb
iWiRAhsMBQkHhh+AAAoJEISsTWDfrpfPtnsQAIHK7A/cmOgKo45LwDFmTCYgf40N
VzGz6ydub6BWLuAy1OGUUfcf4rhOK7N8z2cYwjd9bJdhLcRQp+s/4CYPRS77Vd36
36mAmcm2WcDDUmCFVmdrnVXGoBuE5ULbRz65s++QUKXDI8VZf9CnxhtX118H8ANf
BkYdpeM+kcf/jiJdP432SfbiuUuj/Y5ojuM1bqGjXtvGK+9LJE4TnSJzR31fhhOC
mo9avBAK5biAXyf5UWQ0hoxwHum0UyjQxoUf1xh8cGIyQFLZnleNs3641CnAJW/X
qOAbe4TBKAn+qBaab40UAPuuGoPfOw9ZPOuIPCQxR5l0rik8EZleOQfzZIkjSWW0
77BjBffoqd48U36gmsQNz51xScfqZ5tYAiJ46JkvxpedYtc0acA2C/tHno4Hdy26
yauvf66jdLQMjYitaQl/B2WbPuD5+2M44vlGps6ebltWocqMaSsNSsfEAL2I6JdA
wrVaCks64UhWHSXq8Ot1ovMLAYCWthphjRcHda5sEfHnRJgt7A5lithlx2OuQ8g1
dZ5ZjDgWawapLoR3Y2LsIeMlzNtYa/t0nQpVj+hcCwBUYtR4avg86Uy6NpnrP6Gl
GiRPADApLuTLl+h8ZEBTV3PHMQHIXBHNxwDbaO+YcUyeIA8c6BAJt6G2t+S5rBVR
sEQGv7WFrXcyYM38
=/9tA
-----END PGP PUBLIC KEY BLOCK-----

1
src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage

@ -0,0 +1 @@
sigko-shasumok

1
src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum

@ -0,0 +1 @@
26ca4f4aa377a8cbe434463debe94d9ec923b930a3053d4fe7129440b48667ac66db03e0f6c417671e16ea9445148d2124df6d34184514f05b26aa14a0790f4b ledger-live-desktop-1.2.1-linux-x86_64.AppImage

16
src/main/updater/mocks/sigko-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEhhzv+bPVtMW9pE7JhKxNYN+ul88FAlvKAJIACgkQhKxNYN+u
l8/FJQ/+PvYCbEZB77BGBHPvoEjkTbp4lP9RYzIS1Ial0HUZ6CDsMOfFEVsfM7VQ
MTluvUERshVc5OX2Z4Y+G/eMYHInwZX+ytjWQ7/rXa4M/3na97ND/JwQjNmiIzjT
Fxaiis0BqwulOff9bvgu0AKrA6Bq/DiBKV2EuWwNKVADuUhoAru53YWtAg0mFU87
XRSR6bww1/fDe9pD/PzWNJxonMHjZDz3KYQOh5RXqNE9sgI51hMVpqNW5O1H/N5P
GvqNDB0piyH85CbiZgvYhDVzVBhpuu1+gQLYMYRAsU8Grp5jJmnbTX81kJsqzyrY
1MNwH4v/nr1KIA/H/SwCXLgDX013VPc7U0rD74dZI8IJn2le/72U5jZknPM0B7vl
KBWgEOq3XYSqW5jlY4N4wdHmNvMiTureiLfZmOjV2XLk8aLX+/LpABHLBduGM3hZ
wsj7+av7jFce4w6bBNoew+P3OMS6aHyORTUkMKvGSACI4PchGHSgG6rmGM183o64
opexXsnit5vIYQKbJATp2nuUmW9TD2kK6mDjk2Hio4wAR6KvawUf4prIkF1rR/M5
4DrJ3Oq9ntvmApyE8o5t/uOFE/HSuS/+ZGn1nieSPJTME6WtSYWV9gxfLOgErpXD
GoibMFoInfjh/rPE5JwoCuIaBGYOuFS9ytwlYAPcA7sJQlb9vLE=
=KWhh
-----END PGP SIGNATURE-----

3
src/main/updater/mocks/sigko-shasumok/update-info.json

@ -0,0 +1,3 @@
{
"fileName": "ledger-live-desktop-1.2.1-linux-x86_64.AppImage"
}

1
src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage

@ -0,0 +1 @@
sigok-shasumok

1
src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum

@ -0,0 +1 @@
this_is_ko_26ca4f4aa377a8cbe434463debe94d9ec923b930a3053d4fe7129440b48667ac66db03e0f6c417671e16ea9445148d2124df6d34184514f05b26aa14a0790f4b ledger-live-desktop-1.2.1-linux-x86_64.AppImage

16
src/main/updater/mocks/sigok-shasumko/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEESKQ3KFYSBLGhLWtAHS/CMF4ss5kFAlvKBL4ACgkQHS/CMF4s
s5lbKxAAndUSWP3tL+aBl/Jn1Fjr48bPlRHFpqUY1bW59uAEB0C1xkHCvExkH7Wh
oc1nT3DsE+khwfhPeruKiNBcgtLtPWBW0PaY7N1tcafzYVldBZYSRfZotv1wEuqF
vt4kgqzCTPLOLfaUxTP7esDv6oIdHY7bah/0QsgvPiOxtT+/Kb/6OIXGT6IyWJxX
6Z/oc2lzkxmIyALFp53YEejUeCayiATVcoR15MCOK2zofU9RBk0BI2R50cNlefpX
WttXOfFP5l2EecZA0S3vA8am66+nG3jKHA8cLIqc//X1pgFCNbZXxCt2kTiE4ri6
8XW0ne9tGvHk+fG2/4ZhNK2dqzwSD5Yitd2g5HU3ZOUxVdmH5K2XyFF5Zhixca+c
ivFlH00LEagF8hhxkf2tZWSG8fLvffNmzPdkQ1HySq4FpT/K33twb+MYHAWtwEP6
/Epyiq7S15aB2SRkdOnBv1VQWf0wGZO/ABKutgF8xrOh13prLLSmXFenIdXGsdnP
2Wlawn6GyvSOcK+s6Z6AuETXXVdGnUQDuwjUyqQXUWp4Fm0xInTTPcgruh7Ip3Ra
vBeQcYr4i/aB37X6fUVogzq4Sy2DvDUnG7uMmaVyDxK6RhQ9/M3Jql/6ffCJPXm5
J7AqoM/QCHfVkXhvgKKwq8hxb6JLSykjB9h//AonCVRcKW/dqY8=
=kaOO
-----END PGP SIGNATURE-----

3
src/main/updater/mocks/sigok-shasumko/update-info.json

@ -0,0 +1,3 @@
{
"fileName": "ledger-live-desktop-1.2.1-linux-x86_64.AppImage"
}

1
src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage

@ -0,0 +1 @@
sigok-shasumok

1
src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum

@ -0,0 +1 @@
26ca4f4aa377a8cbe434463debe94d9ec923b930a3053d4fe7129440b48667ac66db03e0f6c417671e16ea9445148d2124df6d34184514f05b26aa14a0790f4b ledger-live-desktop-1.2.1-linux-x86_64.AppImage

16
src/main/updater/mocks/sigok-shasumok/ledger-live-desktop-1.2.1-linux-x86_64.AppImage.sha512sum.sig

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEESKQ3KFYSBLGhLWtAHS/CMF4ss5kFAlvJ+ysACgkQHS/CMF4s
s5mepQ/8DkHSiLEdpMx1GHRX7ElRbhefD7ZAbBCaf/1igpx9K/+SrKvVkgywX2us
D+MU6vmxcFLuMMb5NWpY2s7/0iC+fj36x33fCSvRkmmxxXWf+SzyFozX8sAc/vOo
2x1KTR5jvxspZS0/ERX2KH/88hIWH9kzLsrk/qvppWXpJvEVS5hEHKijLST1aw+c
4L01n9dBwTAsMLo8xm7ybcU86yKUsvbd96XJHuQoqJeg4TOqveUuEmh1J/9jaXnO
3ZcPOtOP42jKuIOFglGMTgtFwR/WN7kxb5eS7wDodvTJE0YzpxeugW4WEfJ2nspZ
3ZCW3G4DD38/uN5MGnPEM77pqKqDZJY7wPHTO2PbXa6w5+WkW9cvE38fBikdQsnX
nKIuvsqQRBBsIOmVe4m+VJ3wrBPpk7IrYSp54+M8XWf8EkkyZYxtMhE+1bqPhRqG
aTIw6qJXJ+yDowe8cFaEybs4xcUl2t4QWHIXM5Y09ZFcwhD5UQwtXz9x6jJogR2j
W8MLeNnAUhRxFY/hySq+wJasKMDKbWXGPk3TmMNn8P+6g6HEllM4KucJty2OH50t
nJbYt0da3Br2W8os1RPA71MmfW6nGhzcFhX2ShKLicyw46Tyc0GGaO29oDwgQkRc
wcbFJmZVMj9ZuZArmfhFL53ZQj9kbAF2qWPNt+L369jSmw5tAko=
=z2+Z
-----END PGP SIGNATURE-----

3
src/main/updater/mocks/sigok-shasumok/update-info.json

@ -0,0 +1,3 @@
{
"fileName": "ledger-live-desktop-1.2.1-linux-x86_64.AppImage"
}

40
src/main/updater/pgpHelper.js

@ -0,0 +1,40 @@
// @flow
import * as openpgp from 'openpgp'
export async function getFingerprint(pubKey: string) {
const { keys } = await openpgp.key.readArmored(pubKey)
if (!keys.length) {
throw new Error('No key found in pubKey')
}
return keys[0].getFingerprint()
}
export async function verify(msgContent: string, sigContent: string, pubKeyContent: string) {
const signature = await openpgp.signature.readArmored(sigContent)
const message = openpgp.message.fromText(msgContent)
const { keys: publicKeys } = await openpgp.key.readArmored(pubKeyContent)
const pgpOpts = { message, publicKeys, signature }
const verified = await openpgp.verify(pgpOpts)
if (verified.signatures.length === 0) {
throw new Error('No signature found')
}
if (!verified.signatures.every(sig => sig.valid)) {
throw new Error('Signature check failed')
}
}
export async function sign(msgContent: string, privKeyContent: string) {
const privKey = (await openpgp.key.readArmored(privKeyContent)).keys[0]
const options = {
message: openpgp.cleartext.fromText(msgContent),
privateKeys: [privKey],
detached: true,
}
const signed = await openpgp.sign(options)
return signed.signature
}

114
src/main/updater/updater.spec.js

@ -0,0 +1,114 @@
import path from 'path'
import crypto from 'crypto'
import { fsReadFile } from 'helpers/fs'
import { UpdateIncorrectHash, UpdateIncorrectSig } from 'config/errors'
import createMockAppUpdater from './createMockAppUpdater'
import { sha512sumPath, readUpdateInfos } from './createElectronAppUpdater'
import * as pgpHelper from './pgpHelper'
const base = path.resolve(__dirname, 'mocks')
describe('AppUpdater', () => {
describe('simple cases', () => {
test('should not throw if correct hash & correct sig', async () => {
await verifyMockFolder('sigok-shasumok', 'pubkey-1.asc')
})
test('should throw if correct hash but incorrect pubkey', async () => {
const p = verifyMockFolder('sigok-shasumok', 'pubkey-2.asc')
await expectFail(p, UpdateIncorrectSig)
})
test('should throw if incorrect hash but correct sig', async () => {
const p = verifyMockFolder('sigok-shasumko', 'pubkey-1.asc')
await expectFail(p, UpdateIncorrectHash)
})
test('should throw if correct hash but incorrect sig', async () => {
const p = verifyMockFolder('sigko-shasumok', 'pubkey-1.asc')
await expectFail(p, UpdateIncorrectSig)
})
})
describe('key invalidation', () => {
test('should verify successfully by using getNextKey()', async () => {
const filename = 'foo.exe'
const mockPrivKey1 = await fsReadFile(path.resolve(base, 'mock-privkey-1.asc'), 'ascii')
const mockPubKey1 = await fsReadFile(path.resolve(base, 'mock-pubkey-1.asc'), 'ascii')
const mockPrivKey2 = await fsReadFile(path.resolve(base, 'mock-privkey-2.asc'), 'ascii')
const mockPubKey2 = await fsReadFile(path.resolve(base, 'mock-pubkey-2.asc'), 'ascii')
// This is the desired scenario:
//
// Let's simulate a release.
//
// 1) create binary (lol) and its hash. this is basically the app update
const update = '0010011-content-of-the-app-01110001010111'
// 2) create hash of update
const hash = sha512sum(update)
const hashFile = `${hash} ${filename}` // yeah, the hash file contains also file name
// 3) sign the hash with the *KEY 2* (the app will use the *KEY 1* first)
const signature = await pgpHelper.sign(hashFile, mockPrivKey2)
// 4) sign *KEY 2* with *KEY 1* and get the *KEY 1* fingerprint, ye.
const mockPubKey2Signature = await pgpHelper.sign(mockPubKey2, mockPrivKey1)
const mockPubKey1Fingerprint = await pgpHelper.getFingerprint(mockPubKey1)
// 5) app updater, with all thoses infos
const updater = await createMockAppUpdater({
filename,
computedHash: hash,
hashFile,
signature,
pubKey: mockPubKey1,
pubKeys: [
{
fingerprint: mockPubKey1Fingerprint,
content: mockPubKey2,
signature: mockPubKey2Signature,
},
],
})
await updater.verify()
})
})
})
async function expectFail(promise, errType) {
let err
try {
await promise
} catch (e) {
err = e
}
expect(err).toBeDefined()
expect(err).toBeInstanceOf(errType)
}
async function verifyMockFolder(folderName, pubKeyName, pubKeys = []) {
const mock = path.resolve(base, folderName)
const { fileName: filename } = await readUpdateInfos(mock)
const computedHash = await sha512sumPath(path.resolve(mock, filename))
const hashFile = await fsReadFile(path.resolve(mock, `${filename}.sha512sum`), 'ascii')
const signature = await fsReadFile(path.resolve(mock, `${filename}.sha512sum.sig`), 'ascii')
const pubKey = await fsReadFile(path.resolve(base, pubKeyName))
const updater = await createMockAppUpdater({
filename,
computedHash,
hashFile,
signature,
pubKey,
pubKeys,
})
await updater.verify()
}
export function sha512sum(content) {
const sum = crypto.createHash('sha512')
sum.update(content)
return sum.digest('hex')
}

111
yarn.lock

@ -1791,6 +1791,13 @@
redux "^4.0.0"
reselect "^3.0.1"
"@mattiasbuelens/web-streams-polyfill@0.1.0-alpha.4":
version "0.1.0-alpha.4"
resolved "https://registry.yarnpkg.com/@mattiasbuelens/web-streams-polyfill/-/web-streams-polyfill-0.1.0-alpha.4.tgz#fde9688fac83ff40e3be1a01973c867e12a74492"
integrity sha512-WAsiWLWc7ZNS1b0qFAoKSFLeqXesPa60YelVE3pPKc6pZ4iuSW9l6DBxY4hMPQj1dQCBDrUHJj/NDSjE85bTRQ==
dependencies:
"@types/whatwg-streams" "0.0.5"
"@mrmlnc/readdir-enhanced@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
@ -2112,6 +2119,11 @@
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.13.6.tgz#128d1685a7c34d31ed17010fc87d6a12c1de6976"
integrity sha512-5Th3OsZ4gTRdr9Mho83BQ23cex4sRhOR4XTG+m+cJc0FhtUBK9Vn62hBJ+pnQYnSxoPOsKoAPOx6FcphxBC8ng==
"@types/whatwg-streams@0.0.5":
version "0.0.5"
resolved "https://registry.yarnpkg.com/@types/whatwg-streams/-/whatwg-streams-0.0.5.tgz#66c3852b8e33f2a2ca225a6d8fd8096e34d17fe6"
integrity sha512-y1UgRuGO64x/v+UIerA2AMquW/qxaIUD95rbf8FYxtVG//D3381+JexnZfcEiZSqXErdxdPmXpz8srY7gs9Grw==
"@types/ws@^3.2.0":
version "3.2.1"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-3.2.1.tgz#b0c1579e58e686f83ce0a97bb9463d29705827fb"
@ -2346,6 +2358,13 @@ acorn@^5.0.0, acorn@^5.3.0, acorn@^5.5.0, acorn@^5.6.2:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8"
integrity sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==
address-rfc2822@^2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/address-rfc2822/-/address-rfc2822-2.0.4.tgz#2dbd3b8d6c2de1e957c1a8549dc012d40bbc3431"
integrity sha1-Lb07jWwt4elXwahUncAS1Au8NDE=
dependencies:
email-addresses "^3.0.0"
address@1.0.3, address@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/address/-/address-1.0.3.tgz#b5f50631f8d6cec8bd20c963963afb55e06cbce9"
@ -2721,6 +2740,10 @@ asap@~2.0.3:
resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46"
integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=
"asmcrypto.js@github:openpgpjs/asmcrypto":
version "2.3.0"
resolved "https://codeload.github.com/openpgpjs/asmcrypto/tar.gz/6e4e407b9b8ae317925a9e677cc7b4de3e447e83"
asn1.js@^4.0.0:
version "4.10.1"
resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0"
@ -2730,6 +2753,15 @@ asn1.js@^4.0.0:
inherits "^2.0.1"
minimalistic-assert "^1.0.0"
asn1.js@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-5.0.1.tgz#7668b56416953f0ce3421adbb3893ace59c96f59"
integrity sha512-aO8EaEgbgqq77IEw+1jfx5c9zTbzvkfuRBuZsSsPnTHMkmd5AI4J6OtITLZFa381jReeaQL67J0GBTUu0+ZTVw==
dependencies:
bn.js "^4.0.0"
inherits "^2.0.1"
minimalistic-assert "^1.0.0"
asn1@~0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86"
@ -4240,7 +4272,7 @@ bn.js@^3.1.1:
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-3.3.0.tgz#1138e577889fdc97bbdab51844f2190dfc0ae3d7"
integrity sha1-ETjld4if3Je72rUYRPIZDfwK49c=
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.0, bn.js@^4.11.3, bn.js@^4.4.0:
bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.11.0, bn.js@^4.11.3, bn.js@^4.11.8, bn.js@^4.4.0:
version "4.11.8"
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f"
integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==
@ -4541,6 +4573,14 @@ buffer@^5.0.3:
base64-js "^1.0.2"
ieee754 "^1.1.4"
buffer@^5.0.8:
version "5.2.1"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.1.tgz#dd57fa0f109ac59c602479044dca7b8b3d0b71d6"
integrity sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==
dependencies:
base64-js "^1.0.2"
ieee754 "^1.1.4"
buffer@^5.1.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.0.tgz#53cf98241100099e9eeae20ee6d51d21b16e541e"
@ -6939,6 +6979,23 @@ elliptic@^6.0.0, elliptic@^6.2.3:
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.0"
"elliptic@github:openpgpjs/elliptic":
version "6.4.0"
resolved "https://codeload.github.com/openpgpjs/elliptic/tar.gz/e187e706e11fa51bcd20e46e5119054be4e2a4a6"
dependencies:
bn.js "^4.4.0"
brorand "^1.0.1"
hash.js "^1.0.0"
hmac-drbg "^1.0.0"
inherits "^2.0.1"
minimalistic-assert "^1.0.0"
minimalistic-crypto-utils "^1.0.0"
email-addresses@^3.0.0:
version "3.0.2"
resolved "https://registry.yarnpkg.com/email-addresses/-/email-addresses-3.0.2.tgz#a31280d19baf86669840a0aa45be1d7f6e7df315"
integrity sha512-IMn9dnwLMsgZjdUHswB/UZ0S8LQ/u+2/qjnHJ9tCtp3QHZsIYwJCiJOo2FT0i3CwwK/dtSODYtxuvzV4D9MY5g==
emoji-regex@^6.1.0:
version "6.5.1"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-6.5.1.tgz#9baea929b155565c11ea41c6626eaa65cef992c2"
@ -8705,6 +8762,14 @@ hash.js@^1.0.0, hash.js@^1.0.3:
inherits "^2.0.3"
minimalistic-assert "^1.0.0"
hash.js@^1.1.3:
version "1.1.5"
resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.5.tgz#e38ab4b85dfb1e0c40fe9265c0e9b54854c23812"
integrity sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==
dependencies:
inherits "^2.0.3"
minimalistic-assert "^1.0.1"
hawk@~3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4"
@ -11123,7 +11188,7 @@ mini-css-extract-plugin@^0.4.0:
loader-utils "^1.1.0"
webpack-sources "^1.1.0"
minimalistic-assert@^1.0.0:
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
@ -11363,7 +11428,7 @@ node-fetch@^1.0.1:
encoding "^0.1.11"
is-stream "^1.0.1"
node-fetch@^2.1.1:
node-fetch@^2.1.1, node-fetch@^2.1.2:
version "2.2.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.2.0.tgz#4ee79bde909262f9775f731e3656d0db55ced5b5"
integrity sha512-OayFWziIxiHY8bCUyLX6sTpDH8Jsbp4FfYd1j1f7vZyfgkcOnAyM4oQR16f8a0s7Gl/viMGRey8eScYk4V4EZA==
@ -11439,6 +11504,13 @@ node-loader@^0.6.0:
resolved "https://registry.yarnpkg.com/node-loader/-/node-loader-0.6.0.tgz#c797ef51095ed5859902b157f6384f6361e05ae8"
integrity sha1-x5fvUQle1YWZArFX9jhPY2HgWug=
node-localstorage@~1.3.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/node-localstorage/-/node-localstorage-1.3.1.tgz#3177ef42837f398aee5dd75e319b281e40704243"
integrity sha512-NMWCSWWc6JbHT5PyWlNT2i8r7PgGYXVntmKawY83k/M0UJScZ5jirb61TLnqKwd815DfBQu+lR3sRw08SPzIaQ==
dependencies:
write-file-atomic "^1.1.4"
node-modules-regexp@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40"
@ -11783,6 +11855,25 @@ opener@^1.4.3:
resolved "https://registry.yarnpkg.com/opener/-/opener-1.4.3.tgz#5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8"
integrity sha1-XG2ixdflgx6P+jlklQ+NZnSskLg=
openpgp@^4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/openpgp/-/openpgp-4.2.1.tgz#5d693ca9d90f52f0826447a37596b6a9a5a725da"
integrity sha512-spO7D5LVS8H8ktpX55XDNzvIktMQA7CHZVCt3i4REeP3rbFlzvRbg0cR699yC/hwH0dx09/z+6C+fH4lmbyucw==
dependencies:
"@mattiasbuelens/web-streams-polyfill" "0.1.0-alpha.4"
address-rfc2822 "^2.0.3"
asmcrypto.js "github:openpgpjs/asmcrypto"
asn1.js "^5.0.0"
bn.js "^4.11.8"
buffer "^5.0.8"
elliptic "github:openpgpjs/elliptic"
hash.js "^1.1.3"
node-fetch "^2.1.2"
node-localstorage "~1.3.0"
pako "^1.0.6"
seek-bzip "github:openpgpjs/seek-bzip"
web-stream-tools "github:openpgpjs/web-stream-tools"
opn@5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/opn/-/opn-5.2.0.tgz#71fdf934d6827d676cecbea1531f95d354641225"
@ -11976,7 +12067,7 @@ package-json@^4.0.0:
registry-url "^3.0.3"
semver "^5.1.0"
pako@~1.0.5:
pako@^1.0.6, pako@~1.0.5:
version "1.0.6"
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.6.tgz#0101211baa70c4bca4a0f63f2206e97b7dfaf258"
integrity sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==
@ -14347,6 +14438,12 @@ secp256k1@^3.0.1:
nan "^2.2.1"
safe-buffer "^5.1.0"
"seek-bzip@github:openpgpjs/seek-bzip":
version "1.0.5-git"
resolved "https://codeload.github.com/openpgpjs/seek-bzip/tar.gz/3aca608ffedc055a1da1d898ecb244804ef32209"
dependencies:
commander "~2.8.1"
select-hose@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
@ -16272,6 +16369,10 @@ wdio-dot-reporter@~0.0.8:
resolved "https://registry.yarnpkg.com/wdio-dot-reporter/-/wdio-dot-reporter-0.0.10.tgz#facfb7c9c5984149951f59cbc3cd0752101cf0e0"
integrity sha512-A0TCk2JdZEn3M1DSG9YYbNRcGdx/YRw19lTiRpgwzH4qqWkO/oRDZRmi3Snn4L2j54KKTfPalBhlOtc8fojVgg==
"web-stream-tools@github:openpgpjs/web-stream-tools":
version "0.0.1"
resolved "https://codeload.github.com/openpgpjs/web-stream-tools/tar.gz/9ab800d46add161db496506d67338202ad0114ce"
webdriverio@^4.8.0:
version "4.13.1"
resolved "https://registry.yarnpkg.com/webdriverio/-/webdriverio-4.13.1.tgz#624ef4ca569f3c9a5e8e9b11302b4431eda1fb8a"
@ -16721,7 +16822,7 @@ wrappy@1:
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=
write-file-atomic@^1.2.0:
write-file-atomic@^1.1.4, write-file-atomic@^1.2.0:
version "1.3.4"
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-1.3.4.tgz#f807a4f0b1d9e913ae7a48112e6cc3af1991b45f"
integrity sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=

Loading…
Cancel
Save