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 mNv/E6Krw2UJQAEAe85BDQ:P1 (envelope-from ) for ; Wed, 07 Feb 2024 17:11:14 +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 mNv/E6Krw2UJQAEAe85BDQ (envelope-from ) for ; Wed, 07 Feb 2024 17:11:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="eCg1hHc/"; 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=1707322274; 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=+nf5Glrmk1C710LUt4/jaWCeTrhh/e4jVc7bW8DoJ10=; b=uK3XHZBqZqxcUBaySACwVK22M+0NQEvxsI7wrgzt1+Ev19ugv9XFowXEUXQcs2P7OUjDcS dIRt5E0Rlck8HJMCqsebJ/G7Vkk67YajttT8jRXwdewcXdxJnaYZ4/kfTz0EdJ5lTyMxDX KQjRNUf65DJqVnta0xhKXFxgRVjkgkS8pevsGcsww5DsFyBsEJCASuFifT07hl2b4l/RIf 45m2ofcBQv3djtbXgdmWqObt5130Q3upRSHaAP1Rz2yeYVA8pBAlmdOw9MW2W7aS8N5cMx f9M5uBRv7mQQKhyeBfxiThuHnUdK3sfByefHEs51IqUjaY7kL7pfRblkfFpKuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="eCg1hHc/"; 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=1707322274; a=rsa-sha256; cv=none; b=o2UFbaLfjHHjqAVpS+EpfN2U3UVNUc8DdcXQxPVTJj8JMiSCSgmqmLiQ+vrqJVtClWS0ZN PLXk3+o0iD5cIGdwcJ/ngdSEgNHcpHolu7iYavR6OBQ34kWmd7A5jFs7A1cUHBKfzRmcow KORhSY+gY9lDfBmg/TS0iqPioHKgJ3uQCuGmO6eB8JJAsczW4tJO6Qaa6VAsee/yFxJVRQ Y4izhZxEns4bCktIMzvH1R/FCq0oJ0whmorAzvgmAxc8sTa59Try027UUTYfg0UGtYf/W5 R+fpT68aF1SNzgNaU3DSHJKUzvhL1sb3bAxbYMwUtLrpIIWhH7QUaluFq+xMsg== 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 1514E214EE for ; Wed, 7 Feb 2024 17:11:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXkUE-0003hp-KL; Wed, 07 Feb 2024 11:09:22 -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 1rXkUA-0003fo-15 for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 11:09:19 -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 1rXkU6-0000n7-Tv for emacs-orgmode@gnu.org; Wed, 07 Feb 2024 11:09:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id F3497240105 for ; Wed, 7 Feb 2024 17:09:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707322153; bh=dcH0G9waTuWbKHNcg0aJpP7ax1thOeTzdUIALtbQaOE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eCg1hHc/FdOA2pHam6+yRb0KWN8hfzbdHDR+loBqm/UpN0guFHE1l4WorTTGcavw2 0SHVOA1v/ca5X5fNMQj6RuzJxKFAckptHKJsUsTQmWpAi5q3HKzIW5gJa7TE96RF0/ UcKvQatM4cEgUJqOtxRAC0jPgFgJqFjit9ovdXJQRGq1y5/npTaX1B1tubtZXa88im i51Izxx1VYkv7B7sAchSJWi9y13R6ffVa7pDRBF5Tnudf/M+4pZRBIJGmTvHGAwSk7 GC4ZiQSF21MDwkOo7pf/JHZQRBp1VWQ774PvSdUBcwgQ/vweJLFv8m6HT/dJ9e7xVE f2dtucLmIcPxA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TVQ6J0hjPz9rxK; Wed, 7 Feb 2024 17:09:11 +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: Date: Wed, 07 Feb 2024 16:12:41 +0000 Message-ID: <87bk8s45ja.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: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 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, URI_HEX=0.1 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-Spam-Score: -9.61 X-Spam-Score: -9.61 X-Migadu-Queue-Id: 1514E214EE X-Migadu-Scanner: mx12.migadu.com X-TUID: zotukiZ8+5nn Max Nikulin writes: > Consider the following .org file: > > --- 8< --- > #+setupfile: /dav:localhost#8000:/msg-123456.org > --- >8 --- > > When Emacs opens it, HTTP server (plain HTTP, not WebDAV is used for > test) logs contain > ... > Emacs *Messages* buffer: > > Tramp: Opening connection for localhost using dav...failed > ... > No dialog whether the file should be downloaded is displayed. > > My expectation is that Org should not connect to remote servers in > default configuration unless it is explicitly approved by the user. We only protect from files matching `org-url-p'. TRAMP files are not checked. I think we can enable checking for anything where `file-remote-p' returns non-nil. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at