From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 kA2pCc5vuWPHPgAAbAwnHQ (envelope-from ) for ; Sat, 07 Jan 2023 14:12:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oLC+Cc5vuWPQewAA9RJhRA (envelope-from ) for ; Sat, 07 Jan 2023 14:12:46 +0100 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 4317DB5E6 for ; Sat, 7 Jan 2023 14:12:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pE8zT-0002fW-Db; Sat, 07 Jan 2023 08:12:03 -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 1pE8zR-0002f6-J9 for emacs-orgmode@gnu.org; Sat, 07 Jan 2023 08:12:01 -0500 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 1pE8zP-0000Lq-II for emacs-orgmode@gnu.org; Sat, 07 Jan 2023 08:12:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 42DDC2401B9 for ; Sat, 7 Jan 2023 14:11:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673097117; bh=P2AblYlvD3ENxc4CWbrhiM2/QmH/Oh7EZZMxmD5+ijc=; h=From:To:Cc:Subject:Date:From; b=RZKk//CHWbxM58ircaytZqAuBiXkvI7G0MX7u008qQFNZTIW5S8EpNPrNl1v3iPyn PXdpTamFUbCLKnlN3dIOq+tdDesyhev6lSXq/R9cccCxbna5H/YmdyBxwUHC9yjzXR F041zYrVZAgI2EqtBxPGX5BTUGrFbsrsSA1nULj8srjzZQEb0kZ+z0ldp5Dj5/s9iL iba8Y6hma5BzhWCOXFTWFcktYrZ6HsFYzJAdQTs6hOL5Svz9o63YeZX3f/V6ToDwpr OhY+tNVMqC2PlCB3xgGKv0eCdWP7BzZhC9LGxpYZs4/s7dlAyaA2wKYC8wm4I/f7Im klokdnnsEBc5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nq0wX2cQgz6tmQ; Sat, 7 Jan 2023 14:11:56 +0100 (CET) From: Ihor Radchenko To: Tim Cross Cc: emacs-orgmode@gnu.org Subject: Re: [SECURITY] Arbitrary code evaluation security in Org (was: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable) In-Reply-To: <87358rkhmu.fsf@localhost> References: <87359ld5ye.fsf@kyleam.com> <874ju0j538.fsf@localhost> <87k02fspxa.fsf@localhost> <87edsii4mo.fsf@gnu.org> <87h6xetbfn.fsf@localhost> <878rips273.fsf@bzg.fr> <878rinadlq.fsf@localhost> <87edsd5o89.fsf@localhost> <86tu18d811.fsf@gmail.com> <87358rkhmu.fsf@localhost> Date: Sat, 07 Jan 2023 13:12:29 +0000 Message-ID: <87ilhilc8y.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: -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, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673097165; a=rsa-sha256; cv=none; b=KDQkF6bg5NbdBKo8G+IVHFnOD21+CBWnm1059ORAH4WltlQ5+na/ZB6gEHn5tFt7gpGF99 xtqLsQUDE+zzcSsyEWKAMnEanodVnslv0OjnoOPjFreZ3MvCr00Sc5M+lmY03U13zGltdh HDSNSNsnJX6t7xlpc8STQR8jLQ93sbZv82nj0mWrFbsDvK733XLYSuvDw3vl6RI87yl7Yo FCC5RIy60C09o1HYmLOXAon+99luX4FYU8FKCknmOmhNM8RSOEDKAlf1iZhL3FdsxC9ZQN MFuTfIQPdGriDy3d2mxu+cXByKPvtE38KGxdSWM3oUaPKiRzLt2drynoP9ZkJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RZKk//CH"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673097165; 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=4TidNZ2Tf3J6VhazwzK970biIY+ppxu3ev74CI9/6Fw=; b=plCLp4EpGonegfgVWXEEFnDsuuasxr1Pb0niVusO0FQXqS+r6sF4pHEDY+fzLqXn5Osc93 lHQFvmD/r88yz/Zh6/IGpBVqMyAqTt+lucoIuu/tR7j5tTvmxfg1c0MigTXt4idUGPo/g6 Lx4HYrlfMFxdTI/Rg0QEucg38Sq3U20Z7sv8X6qvl0b68EjRsX68GysTq2Zox82i88hnff Wl2BEMKdUPQWbBOMMVK71E2qB6f5AU5kMWLBALzOhcU8/3RimzEbNLxfQGDPIP5HwS4fku VLnSI/ZAV84zVWNQPl3ruQ4nD1blWmj7cW+BEbPkYpI+94uPwHgYbM9NUp+uag== X-Spam-Score: -8.00 X-Migadu-Queue-Id: 4317DB5E6 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="RZKk//CH"; 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"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.00 X-TUID: SIj0BQwJ3IY8 Ihor Radchenko writes: >> I do wonder if the idea of a document classification model and some form >> of heuristic algorithms to handle default document classification might >> be useful. > > I do not think that we need to go in this direction. > I doubt that we are qualified to get the heuristics right. > Such things should either be maintained in Emacs core or not provided at > all to not create false sense of security. And I was wrong. There is `unsafep' and `safe-functions' customization, which we can utilize. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at