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 ms5.migadu.com with LMTPS id kLsPCZYgWWMC1QAAbAwnHQ (envelope-from ) for ; Wed, 26 Oct 2022 13:57:10 +0200 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 qBAWCZYgWWP7eQAA9RJhRA (envelope-from ) for ; Wed, 26 Oct 2022 13:57:10 +0200 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 CDB77AB9 for ; Wed, 26 Oct 2022 13:57:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onf15-0000D1-Ax; Wed, 26 Oct 2022 07:56:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onf13-0008Sl-5G for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 07:56:13 -0400 Received: from mout.web.de ([212.227.15.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onf0y-00068T-GB for emacs-orgmode@gnu.org; Wed, 26 Oct 2022 07:56:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1666785322; bh=iYh4KeAKnnt3UUhrSrZKyiuxmNxHHWGZIDYxL9GPGZ0=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=hwvFLRpusFNsBEZME5fKvzJm2vFzCJ/XGfccQXqbBzGbJzQ5KXIoYt8JZIpWsIQz/ I4ikdq2fhtsZa2TBDpwsp77Lb2RoWRhyh83yg2ociTqyVidOCKAUhFqg2E8VBBZhlR lvXrFfOKgl6rLhsaRjc6hImvNWervxS0QVfZRoYoVnxBipUYwvL+IXCshjPDIdSh/2 709CwOWN6aYZtWmsYvbm0Ur4JKH8apGkXPlnh2ER22peRDUJw6LnFkUm8BWG4SUYbs V0so/CUtAbvhBXLVvLCFgUmiq5Kq0ChAcXz0DXr6s2xWRwGGBbgC0lmlK3IJjgHGWa 8VsFPwfq4Iupw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from fluss ([84.165.20.127]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M7Nmq-1oiBtO02XM-00820W; Wed, 26 Oct 2022 13:55:22 +0200 References: <86bkq0qf8p.fsf@protected.rcdrun.com> <87bkq0t03l.fsf@web.de> <87v8o7qzff.fsf@localhost> <87zgdjoz3r.fsf@localhost> User-agent: mu4e 1.8.9; emacs 28.1 From: "Dr. Arne Babenhauserheide" To: Ihor Radchenko Cc: Stefan Kangas , 58774@debbugs.gnu.org, emacs-orgmode@gnu.org, bugs@gnu.support Subject: Re: bug#58774: 29.0.50; [WISH]: Let us make EWW browse WWW Org files correctly Date: Wed, 26 Oct 2022 13:30:15 +0200 In-reply-to: <87zgdjoz3r.fsf@localhost> Message-ID: <87eduusst7.fsf@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Provags-ID: V03:K1:k/mqRU7lc2utOGJAZKFQCFYAVA5bzHf/C6r4BC11ecCoUl3Eyvd ZApzPVvStysdAd0mIPL9wZYmFkCxijlEWGha0ELX9ZuPqRLCxCQkXMG1M1l4xzIpHG2bIk3 eBA9fH+cGmuB6mEVkL5JaCvwG/vwhuRMJKgUx2hMj+eft4Qf7tQC8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OYQqo00ozLLVrCP04ORxBZg= Received-SPF: pass client-ip=212.227.15.3; envelope-from=arne_bab@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org 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=1666785430; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iYh4KeAKnnt3UUhrSrZKyiuxmNxHHWGZIDYxL9GPGZ0=; b=EgaoMuTq0YuKe8EOvKVkS8PXQw/QiG4X1aDHAUIdx6wEkb/GVe+hQUH5I1LKBGPaSNsotv jjwD41MPYUpXQZfl4nBXfzJfYO+nBwQa8NpxLYQBvi4vVnbsjXz0wzONlibO0gcIU8BoUB 6DHc9JbO5wTW87YHtvRm0pjSqsknf/eFBYo9l0v89I9vTm+yOgBqbvp5fm2dLxz3EFzJbt meT4mssRCStTYGlmX2R9eE3o++59qMInbvpNYjk/VmFnwYMwYJ0xvgZB3AYOPdHGyeC+im uOWpIGKqpOz0KshZqU4qi+HSZiCRvYTCOQGJ90AiJxdtIA3PyQJ3EL4U8W+Nyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666785430; a=rsa-sha256; cv=none; b=JddojrwE3cjI0Qf2RBT+uJZ1R+XJPZLePoT42RFD70RtG9CyBsO2+pfTSipAWWvxfDkE5Y VrutF8L413PZ+Thp8a8mGaIK3aY/SujfVQNJYp3gVamSMtr4a7ar3RjAmILu6CiBI/YC98 FYx6apfQOcNQVNnMQtEXFpMiz7Tq9qoCkQSSR+eE/BF8yyTYZdn8ld33Qu30ov+poIx1L9 EAw1v0+cHLZEiQNQTANuZNjHtNeScoohO1eT47xc3xEArNzknE2aPVLoJNs6+1rPse1iiu r+YmeZICZITVEQ6B91/c8nQImweQu1LpkqmDcqavbC8nH7dJ0qG/foKBzmsJJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=hwvFLRpu; dmarc=pass (policy=none) header.from=web.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=hwvFLRpu; dmarc=pass (policy=none) header.from=web.de; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CDB77AB9 X-Spam-Score: -6.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: M18mA1+dievQ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > If necessary, we can introduce a special variable in Org mode that will > disable all the potential third-party code evaluation, even if user has > customized Org to execute code without prompt. If that would be part of org-mode, this would be close to a safe-org-mode. An important part in what I wrote about safe-org-mode is that it has to ensure that what is shown cannot trick the user into thinking something else would get run. A way to reduce risk would be to introduce a domain-allow-list (or prefix-allow-list) in eww for filetypes that could be unsafe, so you could for example add "orgmode.org" to your allowlist and for those domains org-files would auto-open in org-mode. Such security risks have a tendency of getting weaponized down the road when they really hurt. Like when people didn=E2=80=99t care about npm dependencies and had them suddenly deleting their files. And opening in the currently used Emacs may give a malicious file access to remote files opened via tramp, even if you (by virtue of being careful) require a password for the connection to sensitive servers. That way, running something in Emacs can be even more dangerous than running it in the shell. Best wishes, Arne =2D-=20 Unpolitisch sein hei=C3=9Ft politisch sein, ohne es zu merken. draketo.de --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmNZICgQHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD6/25D/4sPf5oP2bNFUTlRqloPW2cmptHNszpv04q aYqiscwgi6uNfZrxrjdkizJ045E4X4ekNbfk6ctyHNLdIrqa3hOQ+4LzL8CctuX4 rezSxmV61L4Ifg6Bjt/YI+shTFPunzujt0cuSGATYuUB1HqLkDKuywUuZEHGnD91 PFzEg5YQn7HXozUljtzzROt+vNTYDeU/90xDYRlbMH7zwGLBaz/1oaR1qfVp+OOA V/Tp07zIlQ3Wn2L6ujxa0aGOMv+/BzlzJsMbpeGXgrTGndBusbKpDPVvTnQhI2FD Gu2mQe4LNbqINnfhhvVZZwgUFa0TkUDwCUonP2lUeFQaBAB1D5mkFi9KaLBw3OtM lUbFthlaa7yWni4oowavHGXpyF7W76GZ3Sc8LpNaPV2riwMM21z4OnnFiJUR26XK GdDmsvmGB9+cF+Yy0VfuI91eGCrt/38GD+lH4bMEPsF+/kUPtQfCrXePNtM6CGCn z/dQBXOXMaeQv6M29B4UtHnbyW0RYN3hjiugE0NW0vrAL3STSDgGlAo9JzLK+0kF Vdt+QirGmyuXULWYaKjYnoPvvoklOP9n35A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