From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#68687: Org mode code evaluation (was: bug#68687: [PATCH] Use text/org media type) Date: Tue, 30 Jan 2024 09:12:49 -0800 Message-ID: <28314.1706634769@alto> References: <6d94fff4-4d30-4121-bfd1-f267cb5b637c@gmail.com> <8734uqpvgn.fsf@tec.tecosaur.net> <49fa47c0-522a-46d7-ba0d-6e688aa26a8e@gmail.com> <74b83cf9-cd7e-429a-bd9d-0af964e1ddc5@gmail.com> <8634uh5rrq.fsf@gnu.org> <87mssn81dw.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7046"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, 68687@debbugs.gnu.org, emacs-orgmode@gnu.org, stefankangas@gmail.com, Eli Zaretskii , manikulin@gmail.com To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 30 18:14:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rUrgo-0001eW-Cw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Jan 2024 18:14:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUrgL-0006ER-LH; Tue, 30 Jan 2024 12:13:57 -0500 Original-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 1rUrgH-0006CA-S5 for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 12:13:53 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUrgH-000485-Jw for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 12:13:53 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUrgQ-00055z-6g for bug-gnu-emacs@gnu.org; Tue, 30 Jan 2024 12:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jan 2024 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68687-submit@debbugs.gnu.org id=B68687.170663480019528 (code B ref 68687); Tue, 30 Jan 2024 17:14:02 +0000 Original-Received: (at 68687) by debbugs.gnu.org; 30 Jan 2024 17:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:36611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUrfk-00054u-Id for submit@debbugs.gnu.org; Tue, 30 Jan 2024 12:13:20 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:13033 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUrfj-00054m-CF for 68687@debbugs.gnu.org; Tue, 30 Jan 2024 12:13:19 -0500 Original-Received: from alto (135-180-173-181.dsl.dynamic.sonic.net [135.180.173.181] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 40UHCnM3003342 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Jan 2024 09:12:55 -0800 (PST) (envelope-from kupfer@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-173-181.dsl.dynamic.sonic.net [135.180.173.181] (may be forged) claimed to be alto In-reply-to: <87mssn81dw.fsf@localhost> Comments: In-reply-to Ihor Radchenko message dated "Tue, 30 Jan 2024 12:13:47 +0000." X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.1.90 Content-ID: <28313.1706634769.1@alto> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279191 gmane.emacs.orgmode:159464 Archived-At: Ihor Radchenko wrote: > Max is referring to various security issues with evaluating code inside > Org mode buffers. They are known, but not relevant to Org text being > displayed in email MUA - Org never evaluates any code automatically > without user explicitly asking for it. And in MUA, Org mode is simply > used to apply faces. No other interaction with the displayed text/org > mime part is allowed. I can believe that Org text snippets are safe in an email MUA. But in the general case, I don't think Org mode is quite as safe as you implied. The last I heard, conversion from Org mode to another format (e.g., plain text or HTML) can result in code evaluation, without the user authorizing it (see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=48676). I would not expect random users to understand that format conversion is a potentially risky operation. mike