From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yPNdO5ZQ32QvWwEASxT56A (envelope-from ) for ; Fri, 18 Aug 2023 13:05:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +MFkO5ZQ32TO8AAA9RJhRA (envelope-from ) for ; Fri, 18 Aug 2023 13:05:58 +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 36ED452451 for ; Fri, 18 Aug 2023 13:05:58 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="mc5/Xcdd"; 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=1692356758; 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=48Ixn1KTV+Y14G0MlE+KzQlP0GwOVwFy1tc3+I/+rAE=; b=mj6Uaw81sQkB//ihxTF/bJNZdsYvS5rYJqW73IR/3qGpfz6B4mTO6VW909eLVlCx3KiGD9 I9/1P8lUvJiEq6PUNtoDjKh4/V7esMgjly5ictK7030aAU1zDct4WZfKXkI2hTu0L0EdTa yKTjvXqKN4Q1kgmzwUZAYVagfXTNXh1HlZasxe+kVVAqzW8hYrUpNthT9Y1jvYLqfd+i9o +3XH6Eb3PWZT0rYHxEEGty/uQaRyj15DrSq3/GlAEl7zGo8+C9WiNkyqBt9MExoJV9r9cn DkP9mPRr+bH2UjzE6GI5ddUp5fMxyXGS9NIzZhBQSpHAtz0Fu6SkE6VbYUNkwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692356758; a=rsa-sha256; cv=none; b=k4gzTJYZekwwznjy+zG8Kgr0mai3ynzD58OIgVDspSi+abH/yhlAN+MqSEZxbhpbrkyBXK QbOP6MU/bElaiPfZZx4sirFMX2N5uo4eoTaRzmuFrCXnXvJ4k1OphpA5oge9g9epFmzTQv 5qizN/t/Pn+TN5FJ6pEmbkqYZ1gEt/3FlyQ5YFMPhVbEJjoi7m0h5/kYfwOk7TCeADKimi TFF0ivA5j1aL2Xp1nQ7zV9Tifunpd7nD8UY1V+E5261Ma6BfnOrQDT1o8Osdn2UiXH5DmW lbivULQGy/f6010RwxqGSXhatu5SJULBbiIQo7bxDE/lBSUCquwLhU/qfwilIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="mc5/Xcdd"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWxI3-00068N-2c; Fri, 18 Aug 2023 07:05:15 -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 1qWxHb-0005tG-GI for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 07:04:50 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWxHY-0003yt-Dz for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 07:04:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8B50C240101 for ; Fri, 18 Aug 2023 13:04:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692356681; bh=f27ToEhiKZjwdxrHI4fGoxUehb2m9Jq+iFZ9HGWf/xI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=mc5/XcddU8qLBflMY0B0Dwq+lbA+Njb+ACuZViR10Oi4CxAKC73LaaNwP9UTNEaCd o80Yj1C/jgJ8XdeZYRCmAIWcuQOWaj0YDnXPB89J6bPT2sGcV/RVGD2u0W2gNKGE5r SZGyl8R9Jrb7hKrvcvBncPYSkSuKP3SBWg3LwonVxtL8+gUGJEFmRb8GKNUQM9NAbG o4AiuINBvck49CYr7XfXOYRmdZST9rQgzJKlRkNrB13ZPYnnbJBBQPbEXNV/LVKsoj /PStBYY9rIRqQTjHngLs1+cidsyt8ABaz6vr9YoEUrpGG/rL+74vD26IybG7YbnBpo dTXnBq1u7iDIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RRzXm6XnGz9rxM; Fri, 18 Aug 2023 13:04:40 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [BUG][SECURITY] ob-sqlite header args allows execution of arbitrary shell commands In-Reply-To: References: <87zg2vl6qc.fsf@localhost> <87cyzkpwp4.fsf@localhost> Date: Fri, 18 Aug 2023 11:05:10 +0000 Message-ID: <87o7j43921.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.46 X-Spam-Score: -6.46 X-Migadu-Queue-Id: 36ED452451 X-Migadu-Scanner: mx1.migadu.com X-TUID: CYK30MC/0WRR Max Nikulin writes: > Ihor, this is a list, not an expression to be evaluated. There are some > conditions to avoid user prompts for strings, lists, etc. They are > considered safe. > > This particular case is handled namely by ob-sqlite and the proposed > function in org-macs. Do you have any ideas how to work around the deliberately constructed header argument values like in your example? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at