<oembed><type>rich</type><version>1.0</version><author_name>npub1sgs97fe0n9wehe6zw7drcxdz4cy9yt9pfqjv8gasz5jlk4zezc0quppx3c</author_name><author_url>https://nostr.ae/npub1sgs97fe0n9wehe6zw7drcxdz4cy9yt9pfqjv8gasz5jlk4zezc0quppx3c</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2015-02-23&#xA;📝 Original message:On 02/23/2015 01:49 AM, Andreas Schildbach wrote:&#xA;&gt; I think at this point I&#39;d like to bring back my original suggestion of&#xA;&gt; using DHKE (Diffie-Hellman) or simlar. I know we&#39;d still need to&#xA;&gt; transmit some secret that could be eavesdropped, &#xA;&#xA;Hi Andreas,&#xA;&#xA;DHKE will not improve the situation. Either we use a simple method to&#xA;transfer a session key or a complex method.&#xA;&#xA;&gt; but at least the session could not be decrypted from recordings.&#xA;&#xA;DHKE doesn&#39;t offer greater forward secrecy than private transfer of a&#xA;session key, in fact it&#39;s lesser.&#xA;&#xA;&gt; Anyway, establishing a &#34;mostly secure&#34; session is clearly an improvement&#xA;&gt; to no protection at all. If we can&#39;t find a solution to the dilemma of&#xA;&gt; how to exchange the secret, I suggest going ahead with what we have and&#xA;&gt; make the best from it.&#xA;&#xA;I don&#39;t see that there is a dilemma. The current proposal has a&#xA;significant privacy problem that can be easily resolved, and the&#xA;resolution actually makes the implementation simpler.&#xA;&#xA;e&#xA;&#xA;&gt; On 02/23/2015 08:36 AM, Andy Schroder wrote:&#xA;&gt;&gt; I agree that NFC is the best we have as far as a trust anchor that you&#xA;&gt;&gt; are paying the right person. The thing I am worried about is the privacy&#xA;&gt;&gt; loss that could happen if there is someone passively monitoring the&#xA;&gt;&gt; connection. So, in response to some of your comments below and also in&#xA;&gt;&gt; response to some of Eric Voskuil&#39;s comments in another recent e-mail:&#xA;&gt;&gt;&#xA;&gt;&gt; Consider some cases:&#xA;&gt;&gt;&#xA;&gt;&gt; If NFC is assumed private, then sending the session key over the NFC&#xA;&gt;&gt; connection gives the payer and the payee assumed confidence that that a&#xA;&gt;&gt; private bluetooth connection can be created.&#xA;&gt;&gt;&#xA;&gt;&gt; If the NFC actually isn&#39;t private, then by sending the session key over&#xA;&gt;&gt; it means the bluetooth connection is not private. An eavesdropper can&#xA;&gt;&gt; listen to all communication and possibly modify the communication, but&#xA;&gt;&gt; the payer and payee won&#39;t necessarily know if eavesdropping occurs&#xA;&gt;&gt; unless communication is also modified (which could be difficult to do&#xA;&gt;&gt; for a really low range communication).&#xA;&gt;&gt;&#xA;&gt;&gt; If we send a public key of the payee over the NFC connection (in place&#xA;&gt;&gt; of a session key) and the NFC connection is assumed trusted (and is&#xA;&gt;&gt; unmodified but actually monitored by an eavesdropper) and use that&#xA;&gt;&gt; public key received via NFC to encrypt a session key and send it back&#xA;&gt;&gt; via bluetooth, to then initiate an encrypted bluetooth connection using&#xA;&gt;&gt; that session key for the remaining communication, then the payee still&#xA;&gt;&gt; receives payment as expected and the payer sends the payment they&#xA;&gt;&gt; expected, and the eavesdropper doesn&#39;t see anything.&#xA;&gt;&gt;&#xA;&gt;&gt; If we send a public key of the payee over the NFC connection (in place&#xA;&gt;&gt; of a session key) and the NFC connection is assumed trusted (and is&#xA;&gt;&gt; actually modified by an eavesdropper) and use that public key received&#xA;&gt;&gt; via NFC to encrypt a session key and send it back via bluetooth, to then&#xA;&gt;&gt; initiate an encrypted bluetooth connection using that session key for&#xA;&gt;&gt; the remaining communication, then the payee receives no payment and the&#xA;&gt;&gt; attack is quickly identified because the customer receives no product&#xA;&gt;&gt; for their payment and they notify the payee, and hopefully the problem&#xA;&gt;&gt; remedied and no further customers are affected. The privacy loss will be&#xA;&gt;&gt; significantly reduced and the motive for such attacks will be reduced.&#xA;&gt;&gt; It&#39;s possible a really sophisticated modification could be done where&#xA;&gt;&gt; the attacker encrypts and decrypts the communication and then relays to&#xA;&gt;&gt; each party (without them knowing or any glitches detected), but I guess&#xA;&gt;&gt; I&#39;m not sure how easy that would be on such a close proximity device?&#xA;&gt;&gt;&#xA;&gt;&gt; Erick Voskuil mentioned this same problem would even occur if you had a&#xA;&gt;&gt; hardwired connection to the payment terminal and those wires were&#xA;&gt;&gt; compromised. I guess I still think what I am saying would be better in&#xA;&gt;&gt; that case. There is also more obvious physical tampering required to&#xA;&gt;&gt; mess with wires.&#xA;&gt;&gt;&#xA;&gt;&gt; I&#39;m not sure if there is any trust anchor required of the payer by the&#xA;&gt;&gt; payee, is there? Eric also mentioned a need for this. Why does the payer&#xA;&gt;&gt; care who they are as long as they get a payment received? Just to avoid&#xA;&gt;&gt; a sophisticated modification&#34; that I mention above? I can see how this&#xA;&gt;&gt; could be the case for a longer range communication (like over the&#xA;&gt;&gt; internet), but I&#39;m not convinced it will be easy on really short ranges?&#xA;&gt;&gt; It&#39;s almost like the attacker would be better off to just replace the&#xA;&gt;&gt; entire POS internals than mess with an attack like that, in which case&#xA;&gt;&gt; everything we could do locally (other than the payment request signing&#xA;&gt;&gt; using PKI), is useless.&#xA;&gt;&gt;&#xA;&gt;&gt; I&#39;m not a cryptography expert so I apologize if there is something&#xA;&gt;&gt; rudimentary that I am missing here.&#xA;&gt;&gt;&#xA;&gt;&gt; Andy Schroder&#xA;&gt;&gt;&#xA;&gt;&gt; On 02/22/2015 08:02 PM, Andreas Schildbach wrote:&#xA;&gt;&gt;&gt; On 02/23/2015 12:32 AM, Andy Schroder wrote:&#xA;&gt;&gt;&gt;&gt; I guess we need to decide whether we want to consider NFC communication&#xA;&gt;&gt;&gt;&gt; private or not. I don&#39;t know that I think it can be. An eavesdropper can&#xA;&gt;&gt;&gt;&gt; place a tiny snooping device near and read the communication. If it is&#xA;&gt;&gt;&gt;&gt; just passive, then the merchant/operator won&#39;t realize it&#39;s there. So, I&#xA;&gt;&gt;&gt;&gt; don&#39;t know if I like your idea (mentioned in your other reply) of&#xA;&gt;&gt;&gt;&gt; putting the session key in the URL is a good idea?&#xA;&gt;&gt;&gt; I think the &#34;trust by proximity&#34; is the best we&#39;ve got. If we don&#39;t&#xA;&gt;&gt;&gt; trust the NFC link (or the QR code scan), what other options have we&#xA;&gt;&gt;&gt; got? Speaking the session key by voice? Bad UX, and can be eavesdropped&#xA;&gt;&gt;&gt; as well of course.&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; ------------------------------------------------------------------------------&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server&#xA;&gt;&gt;&gt; from Actuate! Instantly Supercharge Your Business Reports and Dashboards&#xA;&gt;&gt;&gt; with Interactivity, Sharing, Native Excel Exports, App Integration &amp; more&#xA;&gt;&gt;&gt; Get technology previously reserved for billion-dollar corporations, FREE&#xA;&gt;&gt;&gt; http://pubads.g.doubleclick.net/gampad/clk?id=190641631&amp;iu=/4140/ostg.clktrk&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt; _______________________________________________&#xA;&gt;&gt;&gt; Bitcoin-development mailing list&#xA;&gt;&gt;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt;&gt;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; ------------------------------------------------------------------------------&#xA;&gt;&gt; Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server&#xA;&gt;&gt; from Actuate! Instantly Supercharge Your Business Reports and Dashboards&#xA;&gt;&gt; with Interactivity, Sharing, Native Excel Exports, App Integration &amp; more&#xA;&gt;&gt; Get technology previously reserved for billion-dollar corporations, FREE&#xA;&gt;&gt; http://pubads.g.doubleclick.net/gampad/clk?id=190641631&amp;iu=/4140/ostg.clktrk&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; _______________________________________________&#xA;&gt;&gt; Bitcoin-development mailing list&#xA;&gt;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;&gt;&#xA;&gt; &#xA;&gt; &#xA;&gt; &#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server&#xA;&gt; from Actuate! Instantly Supercharge Your Business Reports and Dashboards&#xA;&gt; with Interactivity, Sharing, Native Excel Exports, App Integration &amp; more&#xA;&gt; Get technology previously reserved for billion-dollar corporations, FREE&#xA;&gt; http://pubads.g.doubleclick.net/gampad/clk?id=190641631&amp;iu=/4140/ostg.clktrk&#xA;&gt; _______________________________________________&#xA;&gt; Bitcoin-development mailing list&#xA;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt; &#xA;&#xA;-------------- next part --------------&#xA;A non-text attachment was scrubbed...&#xA;Name: signature.asc&#xA;Type: application/pgp-signature&#xA;Size: 473 bytes&#xA;Desc: OpenPGP digital signature&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20150223/9e32d1cc/attachment.sig&gt;</html></oembed>