From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#66390: `man' allows to inject arbitrary shell code Date: Mon, 09 Oct 2023 17:07:36 +0000 Message-ID: <87zg0rbu7b.fsf@localhost> References: <83wmvyzir2.fsf@gnu.org> <585dcaf0-358e-4a9d-84d1-6fd9c2c8aec5@gmail.com> <83v8bizf9r.fsf@gnu.org> <1865abb8-16cd-4570-9a8a-87cf9430583d@gmail.com> <875y3iigua.fsf@gmx.de> <83o7hazap7.fsf@gnu.org> <87mswugyoq.fsf@gmx.de> <83jzryz6op.fsf@gnu.org> <87a5sugwcx.fsf@gmx.de> <83h6n2z3tr.fsf@gnu.org> <831qe5znrz.fsf@gnu.org> <834jizwxm2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6595"; mail-complaints-to="usenet@ciao.gmane.io" Cc: lux , manikulin@gmail.com, 66390@debbugs.gnu.org, michael.albinus@gmx.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 09 19:07:20 2023 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 1qptiv-0001Eq-Bv for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Oct 2023 19:07:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qptig-0007ba-VP; Mon, 09 Oct 2023 13:07:03 -0400 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 1qptiN-0007Yn-KL for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 13:06:47 -0400 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 1qptiM-0008KE-Aq for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 13:06:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qptig-00054M-G7 for bug-gnu-emacs@gnu.org; Mon, 09 Oct 2023 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Oct 2023 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66390 X-GNU-PR-Package: emacs Original-Received: via spool by 66390-submit@debbugs.gnu.org id=B66390.169687119019438 (code B ref 66390); Mon, 09 Oct 2023 17:07:02 +0000 Original-Received: (at 66390) by debbugs.gnu.org; 9 Oct 2023 17:06:30 +0000 Original-Received: from localhost ([127.0.0.1]:33039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qptiA-00053R-3f for submit@debbugs.gnu.org; Mon, 09 Oct 2023 13:06:30 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:37075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpti6-00053B-Ux for 66390@debbugs.gnu.org; Mon, 09 Oct 2023 13:06:28 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 03EBE240105 for <66390@debbugs.gnu.org>; Mon, 9 Oct 2023 19:05:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696871160; bh=cwe/+Eo6r3KfUb9Iu2G1+UGtuy582w9w0GgqVonnhaY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=lDF93sJaU5AUF6N6zWYgjMLe1cRe+fqOaa3rqvxEahvVz/oFtFs2eQeCW3EgcQAnR 4GFzleARc76CBIUl5/IG8+01TLricCz3J7nvcPvoOnzOwJ17gugswjnr2E+fDDVbab CnTkAfD4OoSZtwx3znCrjltVFTOoiP9Apm/kJJXl2nBPjspblMyYNGpyTdfVvVi7l0 TfpaEx0fWRxU+ggUCNJ84VLHBnYvSYoABzhP7fTjMMnq7kX/VKqis8kWLJHb0iT+N5 GeSbW5MD/83cq2k+ZzvwfmM2llRPGLyr68wZVhP9eH9+pCLAhJidkd4l9gehRW8Rs4 COy5osTbdJV0w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S455g0FgFz9rxq; Mon, 9 Oct 2023 19:05:58 +0200 (CEST) In-Reply-To: <834jizwxm2.fsf@gnu.org> 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:272156 Archived-At: Eli Zaretskii writes: >> There is indeed an code injection vulnerability issue here, for example: >> >> (man ";ls") <-- The `ls' command will be executed. > > So does this: > > (shell-command "ls") > > Does it mean we will disallow shell-command? or forcibly quote every > shell command? We cannot do that. You seem to have an idea what MAN-ARGS argument in `man' does. But it is not described in the docstring. I think it would help if docstring were more clear about the command argument. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at