summaryrefslogtreecommitdiff
path: root/5b/b1f2d121f654d461a05b2781605d1612ccd306
blob: c1db941f1acbbdb735f689d13486b5b9b895dbf0 (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
Return-Path: <pete@petertodd.org>
Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 3E9A2C0032;
 Fri, 27 Oct 2023 00:43:39 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp3.osuosl.org (Postfix) with ESMTP id E55746FC58;
 Fri, 27 Oct 2023 00:43:38 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E55746FC58
Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key,
 unprotected) header.d=messagingengine.com header.i=@messagingengine.com
 header.a=rsa-sha256 header.s=fm3 header.b=ayLOjxc2
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.602
X-Spam-Level: 
X-Spam-Status: No, score=-2.602 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
 autolearn=ham autolearn_force=no
Received: from smtp3.osuosl.org ([127.0.0.1])
 by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ZWbRdb8nZRRC; Fri, 27 Oct 2023 00:43:37 +0000 (UTC)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com
 [64.147.123.25])
 by smtp3.osuosl.org (Postfix) with ESMTPS id 8A70161360;
 Fri, 27 Oct 2023 00:43:37 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 8A70161360
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 196863201100;
 Thu, 26 Oct 2023 20:43:34 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Thu, 26 Oct 2023 20:43:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; t=1698367413; x=1698453813; bh=fAVjzREsiuYFV
 JIKqS78rQuX07prBXh7PyOwVIGRvQQ=; b=ayLOjxc2AYiSBvJ8CbjQl5Rjn4JxK
 MVaPnzvTtarlZ+ladhwjcbma7CVFkV7RdnlyFVR3/KHuN+X0a7q5CDbWk7MErFcB
 KPFCXcXjl6P50cpzRf158OooHGJniFbi/mCPClo9XE3eMoCK/pzKScv7JFuzffct
 5MyaDyum4deE5jWw4Y7B09o8ATUMexqr/t0URe93arAE9z5wwQPl/HNF9xfvpmnj
 40pG1Y+OZEJZ2PgvcKjH37RqjSYpxbDcQ0A18xegGdAGNw8SUxeYX7Mbb/gfNxhQ
 KOMqpE5YZ52e5fOcW5/AxjYX//iE4whYOwOyUcgONSh/pX3BeZHdh9ugA==
X-ME-Sender: <xms:tAc7Za5GihOVPuZ2BUu89vjBkmZJHysqcyELivysdjY5BaxefUD64Q>
 <xme:tAc7ZT6IvuGCQR4S-8VtfFnzrkF4lVtgDxRS2GV_0vu_y4JzdWQmYnk-eE2CexNJ0
 iUbE91lPWog4yj0Oqw>
X-ME-Received: <xmr:tAc7ZZcOEKF3HFBSqFxezTg3nSBGmUtJT2wsht8AD95uMKT8EZ0-MUp7DV15aooCUMtIs_gycEJSi6KWN655KnEC5nqW>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleefgdeflecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefrvghtvghr
 ucfvohguugcuoehpvghtvgesphgvthgvrhhtohguugdrohhrgheqnecuggftrfgrthhtvg
 hrnhepledvleelffdtudekudffjefgfeejueehieelfedtgfetudetgeegveeutefhjedt
 necuffhomhgrihhnpehpvghtvghrthhouggurdhorhhgnecuvehluhhsthgvrhfuihiivg
 eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvsehpvghtvghrthhouggurdho
 rhhg
X-ME-Proxy: <xmx:tAc7ZXJMCauDpPcJyvPey8559rK8csTLqzcNQ5DhXRJruWctAAnDIQ>
 <xmx:tAc7ZeK8_742aiR9l1jo0lBqjzgfWzLcS5iYobbOSgXmxc92MHSstg>
 <xmx:tAc7ZYwU1bOQj2yP77cpGMjXCs2yq29CMIMqwH2NSY2fkJY_baiXvQ>
 <xmx:tQc7ZQiza-0C41tVq8p-XoYLAt6ew8UWqM3tr-PvN5MZOzrQU5L8yw>
Feedback-ID: i525146e8:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 26 Oct 2023 20:43:32 -0400 (EDT)
Received: by localhost (Postfix, from userid 1000)
 id 946705F828; Fri, 27 Oct 2023 00:43:30 +0000 (UTC)
Date: Fri, 27 Oct 2023 00:43:30 +0000
From: Peter Todd <pete@petertodd.org>
To: Antoine Riard <antoine.riard@gmail.com>,
 Bitcoin Protocol Discussion <bitcoin-dev@lists.linuxfoundation.org>
