From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4A1fOoJKW2O5jQAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 05:20:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EN47OoJKW2Nx9QAAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 05:20:34 +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 9C1862D3EE for ; Fri, 28 Oct 2022 05:20:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooFtl-0001Bg-2D; Thu, 27 Oct 2022 23:19:09 -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 1ooFtj-0001BX-LK for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 23:19:07 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooFti-0005Dl-3W for emacs-orgmode@gnu.org; Thu, 27 Oct 2022 23:19:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A9D8F240026 for ; Fri, 28 Oct 2022 05:19:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666927144; bh=iAiLjSLrXwhR99SzFa5FcwFANjpYphPhXFgCCWm9EYQ=; h=From:To:Cc:Subject:Date:From; b=eKhyACOvyr0iGSczINZMbQmLblhtvrjV1qjvbJJMjLA0wp8uZjI1fzdoI28V5BhaJ tSdcVXQzdmqePHQhroDBTCjg+WF6ULnh4zgNAWoZbNW8kgqDgZYhtRLZl6KpSOelUH Uaf11g1PNUpNoXA34NqQCA1jjOI33PmDozeyaN6OTwiVMj/aUJo+bSSpNZZmj843I2 RfrqsKe12m1sJZj61gMIIbwOaKP/SZUcDc/H0LiY7POfpI1PsgWuHJ/Tl7EkoAV8Qx CFWR/2mR2eYtA2EhifXzEmNAjU/ES5ITs42Qvm9eiZmOzErOKkm10GH4fWEQQZlHL8 iQ3aRsC4oXOeg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mz77C22Wmz9rxF; Fri, 28 Oct 2022 05:19:02 +0200 (CEST) From: Ihor Radchenko To: Jean Louis Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [BUG][Security] begin_src :var evaluated before the prompt to confirm execution In-Reply-To: References: Date: Fri, 28 Oct 2022 03:19:46 +0000 Message-ID: <87fsf8my7h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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=1666927234; 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=jp1+2jIlG9iB9FWsIgtXqCW7j6XH7JrNigzPCDGCFRs=; b=HOLyhYV3EXAG+sbyiGaEINNPowDeFz5zPs8yOda4MHMmDgWKr3zr/CxLPsGuQvkc5Gg+xT CD4Tiyta3uZaHrd7pOIW/EJv7p4MgD9yGOiguHp7rx+7sEVjXR9tVEkzT+DjyGHqOlevBq E2uFeOBj2w0NWFhmvQWZ7xg4ttmX+xx+fv4jSlFEZmMIF06eFDU4LFr2J65fTbxSysuoFR aeqTM9KqeCSXYNvrKevbbjkqDeCHyD9ORbESqfoXxNjXYuthAMRf5fC6FKUDGrsmwcK6x9 A0oo1c5QVOv8JMia7i5c6MJWJYMoku4tTP4Rn9Xau4BMXFiMDupyQZWMi/daOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666927234; a=rsa-sha256; cv=none; b=D1EYpMJvVf96egQC7PRf9B2bLANmSb8hzdAbTugh5rZcx4UauCdMkvqyNMzy9aYtCpWaC+ TecNklmiMINW/nMjEvzbnnjgK/I3xbKqYV3p+uRAKKhLMVeEpaL6H0AauBDSD7e21UIvLG gRTqoaTBJkUQlsZNnfv1CfLIXDgmux58G6NOaHyR75elugC/V+/qNSMACJeQD1mNkUr4LJ KNeO7K6JXmogHOohCBsFETQjGqcjG7tw7HgvsKNhQ8Ofw7hoX5BhpnF874rx1V+xETqwy2 qEKqS/rY4BxObeX6qmhSVanG36IfLAdfMh4Wk+91RwMrsqdxhPNSYWi0vsF3Kg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eKhyACOv; 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" X-Migadu-Spam-Score: -5.41 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=eKhyACOv; 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" X-Migadu-Queue-Id: 9C1862D3EE X-Spam-Score: -5.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: NR0j6yo0x2Dl 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. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at