From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kBAdAWrtxGXWogAAe85BDQ:P1 (envelope-from ) for ; Thu, 08 Feb 2024 16:04:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kBAdAWrtxGXWogAAe85BDQ (envelope-from ) for ; Thu, 08 Feb 2024 16:04:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hTEhohGn; dmarc=pass (policy=none) header.from=posteo.net; 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=1707404649; a=rsa-sha256; cv=none; b=Axdp7D6KTezXKPG+/OS91iazWFqZ59P1waCznzP9dzFiAZPZFWXUvf/L8j1QHcnLHGDfM4 6GJoIdvqkfBskPNkoBxuDQ78Xyn40iC8Ht1zqu1W9qmyO8iZVm9N+zDnceS1f6UkS3xv2B Nhx92XLOwXr59B1n3oDhNc6f+/EuuKEtw7BkwpTGqGzrqIRzzOzhr0u7EAjEVRQDB2irot /aSYg0AVew0gOf7QoBsNye/5i7P8NZ3A1t7bieH7k2FW9U5HpedDp+VUvXUGv/5OKOhORu oJJ98SDw7MvIUWfRjDj3usCO5eati0Uq3Nkx6mFGF2JsBS82LxAUr6DlMSDuUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hTEhohGn; dmarc=pass (policy=none) header.from=posteo.net; 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=1707404649; 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=+dpIkW+a8NbAFYr7TvfMs0Zj4ai+8tNQFaXs/4HLmxQ=; b=JYEbHaj152EKZLyk6nI+x/w/VayxgutXhTDcLRUGD+0gyUKP+MBD4KXbQ23GUbFKWu5BsS aK087HM+QbDe8LKq2cVwJbMCWvFEze2ajxI5WWXoj3BgMZMQMbbv5LUq9lC8FJ28ZCpST7 Wq/eE9SLAWS2lGDQM8YH9lg/7S/W6eVua14NH0wM1CyvFRiGjpSHgWhnyn0KJxT0vor1jo PZ3nZoyX2wd+DxD+lZwao7/lEj6MsA3sqBItz88nTFleaurkKF2HC/V3PU8RDrQc4B/nnO 0zXjXDoC05+a81fuRy3Kpmi7T3P603SvSJ+uIhgfmaBlx0rUdWOppCJn5ROkIQ== 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 E166873D39 for ; Thu, 8 Feb 2024 16:04:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY5w7-0001Fz-M2; Thu, 08 Feb 2024 10:03:35 -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 1rY5w5-0001FG-BW for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 10:03:33 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY5w3-00061m-JM for emacs-orgmode@gnu.org; Thu, 08 Feb 2024 10:03:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8FA85240105 for ; Thu, 8 Feb 2024 16:03:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707404609; bh=RnG7AD3K8gz81tJmf1VlIiiXXymLX9x8gtauKqND80s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=hTEhohGn9iCImKUg8ibwIHSoIMT5l6OVTIcNY7sekoImZQBMp5jGVFSB4W9TSSoMS SEhrIO1WQmcN3V+Wstnqr30h8R7qfIbJjAac5EGPdh4WOyBX/+u3IP8ePJg8fxtbOO ZOGL9fW4GPxMHbgENZf2yUt5ZBzhXkTu3FJOQ0kl+Pz8S8vvHYheBPJArFIOhrsIxS +CpC5oVyw7QTK+XlWok9k0V/vSZedopoB9rKUgbiZZGx4V4fEi9f42kWTOpvcPnACr e3Qg+1SXJE8evGQinvExzArayCVMnJVXT6ZzXn/cKoWn7ySFzvybP546qmk9BIzqF0 NLSSGHnO8V+0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TW0c06GVSz9rxN; Thu, 8 Feb 2024 16:03:28 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Org may fetch remote content without asking user consent In-Reply-To: References: <87bk8s45ja.fsf@localhost> <87a5ocqjy6.fsf@localhost> Date: Thu, 08 Feb 2024 15:07:00 +0000 Message-ID: <874jej0zcb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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-Scanner: mx10.migadu.com X-Spam-Score: -6.90 X-Migadu-Queue-Id: E166873D39 X-Migadu-Spam-Score: -6.90 X-TUID: OyZi80p8LB6Z Max Nikulin writes: > On 08/02/2024 00:10, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> It is a bit more tricky. Current file may be remote as well. Browsers >>> have concept of same origin for applying security and privacy measures. >>> Org needs something similar. >> >> May you please elaborate? > > Consider a file opened as /ssh:host:org/test.org that has > > #+setupfile: /ssh:host:org/include.org > > Formally it is a remote file, actually it resides on the same host as > the current document. Perhaps user consent is redundant. `org--safe-remote-resource-p' checks the containing Org file as well, in addition to #+included URL. > ... > or the user has /ssh:host:org/ in the list of safe URIs. So there is no > need to treat such coincidence in a special way. I think that it is indeed good enough. > I am not confident in proper policy though. When some URI matches a > pattern in the safe list, likely it is suitable for files created by the > user and it is not really safe to allow it for a mail message attachment. May you elaborate? > Default protection should not be excessively strict, otherwise users > will disable it completely. Agree. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at