summaryrefslogtreecommitdiff
path: root/a3/b5ec4219a906cc58a9fdd299adba7aea562822
blob: 36e568cfaa1cb42f9249522ff58b8b0ad17a6031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193]
	helo=mx.sourceforge.net)
	by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <rme@i-rme.es>) id 1WuKB0-0003PJ-6r
	for bitcoin-development@lists.sourceforge.net;
	Tue, 10 Jun 2014 11:25:14 +0000
Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of i-rme.es
	designates 209.85.215.49 as permitted sender)
	client-ip=209.85.215.49; envelope-from=rme@i-rme.es;
	helo=mail-la0-f49.google.com; 
Received: from mail-la0-f49.google.com ([209.85.215.49])
	by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1WuKAy-0000bd-Dk
	for bitcoin-development@lists.sourceforge.net;
	Tue, 10 Jun 2014 11:25:14 +0000
Received: by mail-la0-f49.google.com with SMTP id pv20so3777966lab.22
	for <bitcoin-development@lists.sourceforge.net>;
	Tue, 10 Jun 2014 04:25:05 -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=kaEaUbmXjK17SnGpQ55p8Jt+3qloJ5QSLj5mHUx2Wks=;
	b=OyAk33AcPvvCaIkrM5fRhUNNmQ/8WcaYxUzQ/ErI3FRvKAmTOkjFUCGZoQkoy+UDqB
	FAYILABYnrp5qsU35/h+eidaELhALK0YBMhjKbIGKds6bpewUdy12aYbGcE2WoljqATE
	dlx4mYcpezoKSiLqmRV8TWCKei7fC32h5u+VYf4aShSiAyMNWKcw5u9BUy+Dj3KlSHnS
	u3PJ/vT0Ufbg6VKIsfpAdvOuZYtXm/rhZCCo98b2Lcf6Nu/Ns5AYKCrgejCNI0iHMgMC
	HqDYMk/CZVOenEQfiIziweCV9oUsPHhjTxqhmJsIhRl6u4jf0zcHQr5tgebI4thvmwh5
	p7+Q==
X-Gm-Message-State: ALoCoQnC0514TthPt7mHbsNPM9P06H4XIzr/3FRu3Y27qEHv8zagMaBfv5VmH1bCgIvrPNDHniWh
MIME-Version: 1.0
X-Received: by 10.112.72.41 with SMTP id a9mr1027061lbv.71.1402399505507; Tue,
	10 Jun 2014 04:25:05 -0700 (PDT)
Received: by 10.152.199.8 with HTTP; Tue, 10 Jun 2014 04:25:05 -0700 (PDT)
X-Originating-IP: [85.251.84.81]
Received: by 10.152.199.8 with HTTP; Tue, 10 Jun 2014 04:25:05 -0700 (PDT)
In-Reply-To: <CAC0TF=nNJ9qN+VCf8opwL822HA3L7sHpjV0v3=mCG51=y7V56w@mail.gmail.com>
References: <CA+8=xu+Bo5W+i__c-QMo+9sTTWzs4mi-wF9FFR1axPPRf5MO1A@mail.gmail.com>
	<CAC0TF=nNJ9qN+VCf8opwL822HA3L7sHpjV0v3=mCG51=y7V56w@mail.gmail.com>
Date: Tue, 10 Jun 2014 13:25:05 +0200
Message-ID: <CA+8=xuJ_jvX8ZtjTkgW37u1kjBUfYK9gxw22-y1CD5HqB6konA@mail.gmail.com>
From: =?UTF-8?B?UmHDumwgTWFydMOtbmV6?= <rme@i-rme.es>
To: "Chris D'Costa" <chrisjdcosta@gmail.com>
Content-Type: multipart/alternative; boundary=001a11c341985bf6d704fb7994f5
X-Spam-Score: -0.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 SPF_PASS               SPF: sender matches SPF record
	1.0 HTML_MESSAGE           BODY: HTML included in message
	-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: 1WuKAy-0000bd-Dk
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
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: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Tue, 10 Jun 2014 11:25:14 -0000

--001a11c341985bf6d704fb7994f5
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I believe that the Payment Protocol works that way, the merchant broadcast
the Tx.
El 10/06/2014 13:23, "Chris D'Costa" <chrisjdcosta@gmail.com> escribi=C3=B3=
:

