From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wJpABWC99WH8fQEAgWs5BA (envelope-from ) for ; Sat, 29 Jan 2022 23:19:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cCiDAmC99WFWYAEA9RJhRA (envelope-from ) for ; Sat, 29 Jan 2022 23:19:12 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 854883244A for ; Sat, 29 Jan 2022 23:19:11 +0100 (CET) Received: from localhost ([::1]:51016 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDw3q-0007DA-6c for larch@yhetil.org; Sat, 29 Jan 2022 17:19:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDw3i-0007Cl-Hh for guix-patches@gnu.org; Sat, 29 Jan 2022 17:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDw3h-0004ly-Oq for guix-patches@gnu.org; Sat, 29 Jan 2022 17:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDw3h-0006T7-Ji for guix-patches@gnu.org; Sat, 29 Jan 2022 17:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52555] [RFC PATCH v2 0/5] Decentralized substitute distribution with ERIS Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 29 Jan 2022 22:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52555 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: pukkamustard , 52555@debbugs.gnu.org Cc: ~pukkamustard/eris@lists.sr.ht Received: via spool by 52555-submit@debbugs.gnu.org id=B52555.164349469024793 (code B ref 52555); Sat, 29 Jan 2022 22:19:01 +0000 Received: (at 52555) by debbugs.gnu.org; 29 Jan 2022 22:18:10 +0000 Received: from localhost ([127.0.0.1]:35091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDw2r-0006Rp-SD for submit@debbugs.gnu.org; Sat, 29 Jan 2022 17:18:10 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:34448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDw2o-0006Rd-Ts for 52555@debbugs.gnu.org; Sat, 29 Jan 2022 17:18:07 -0500 Received: from [172.20.10.5] ([5.23.227.239]) by baptiste.telenet-ops.be with bizsmtp id omJ22600E5AYamV01mJ2w6; Sat, 29 Jan 2022 23:18:05 +0100 Message-ID: <73b50ffdca94407ef9fd7ef4875985a3b1c3c568.camel@telenet.be> From: Maxime Devos In-Reply-To: <20220125192201.7582-1-pukkamustard@posteo.net> References: <20211216161724.547-1-pukkamustard@posteo.net> <20220125192201.7582-1-pukkamustard@posteo.net> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-SwekApwKll48sZBJcCBy" Date: Sat, 29 Jan 2022 22:52:49 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.38.3-1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1643494685; bh=IyDH6w3YbsS24u/d8ZJUzQq9ZEAoSyK3ObVp/Dvz80Y=; h=Subject:From:To:Cc:In-Reply-To:References:Date; b=U/WM71znY+1K3HGxcl0s5aFDGvZNJmpIwdctEE+bUs2+hKjQH90LZ3bc1eySUOvjX Fp0nW8MPpOaj1vo6UpwIYc8Dl3FAqUQPsq6KTq0Oerw5DzeBtKPpK3PpEzb076XoP0 JvCpVkfuLBwh7AwLRhtfi+y5tNdfbXfc4Co3t81wnYXRi8rAd87ePkLxkl75kL4zKU e2igzjn3f05BAR8lhiM5u19aODOkaOQTXE8kmmOzQpyd68Ndl28FtroSaH6QMet1nC XgMnExEEh1ahfBIjbqHW5vyXOgDLx5/396HLVfOoKaETc30oKFbMU2FgVGzsi/iwTL ZCqdD13PHuviw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643494751; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=IyDH6w3YbsS24u/d8ZJUzQq9ZEAoSyK3ObVp/Dvz80Y=; b=fPmQvS50x0SCGG6kUhvqEIDzLNL5C6E73EKroHSBuIAg5YQhqsubY1zgZudc41fzda1G5z heFf0jyHfy9Od0HKh9ipayoDOAqC/7khUAQsCct67eKYc8ZHDSxxo5D7jSCDLNqRArNY4l YrqQ6UaEDcRzWq9ctKD1gIShcw4lCmnZHr9+7p26wrAF2JMjDeOcVKHDn2NBl0U8My43yR INwj7zHwCPZPOUSXu1j+6FjnyDad0HfwlavZFZiJeWdccH5i68W4GL1U1PxFcMSLj0Zoba hZ0If4pibU7DwyHy7RJP+F2kWbhKICeszc6j1zKYpref5Y8kUJ166qIo338AOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643494751; a=rsa-sha256; cv=none; b=Me7zmPuq5UbRoh9uNI83qZM55Lh0Gy4oySioKJi5poHXmRJHt3Y/dHV7Xb5B2E9pomTgPo vm8/sf0i06/1feFCUJTQL8BjGgO3wuL9eWJ2rsRCwo9KGeG5RHflxzdWhSu3CC+w6KXq3g Oa2ANcLTraYCmFt0XZQ70XrUs79VCySoCJtBwTYGTwyQ5gO3S7SPMRcNU9A939u5+VeSeu dkFJYpNLCB7WJIYiVTUda7wMLMLLItvCwkUIdFI3JF/oeGmWkO1hfmVDvy+/AdtTmAhhRH ixZgEUyvKlqv1a2egUVWb9P75AJpYcwOUHl/9C1ihMvq1OLtJd53i7WkSZIK+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="U/WM71zn"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b="U/WM71zn"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 854883244A X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: WatQs7kBtHT9 --=-SwekApwKll48sZBJcCBy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Is it possible for the following situation to happen? If so, why not? 1. server A is authentic 2. server M is malicious, it tries to trick the client into installing an incorrect substitute 3. (key of) server A is authorised 4. (key of) server M is _not_ authorised 5. server A and M are both in substitute-urls 6. server A only serves =E2=80=98classical=E2=80=99 substitutes, server B= also serves via ERIS+ipfs 7. Both A and M set the same FileHash, References, etc. in the narinfo 8. However, M set an ERIS URN pointing to a backdoored substitute. 9. The client trusts A, and A and B have the same FileHash etc., so the client considers the narinfo of B to be authentic because it has the same FileHash. 10. The client prefers ERIS above HTTP(S), so it downloads via M. 11. The client now installed a backdoored substitute! Greetings, Maxime. --=-SwekApwKll48sZBJcCBy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYfW3KhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hJxAQDlxH9zz6F8LpkiMv07Hcyt35CG YFb2CeCw2dbFO7qXNwD9HeDCIHVHzYQD/EvcGcYhQIocR7cUvrSnvPyFVHFErQ8= =4RmQ -----END PGP SIGNATURE----- --=-SwekApwKll48sZBJcCBy--