Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Wt2MJ-0005nu-Tl for bitcoin-development@lists.sourceforge.net; Fri, 06 Jun 2014 22:11:35 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of peernova.com designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; envelope-from=toshi@peernova.com; helo=mail-ve0-f181.google.com; Received: from mail-ve0-f181.google.com ([209.85.128.181]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Wt2MI-0006eA-LF for bitcoin-development@lists.sourceforge.net; Fri, 06 Jun 2014 22:11:35 +0000 Received: by mail-ve0-f181.google.com with SMTP id pa12so4012240veb.26 for ; Fri, 06 Jun 2014 15:11:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=95urKLL7iVyigKEPTZt9xP+cYUYxhzS7dD8fX64wQxk=; b=ZDNgw62z2mydLOLywLQKumFayMj1UiNHjUGgAfjj+LFyT8ZEPYIyVlpcCNorZtkcnT BnRoMlQTkNPyyiJAt32KOv6yrQHQVX7cPuPnupPi1AZ/Hj53mltzGpKQkHPz+wfaDA0/ 79rFlnFwf8Omt49P1DOQTFmZaMgeHSYnez/FkY3CKzX16q9BHyNcuj0SKnob0L4mvtAS 0MtkyD0sDbQQU+a757clAuND1KeLncKn8ImGZ4TgHhTnVWIJcTUlt36lVvK/nwCVM9ui P4WV17JUq6QMJbWSkehu27pZ9OYDZTOVvhMIzWi8k2tq8rRfob2RXxEbff6uhhKO817a BAiA== X-Gm-Message-State: ALoCoQniQWCnAxIOK5sVnwJFi8N4FKGfSZfWHybF3dgBkJ3PtOKy/NoSO8ND8S6y3nnieQoaYYr3 MIME-Version: 1.0 X-Received: by 10.58.85.3 with SMTP id d3mr9106496vez.34.1402092688746; Fri, 06 Jun 2014 15:11:28 -0700 (PDT) Received: by 10.52.97.37 with HTTP; Fri, 6 Jun 2014 15:11:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Jun 2014 15:11:28 -0700 Message-ID: From: Toshi Morita To: =?UTF-8?B?UmHDumwgTWFydMOtbmV6?= Content-Type: multipart/alternative; boundary=047d7b86c266a7e1a704fb3224b8 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 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message X-Headers-End: 1Wt2MI-0006eA-LF Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] Possible attack: Keeping unconfirmed transactions 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, 06 Jun 2014 22:11:36 -0000 --047d7b86c266a7e1a704fb3224b8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From what I know, Alice does not know to which node Bob will broadcast the transaction. Therefore, Alice cannot intercept the transaction and prevent the rest of the network from seeing it. Toshi On Fri, Jun 6, 2014 at 3:02 PM, Ra=C3=BAl Mart=C3=ADnez wrot= e: > I dont know if this attack is even possible, it came to my mind and I wil= l > try to explain it as good as possible. > > Some transacions keep unconfirmed forever and finally they are purged by > Bitcoin nodes, mostly due to the lack of fees. > > > Example: > --------- > > Alice is selling a pizza to Bob, Bob is now making the payment with > Bitcoin. > The main goal of this attack is to store a unconfirmed transaction send b= y > Bob for a few days (it will not be included in the blockchain because it > has no fee or due to other reason), Bob might resend the payment or might > just cancel the deal with Alice. > > Bob forgets about that failed trade but a couple of days later, Alice, wh= o > has stored the signed transacion, relays the transaction to the network (= or > mines it directly with his own hashpower). > Bob does not know what is happening, he believed that that transaction wa= s > "canceled forever", he even does not remember the failed pizza deal. > > Alice has now the bitcoins and Bob does not know what happened with his > money. > > --------- > > This might also work with the Payment Protocol because when using it Bob > does not relay the transaction to the network, its Alices job to do it, > Alice stores it and tells Bob to resend the payment, Bob creates another > transaction (If has the same inputs as the first TX this does not work) > (this one is relayed by Alice to the network). > > Alice comes back a couple of days later and mines with his hashrate the > first transaction (the one she didnt relayed to the network). > > Alice now has two payments, Bob does not know what happened. > > > ----------- > > I hope that I explained well this possible attack, I dont know if there i= s > already a fix for this problem or if it is simply impossible to execute > this kind of attack. > > Thanks for your time. > > > > > > > -------------------------------------------------------------------------= ----- > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and thei= r > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > > --047d7b86c266a7e1a704fb3224b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From what I know, Alice does not know to which node Bob wi= ll broadcast the transaction. Therefore, Alice cannot intercept the transac= tion and prevent the rest of the network from seeing it.

Toshi



On Fri, Jun 6, 2014 at 3:02 PM, Ra=C3=BAl Mart=C3=ADnez = <rme= @i-rme.es> wrote:
I dont know if this attack = is even possible, it came to my mind and I will try to explain it as good a= s possible.

Some transacions keep unconfirmed forever and finally they a= re purged by Bitcoin nodes, mostly due to the lack of fees.


Example:
---------
<= br>
Alice is selling a pizza to Bob, Bob is now making the paymen= t with Bitcoin.
The main goal of this attack is to store a unconf= irmed transaction send by Bob for a few days (it will not be included in th= e blockchain because it has no fee or due to other reason), Bob might resen= d the payment or might just cancel the deal with Alice.

Bob forgets about that failed trade but a couple of day= s later, Alice, who has stored the signed transacion, relays the transactio= n to the network (or mines it directly with his own hashpower).
Bob does not know what is happening, he believed that that transaction was = "canceled forever", he even does not remember the failed pizza de= al.

Alice has now the bitcoins and Bob does not kn= ow what happened with his money.

---------

This might also work= with the Payment Protocol because when using it Bob does not relay the tra= nsaction to the network, its Alices job to do it, Alice stores it and tells= Bob to resend the payment, Bob creates another transaction (If has the sam= e inputs as the first TX this does not work) (this one is relayed by Alice = to the network).

Alice comes back a couple of days later and mines with = his hashrate the first transaction (the one she didnt relayed to the networ= k).

Alice now has two payments, Bob does not know = what happened.


-----------

I h= ope that I explained well this possible attack, I dont know if there is alr= eady a fix for this problem or if it is simply impossible to execute this k= ind of attack.

Thanks for your time.





-----------------------------------------------------------------------= -------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases = and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/s= fu/NeoTech
_______________________________________________
Bitcoin-development mailing list
Bitcoin-develo= pment@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment


--047d7b86c266a7e1a704fb3224b8--