From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp10.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 0LNeMU25smNKSgEAbAwnHQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 02 Jan 2023 12:00:29 +0100
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp10.migadu.com with LMTPS
	id kFyXME25smM1bAAAG6o9tA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 02 Jan 2023 12:00:29 +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 4A36C1BFA3
	for <larch@yhetil.org>; Mon,  2 Jan 2023 12:00:29 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1pCIXc-0001Qy-V3; Mon, 02 Jan 2023 05:59:40 -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 <minshall@umich.edu>)
 id 1pCIXX-0001Qn-Pp
 for emacs-orgmode@gnu.org; Mon, 02 Jan 2023 05:59:35 -0500
Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]
 helo=manifest-afallach.relay-egress.a.mail.umich.edu)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <minshall@umich.edu>)
 id 1pCIXV-0003YC-JF; Mon, 02 Jan 2023 05:59:34 -0500
Received: from included-kishi.authn-relay.a.mail.umich.edu
 (ip-10-0-73-52.us-east-2.compute.internal [10.0.73.52])
 by manifest-afallach.relay-egress.a.mail.umich.edu with ESMTPS
 id 63B2B90A.1F142EFF.1E01B861.94655; Mon, 02 Jan 2023 05:59:22 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu;
 s=relay-2018-08-29; t=1672657162;
 bh=adBNIq9GndQ+R/QandXzVK6Yi+jKC8Nyfa5rpmbx5mw=;
 h=To:cc:From:Subject:In-reply-to:References:Date;
 b=PndQCxEIebu9Z3U5KCzUo7lEnWjhQMN89xKlTjDslVHrTFhhqKHMfANg6G4pcxr/b
 xI/mn8TI1WOv5JldL0xEEVw0wrS32Bo4SnUWuTkUdNJb9FRh1K37LoQCBY5vqXYNx+
 /hcLZQCmK/vcSq+wh2E9LUvGha4gjKnL5TuOdwhXqEJys4Vrgo2oBBh2OJJ9hE6Uv0
 meahGPQ7cGERoBte+Wnp+B3yZ8QkLrVf79ANVlhyYvpgwTnRuOz8wcDDe3zu4cr9+H
 c/2wNdaZ5EAWVx2xI/5GWfrd65iOb82jNRpENo/PkLDykhk6ClZZSJG9/kMuJJCgt0
 DsIGgxtUXtyLA==
Received: from localhost (Mismatch [85.103.28.184])
 by included-kishi.authn-relay.a.mail.umich.edu with ESMTPSA
 id 63B2B908.1834CF1C.4AAD0D75.197909; Mon, 02 Jan 2023 05:59:21 -0500
To: Ihor Radchenko <yantar92@posteo.net>
cc: Tom Gillespie <tgbugs@gmail.com>, Bastien <bzg@gnu.org>,
 Kyle Meyer <kyle@kyleam.com>, emacs-orgmode@gnu.org
From: Greg Minshall <minshall@umich.edu>
Subject: Re: [SECURITY] Arbitrary code evaluation security in Org
In-reply-to: <87edsd5o89.fsf@localhost>
References: <CA+G3_PNmnJ-ehnYOBkaOOsyNjeb-OJyoy+sg_g5v3AZVGiNoXg@mail.gmail.com>
 <tn3h08$1099$1@ciao.gmane.io>
 <CA+G3_PNHe3J+PHzv_L+X1DR66TGc3sW5FxiJC5HqDd57N75P0w@mail.gmail.com>
 <87359ld5ye.fsf@kyleam.com>
 <CA+G3_PPEbiBFvADivF++x_c6s8hKtyTcy3nmBtTMd_OhBDDPyw@mail.gmail.com>
 <874ju0j538.fsf@localhost>
 <CA+G3_PMwyRrjwJp_AGxnV8P7LbqiPkGfLiQY4rziUo-xcjAUaA@mail.gmail.com>
 <87k02fspxa.fsf@localhost> <87edsii4mo.fsf@gnu.org>
 <87h6xetbfn.fsf@localhost> <878rips273.fsf@bzg.fr>
 <CA+G3_PPvTv0u9_zyWRbN+jcqqnthb3KkG5uTDa9HFqBJPgGBag@mail.gmail.com>
 <878rinadlq.fsf@localhost> <87edsd5o89.fsf@localhost>
Comments: In-reply-to Ihor Radchenko <yantar92@posteo.net>
 message dated "Mon, 02 Jan 2023 08:34:30 +0000."
X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1.91
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <753835.1672657156.1@archlinux>
Date: Mon, 02 Jan 2023 13:59:16 +0300
Message-ID: <753836.1672657156@archlinux>
Received-SPF: pass client-ip=18.216.144.57; envelope-from=minshall@umich.edu;
 helo=manifest-afallach.relay-egress.a.mail.umich.edu
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,
 RCVD_IN_DNSWL_NONE=-0.0001, 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1672657229;
	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=adBNIq9GndQ+R/QandXzVK6Yi+jKC8Nyfa5rpmbx5mw=;
	b=JBCHQ1e2DiGQ76HtkVM6R8T33E6hVZ3jZrrltafX7VchyBenOmJkXNsMoZUM8lusCgMqQQ
	YXUyrFvF1/50u4hDJJFBy9UCTuzOcteOrXmHcYjIc481AWB+qdYNjinOilLDpUf0hHU5Gb
	iIJPhamJAQVlh7vlsajpAN2d+m9bgqw9focirLEJeIg0KdHogN8GwE0WuXqPZr9mOdm0GI
	mXIbcr8OuEPJqHIwDjMCUcv1vBf0zgBl8ZCyUKA6UcwPu9aVxO0Go/ODNmH18M9Wh9ooTA
	eaocrvYuMEX1Vf+XN5zVRQSXssQ36AV6NJKAKhrc0Vbd+us7MileT8yBn+bdtw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=PndQCxEI;
	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=umich.edu
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672657229; a=rsa-sha256; cv=none;
	b=hLNaUl4st3QC1TyymHRk5Nab0okGgTN8WR2PzGwuP3txXaJA7qu2Ub5sXhAyybLw3x5bXS
	Jc4KLmPduouqqqOvC4lZivGRp9MExK2DcFnveiyjOLuzijr0zK81zsgi4B+31KKw+E8aAS
	HFmjmPGwUt80QEdVWxTQjMemMMJYkjUNIA7KII75tz5sXillPFr7dlaEC1llRudBfht5tM
	whnaIMeVYCt2IFKTzzFGeKXJDt2Yeg9uN9hGEjrdPo2sN2JH7tzJClOt56quxpi5FhqA/D
	hrlTGs1LSGn+VDeEQJQUE5djOnZpUpVov/pKxsKmOw6XuYRznnRcXquKdfks8g==
X-Spam-Score: -6.67
X-Migadu-Queue-Id: 4A36C1BFA3
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=PndQCxEI;
	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=umich.edu
X-Migadu-Scanner: scn1.migadu.com
X-Migadu-Spam-Score: -6.67
X-TUID: M3Dc2cdmRSfh

Ihor,

thanks for this.

one additional item (i don't *think* we discussed this before; apologies
if i'm forgetting): tangling.  if one is prompted to "merely" tangle ...
----
#+begin_src sh :tangle /var/tmp/foo.org.tangled
  echo 'hi!'
#+end_src
----

one could imagine more sinister scenarios for destination, content.

i don't really know what, how much, to do.  possibly just an option,
defaulting to =nil=, allowing tangle to write a file outside the subtree
that holds the .org file being tangled.

cheers, Greg