> I wonder if Raul is mistakenly under the impression that the transaction
> only reaches the Bitcoin network via Alice? In which case the premise of
> this "attack" is incorrect.
>
> *Chris D'Costa*
>
>
> Follow on Twitter: *@cjdcosta*
>
> *------------------------------------------------------------------------=
---------------*
> chris.dcosta@meek.io (Meek)
> chris.dcosta@sossee.com (Blog)
> chrisjdcosta@gmail.com <chris_dcosta@me.com> (Personal)
> chris.dcosta@bitcoinassociation.be (Belgian Bitcoin Association)
>
> -------------------------------------------------------------------------=
--------------
>
>
> On 7 June 2014 00:02, 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 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
>> by 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 migh=
t
>> just cancel the deal with Alice.
>>
>> Bob forgets about that failed trade but a couple of days later, Alice,
>> who has stored the signed transacion, relays the transaction to the netw=
ork
>> (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 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
>> is already a fix for this problem or if it is simply impossible to execu=
te
>> 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 the=
ir
>> 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
>>
>>
>

--001a11c341985bf6d704fb7994f5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">I believe that the Payment Protocol works that way, the merc=
hant broadcast the Tx.</p>
<div class=3D"gmail_quote">El 10/06/2014 13:23, &quot;Chris D&#39;Costa&quo=
t; &lt;<a href=3D"mailto:chrisjdcosta@gmail.com">chrisjdcosta@gmail.com</a>=
&gt; escribi=C3=B3:<br type=3D"attribution"><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">I wonder if Raul is mistakenly under the impression that t=
he transaction only reaches the Bitcoin network via Alice? In which case th=
e premise of this &quot;attack&quot; is incorrect. =C2=A0<div class=3D"gmai=
l_extra">

<br clear=3D"all"><div><div dir=3D"ltr"><b><font style=3D"background-color:=
rgb(255,255,255)" color=3D"#0b5394" size=3D"4">Chris D&#39;Costa</font></b>=
<div><br></div><div><font><br></font></div><div><font>Follow on Twitter: <b=
>@cjdcosta</b></font></div>

<div><b><font color=3D"#9fc5e8" size=3D"1">--------------------------------=
-------------------------------------------------------</font></b></div><di=
v><font><a href=3D"mailto:chris.dcosta@meek.io" target=3D"_blank">chris.dco=
sta@meek.io</a> (Meek)</font></div>

<div><font><a href=3D"mailto:chris.dcosta@sossee.com" target=3D"_blank">chr=
is.dcosta@sossee.com</a> (Blog)</font></div><div><font><a href=3D"mailto:ch=
ris_dcosta@me.com" target=3D"_blank">chrisjdcosta@gmail.com</a> (Personal)<=
/font></div>

<div><font><a href=3D"mailto:chris.dcosta@bitcoinassociation.be" target=3D"=
_blank">chris.dcosta@bitcoinassociation.be</a> (Belgian Bitcoin Association=
)</font></div><div><font color=3D"#9fc5e8" size=3D"1">---------------------=
------------------------------------------------------------------</font><b=
r>

</div></div></div>
<br><br><div class=3D"gmail_quote">On 7 June 2014 00:02, Ra=C3=BAl Mart=C3=
=ADnez <span dir=3D"ltr">&lt;<a href=3D"mailto:rme@i-rme.es" target=3D"_bla=
nk">rme@i-rme.es</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr">I dont know if this attack is even possible, it came to my=
 mind and I will try to explain it as good as possible.<div><br></div><div>=
Some transacions keep unconfirmed forever and finally they are purged by Bi=
tcoin nodes, mostly due to the lack of fees.</div>



<div><br></div><div><br></div><div>Example:</div><div>---------</div><div><=
br></div><div>Alice is selling a pizza to Bob, Bob is now making the paymen=
t with Bitcoin.</div><div>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.</div>



<div><br></div><div>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).</div><div>



Bob does not know what is happening, he believed that that transaction was =
&quot;canceled forever&quot;, he even does not remember the failed pizza de=
al.</div><div><br></div><div>Alice has now the bitcoins and Bob does not kn=
ow what happened with his money.</div>



<div><br></div><div>---------</div><div><br></div><div>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).</div>



<div><br></div><div>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).</div><div><br></div><div>Alice now has two payments, Bob does not know =
what happened.</div>



<div><br></div><div><br></div><div>-----------</div><div><br></div><div>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.</div>



<div><br></div><div>Thanks for your time.</div><div><br></div><div><br></di=
v><div><br></div><div><br></div></div>
<br>-----------------------------------------------------------------------=
-------<br>
Learn Graph Databases - Download FREE O&#39;Reilly Book<br>
&quot;Graph Databases&quot; is the definitive new guide to graph databases =
and their<br>
applications. Written by three acclaimed leaders in the field,<br>
this first edition is now available. Download your free book today!<br>
<a href=3D"http://p.sf.net/sfu/NeoTech" target=3D"_blank">http://p.sf.net/s=
fu/NeoTech</a><br>_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href=3D"mailto:Bitcoin-development@lists.sourceforge.net" target=3D"_bla=
nk">Bitcoin-development@lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-development=
" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-de=
velopment</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div>

--001a11c341985bf6d704fb7994f5--