summaryrefslogtreecommitdiff
path: root/30/ea1785c4ad27a1084e5daae405ede06dae65bb
blob: 078640208f8359e863f331cf0c0b1fe19136d160 (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
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 <rme@i-rme.es>) id 1Wt2KB-0005f9-Jl
	for bitcoin-development@lists.sourceforge.net;
	Fri, 06 Jun 2014 22:09:23 +0000
Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of i-rme.es
	designates 209.85.215.54 as permitted sender)
	client-ip=209.85.215.54; envelope-from=rme@i-rme.es;
	helo=mail-la0-f54.google.com; 
Received: from mail-la0-f54.google.com ([209.85.215.54])
	by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128)
	(Exim 4.76) id 1Wt2KA-0003pN-LB
	for bitcoin-development@lists.sourceforge.net;
	Fri, 06 Jun 2014 22:09:23 +0000
Received: by mail-la0-f54.google.com with SMTP id pv20so1931603lab.27
	for <bitcoin-development@lists.sourceforge.net>;
	Fri, 06 Jun 2014 15:09:15 -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:from:date:message-id:subject:cc
	:content-type;
	bh=mPzytAXAzVKGZtfSLaTBI+Q+5iO3fOzgO8KrDa/E7n4=;
	b=cDisiGdmxPu/a6CLgsEnMIoxJBVuwSE8f4MCxNJA4GeuHatWZfSJ+RYWiZZ8neTZKP
	EIvRI8FQg8sd3ACeiA40ArhpJBxE6KDV1XH/J7lHN97db05eVApsIyzVZK6kstmYCH0q
	pBUNUdqF/9ZdGHOKHI+y7r0PzwlvIoHgCc3Rhpi6xlHFv2CtK2aL2xHDkK6p5w5hn1Wk
	H6AhGr9r22kP/12HIeKX1KkATOc1gPZN0BHTUE3y2mKen8ttg3ooeOr4DHTnIx9nZUCg
	rTZUSFQDBDfxqZgaAIGNqE3Dse2ECFraJToOwtYZnEhrJvQIWtBezhAT+mw95jvBscyf
	DepA==
X-Gm-Message-State: ALoCoQmSzkCpOf59dt2hy1ieaaD2Xs3RiLD9CCQW6fUt9rXbYCEWlmahKN3iQULpngIUdZ9MHR8f
X-Received: by 10.112.143.132 with SMTP id se4mr5161677lbb.53.1402092238189;
	Fri, 06 Jun 2014 15:03:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.152.199.8 with HTTP; Fri, 6 Jun 2014 15:03:28 -0700 (PDT)
X-Originating-IP: [85.251.84.81]
From: =?UTF-8?B?UmHDumwgTWFydMOtbmV6?= <rme@i-rme.es>
Date: Sat, 7 Jun 2014 00:03:28 +0200
Message-ID: <CA+8=xu+qFFuF=NRvQJ32UAYDa6Air1DJChqexj27RX+hkdEk=g@mail.gmail.com>
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Content-Type: multipart/alternative; boundary=089e01227df4cccdcf04fb320948
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.2 MISSING_HEADERS        Missing To: header
	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: 1Wt2KA-0003pN-LB
Subject: [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: Fri, 06 Jun 2014 22:09:23 -0000

--089e01227df4cccdcf04fb320948
Content-Type: text/plain; charset=UTF-8

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 might
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 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 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 execute
this kind of attack.

Thanks for your time.

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

<div dir=3D"ltr"><div class=3D"gmail_quote"><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 unconfirm=
ed forever and finally they are purged by Bitcoin 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></div></div>

--089e01227df4cccdcf04fb320948--