From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eAQNEriHW2MSXwAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 09:41:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CHYREbiHW2MOCwEAG6o9tA (envelope-from ) for ; Fri, 28 Oct 2022 09:41:44 +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 C8D743CAB6 for ; Fri, 28 Oct 2022 09:41:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooJyf-0008Ru-KS; Fri, 28 Oct 2022 03:40:29 -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 1ooJye-0008RT-E0 for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 03:40:28 -0400 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooJyc-0005fJ-LA for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 03:40:28 -0400 Received: from localhost ([::ffff:102.85.119.94]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000081D92.00000000635B8768.00007F8D; Fri, 28 Oct 2022 00:40:23 -0700 Date: Fri, 28 Oct 2022 10:30:21 +0300 From: Jean Louis To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution Message-ID: Mail-Followup-To: Ihor Radchenko , Max Nikulin , emacs-orgmode@gnu.org References: <87fsf8my7h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87fsf8my7h.fsf@localhost> User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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=1666942904; 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: 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=WW5BOQIKqsXEZCoClogCKetsqtSO+aE+vibfnIl7fcU=; b=FVBzDSnTffayVkGEBsnbfr8qQKnUtm/hFtZet3xLhbkF6kRkV129m/u5X3Tw6uB8EQAJCF rTy7Kr9Eo4OPvQ1uYx/y20UB6EU336NoBIMtqy7HKi8Xlnp+5FB6zKIezJX2tlWoYw+0Vx Pkx/pZrH+4VyokQSSLj2WwnRofCkiXKgFIZuZNDo8kDwup4jLu/oDHlHWpxfhjtIM5Ap/9 r+L0IT2KZqytxIGTquPb6SxQ5p9B8+geemaAdosf4mkhjtJvntlgptNtqU91ndxAucxNTq pdiSyEpALbHrU2IASuw9Jwqd3SXMTMy+BWU3dspRpjvvI60QUdq0w3Rjc460SA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666942904; a=rsa-sha256; cv=none; b=iLqMu07XB4giijcJa/VAD6IXiWI1D5K+Vjp6Wyl34JqvilW4hQiAASscgTXJUnlUX6ronS q7KFwkDPFLXIRD9MrJLps9092NJRZjiTznPD07t/u5Vn4nSmIgy4l8Ik2sROAcKuVqkuy4 PtVshGjnnLtu1kwXte2VpMuTBpkJzrr/sRbwmCWsasyAQlYd8lGpgbabdbnDyjsmqv8IUb A4lkqdHPi7erHjFSDvbIq+d2LiZmxDaYJuZfws1Bn3FNmh1HPcUTUXaYIYYi63kIAuyM/M nPj7Gjkio3xzUEpxTjBku7yQr/jQZBU1v8uCUDyjuctLY4qt2eVJ5gd86WSLpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -2.71 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: C8D743CAB6 X-Spam-Score: -2.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: rlBhr0ThvJta * Ihor Radchenko [2022-10-28 06:19]: > Jean Louis writes: > > > * Max Nikulin [2022-10-27 06:21]: > >> Expected result: > >> No code from the Org buffer and linked files is executed prior to > >> confirmation from the user. > > > > Should that be or is it a general policy for Org mode? > > Yes, it is a general policy. > Org should not execute arbitrary Elisp without confirmation, unless the > user customizes the confirmation query to non-default. ✔️ That is nice to know. It opens doors for browsing Org files within Emacs. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/