From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iF/IIpKBv2WpfQEAe85BDQ:P1 (envelope-from ) for ; Sun, 04 Feb 2024 13:22:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iF/IIpKBv2WpfQEAe85BDQ (envelope-from ) for ; Sun, 04 Feb 2024 13:22:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707049362; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=gPYafoDL+KvPJRrWyOlboKFn59a/kOLsX8Ic164s9vo=; b=NnWIc+M1ZZBXpSWWPxqpDimXTi6y5hbGMtxFfMRbXZJcFJGQ6Nr6vr9nfkvAaSJKmcc7Sk 8X+K8dV04i8o9t6k7UbRdTQy5TlrC1QGPlM4YEDAzm3Ukp20K8jOKu+2sX57+YD3dfKwr/ /BHp4ecXAsM/36BDBGvwEm8oF3sxDjFlW38ltS4zf+qsvNCbCP2JdMECr+K91wfy9fJrQu pEDQJZZXMwbROZXYoSv0MXplIMmabcp+Fkb/hvTPIU+aeXbzUCxP6Id01U7mKaW2GIyhao WD9ox/yZO7kR2VIO7+7YBf1fkbdJluax9wsKM0Fl4W2R57Cu/FkwBW3jNUMd5Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707049362; a=rsa-sha256; cv=none; b=pHthlAJoJnhTfQO9xKvJXWP2YqAvdE8gcgtbcUj9oC3aX7/ETwEarv2FEXtjfrzsWW8R3o z6QNW+DJXzN5N9bD4DRzLqEpITXQMkxUVOIkuDAnkvdKJagDmOGK+A/m5LQUrtxfmPv0fH VABiS1A9p6tosLo/s48M4ja2GunGYv0ULxmzIe7+j09TfjAsxKO7f/9TA1Zpn+rYnMeBV5 tagOMkz684tq4DxIs2s6B9LagZrfMP1d6dX81xKwzxXUROIb2yX5c6jfIQ3DLsdqFC0SBp rYRFQzYp9PGXHOdTp5aKjJtieRzDixkkZptmX7DaVFAv954TQL9WbO4IWPWLvw== 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 2B7E160632 for ; Sun, 4 Feb 2024 13:22:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWbVX-0002xj-Ua; Sun, 04 Feb 2024 07:21:59 -0500 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 1rWbVV-0002wQ-UV for emacs-orgmode@gnu.org; Sun, 04 Feb 2024 07:21:58 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWbVU-0003YY-Jq for emacs-orgmode@gnu.org; Sun, 04 Feb 2024 07:21:57 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rWbVP-00057O-W1 for emacs-orgmode@gnu.org; Sun, 04 Feb 2024 13:21:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [BUG] Unsolicited download of remote resources Date: Sun, 4 Feb 2024 19:21:42 +0700 Message-ID: References: <87wmrmskg3.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <87wmrmskg3.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.84 X-Spam-Score: 1.84 X-Migadu-Queue-Id: 2B7E160632 X-Migadu-Scanner: mx12.migadu.com X-TUID: CBnOGT6IHsva On 03/02/2024 03:03, Ihor Radchenko wrote: > Max Nikulin writes: > >> --- 8< --- >> #+setupfile: http://localhost:8000/setup-1234567890.org >> >> test >> --- >8 --- [...] > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=56748ea4e > > Please confirm that the fix works on your side. I have tried it with this specific scenario: open such a file (not a mail message with an attachment) with http: URIs. "Skip" works as expected now. I am unsure if any kind of remote files is blocked. However it may be unclear for users that setting `t' for `org-resource-download-policy' is dangerous if they use Emacs as a mail client or as a handler for opening links to .org files in browsers. I would consider adding "dangerous" to the label of this option and a warning to the docscring. Another my concern is an attack using an attachments with multiple "#+setupfile:" keywords with remote URIs. Users will be tired declining specific download requests without an option to ignore all remote resources. I hope, C-g it is obvious enough and it works in gnus&Co. I am unsure how to implement in Emacs an approach used e.g. in Thunderbird. Remote content is blocked till an explicit user action and a yellow bar with an unblock button is displayed at the top of the message body pane.