From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WjnTI-0001Be-UL for bitcoin-development@lists.sourceforge.net; Mon, 12 May 2014 10:28:36 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.219.53 as permitted sender) client-ip=209.85.219.53; envelope-from=mh.in.england@gmail.com; helo=mail-oa0-f53.google.com; Received: from mail-oa0-f53.google.com ([209.85.219.53]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WjnTH-0004Yu-7S for bitcoin-development@lists.sourceforge.net; Mon, 12 May 2014 10:28:36 +0000 Received: by mail-oa0-f53.google.com with SMTP id m1so7947665oag.40 for ; Mon, 12 May 2014 03:28:29 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.132.236 with SMTP id ox12mr1701234oeb.81.1399890509480; Mon, 12 May 2014 03:28:29 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.76.71.162 with HTTP; Mon, 12 May 2014 03:28:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 May 2014 12:28:29 +0200 X-Google-Sender-Auth: YG471RO4VKICh1Q3Su_8rI-0QMw Message-ID: From: Mike Hearn To: Andy Alness Content-Type: multipart/alternative; boundary=047d7b41cd288acbd204f93168f6 X-Spam-Score: -0.5 (/) 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 (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message 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: 1WjnTH-0004Yu-7S Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] Allow cross-site requests of payment requests 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: Mon, 12 May 2014 10:28:37 -0000 --047d7b41cd288acbd204f93168f6 Content-Type: text/plain; charset=UTF-8 > > Would it be a terrible idea to amend BIP 70 to suggest implementors > include a "Access-Control-Allow-Origin: *" response header for their > payment request responses? I don't think this opens up any useful attack > vectors. > It sounds OK to me, although we should all sleep on it for a bit. The reason this header exists is exactly because mobile code fetching random web resources can result in surprising security holes. For this to be useful, someone would have to actually want to fully implement the payment protocol (with its own root cert store, ASN.1 parsing, RSA etc) in browser-sandboxed Javascript rather than just providing a real app for people to download. Is that really going to be popular, though? I think it's unclear. --047d7b41cd288acbd204f93168f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Would it be a terrible idea to = amend BIP 70 to suggest implementors include a "Access-Control-Allow-O= rigin: *" response header for their payment request responses? I don&#= 39;t think this opens up any useful attack vectors.

It sounds OK to me, although we should all= sleep on it for a bit. The reason this header exists is exactly because mo= bile code fetching random web resources can result in surprising security h= oles.=C2=A0

For this to be useful, someone would have to actually w= ant to fully implement the payment protocol (with its own root cert store, = ASN.1 parsing, RSA etc) in browser-sandboxed Javascript rather than just pr= oviding a real app for people to download.

Is that really going to be popular, though? I think it&= #39;s unclear.
--047d7b41cd288acbd204f93168f6--