From 6ccbf292c59f63c83f605a9f7709d975db7dd80c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 Aug 2014 11:07:16 -0700 Subject: [PATCH] paypro: start verifying raw payment requests before signing. --- js/models/core/Wallet.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 4ae8a01e4..f8793e623 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -718,6 +718,12 @@ Wallet.prototype.sign = function(ntxid, cb) { // if (cb) cb(false); // } // + + if (!self.verifyPaymentRequest(ntxid)) { + if (cb) cb(false); + return; + } + var keys = self.privateKey.getForPaths(txp.inputChainPaths); var b = txp.builder;