Message-ID: <ZTsHsn5s/wswxlIo@petertodd.org>
References: <CALZpt+GdyfDotdhrrVkjTALg5DbxJyiS8ruO2S7Ggmi9Ra5B9g@mail.gmail.com>
 <CALZpt+G-eLLShrJckLG1UMDQ9tMGzqP1pBsUpEZ+82e9wHZGYw@mail.gmail.com>
 <CALZpt+GfM=7XyxXzcC5mMskVJg6L4sH61-_2H9+FHHJU0KN+Aw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="JKgD872yQExnQkWu"
Content-Disposition: inline
In-Reply-To: <CALZpt+GfM=7XyxXzcC5mMskVJg6L4sH61-_2H9+FHHJU0KN+Aw@mail.gmail.com>
Cc: security@ariard.me, "lightning-dev\\\\@lists.linuxfoundation.org"
 <lightning-dev@lists.linuxfoundation.org>
Subject: Re: [bitcoin-dev] Full Disclosure: CVE-2023-40231 / CVE-2023-40232
 / CVE-2023-40233 / CVE-2023-40234 "All your mempool are belong to us"
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Oct 2023 00:43:39 -0000


--JKgD872yQExnQkWu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 21, 2023 at 09:05:35PM +0100, Antoine Riard via bitcoin-dev wro=
te:
> In the meanwhile, lightning experts have already deployed mitigations whi=
ch
> are hardening the lightning ecosystem significantly in face of simple or
> medium attacks. More advanced attacks can only be mounted if you have
> sufficient p2p and mempool knowledge as was pointed out by other bitcoin
> experts like Matt or Peter (which take years to acquire for average bitco=
in
> developers) and the months of preparation to attempt them.

To be clear, I am not making any claims about how easy this attack is to pu=
ll
off. Indeed, there are probably even cases where it happens by accident. Eg
imagine a node with a HTLC-preimage that happens to be offline and then onl=
ine
at the right time to broadcast a HTLC-preimage redemption transaction with a
higher fee than the timeout transaction. If the other node happens to go
offline at the right time, after broadcasting the timeout transaction, it m=
ay
not notice the HTLC-preimage in the mempool, and thus fail to redeem it.

OP_Expire would help avoid this situation, by making it impossible to redeem
the HTLC-preimage after the timeout.

--=20
https://petertodd.org 'peter'[:-1]@petertodd.org

--JKgD872yQExnQkWu
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0RcYcKRzsEwFZ3N5Lly11TVRLzcFAmU7B7AACgkQLly11TVR
Lzfn8Q//c3syejae7aoVt0l66Vkrz402ZjvJ1GBWOhVgc4cBmTSbGzgZeUT5P5wG
yVTr95c7amdeXt7CFWH3ClnKH66ZSVmXz6cu5vXLwURczaZQd1vgYnkzEhl4BTp5
VI6Lfjg4372vIopvfeAdLPuQ3iVqu7Iz4sQvI30+FMCudHkWKcDgujT6Z43h2jLd
rQXrpUbpDU3czcdpg/XT+yv/5dL+UeGL/tHvvRQqNexS9EXZwMBWEF3QdyDu9PTI
Y/oJyi8XzCBVWrxFPttuWaEvVIETS977F+76KvqfbqWSTAvfan52Q+ib+kYqY0Hq
7IDJo89oa+Wm0hM8rWXX74vxmoEbR0KFNyKYvFS+2hB/6ibS4FkW0BwLzoCQhVEf
JIb4/pNHnw5BvPLfKI/nTMc82VcvpZGXHfkDeERciLwmoh+8cBhAvujyXPDTCo3w
vRQcOmhYIVQEgdQdsK0nQ78kp82J/AbCiWkaiDwDfCSMbO5iL3RbbB7VIV9PLCqF
zHvqRZUS60oqbChqOcWIN3wYn+i1fOhuM9o3L47y9TCtkamkYsWk0pKaztHCP6gB
nfu3LksOneYYi3RANAy8YKbmlDw7L5/9nKjFV3H0QN9t+cNzOUIxLMMJRfqfsUWK
WkoeXD/fkU5KgpFw5gaeHgR6WeZ8bMb4zKaCICYca1HXtpSeJnA=
=j9JO
-----END PGP SIGNATURE-----

--JKgD872yQExnQkWu--