Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XSVoq-0000hR-2i for bitcoin-development@lists.sourceforge.net; Fri, 12 Sep 2014 18:43:40 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.192.45 as permitted sender) client-ip=209.85.192.45; envelope-from=voisine@gmail.com; helo=mail-qg0-f45.google.com; Received: from mail-qg0-f45.google.com ([209.85.192.45]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1XSVoo-0002Eg-Vk for bitcoin-development@lists.sourceforge.net; Fri, 12 Sep 2014 18:43:40 +0000 Received: by mail-qg0-f45.google.com with SMTP id j107so1211302qga.4 for ; Fri, 12 Sep 2014 11:43:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.172.198 with SMTP id m6mr15063673qaz.19.1410547412843; Fri, 12 Sep 2014 11:43:32 -0700 (PDT) Received: by 10.140.251.86 with HTTP; Fri, 12 Sep 2014 11:43:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Sep 2014 11:43:32 -0700 Message-ID: From: Aaron Voisine To: Mike Hearn Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.6 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (voisine[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1XSVoo-0002Eg-Vk Cc: "bitcoin-development@lists.sourceforge.net" , Andreas Schildbach Subject: Re: [Bitcoin-development] BIP72 amendment proposal X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2014 18:43:40 -0000 Are there any circumstances where the payment request object might be served over a different domain than the CNAME of the object's signer? BIP72 states "Bitcoin wallets must support fetching PaymentRequests via http and https protocols;". If the request object is signed by the owner of the domain, then the worst an attacker who doesn't have the signing key can do is replace the request with another validly signed request intended for someone else, but that could be the attacker's own product order, tricking someone else into paying for it. Should BIP72 require that signed payment requests be from the same domain, and also require https? Aaron Aaron Voisine breadwallet.com On Fri, Sep 12, 2014 at 9:31 AM, Mike Hearn wrote: > Putting aside the question of necessity for a moment, a more efficient > approach to this would be; > > Add another marker param like &s to the end of the URL > Add another field to PaymentRequest that contains an ECC signature > calculated using the public key that hashes to the address in the URI > Upgraded wallets look for the additional param and if it's there, expect to > find the PaymentDetails signed with the address key. PKI signing of course > is still useful to provide an actual identity for receipts, display on > hardware wallets, dispute mediation etc. > > This adds only a few characters to a normal backwards-compatible QR code, > and is not hard to implement. > > > On Fri, Sep 12, 2014 at 5:37 PM, Mike Hearn wrote: >>> >>> That way we leave up to implementers to experiment with different >>> lengths and figure out what the optimum is >> >> >> Ah, that's a good suggestion if we do go this way. > > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development >