From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#66390: `man' allows to inject arbitrary shell code Date: Tue, 10 Oct 2023 18:21:34 +0200 Message-ID: <87il7e78j5.fsf@igel.home> 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> <262ed9fe-b92b-489d-b1f0-5202bfdb088b@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26080"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Max Nikulin , 66390@debbugs.gnu.org, michael.albinus@gmx.de, Eli Zaretskii To: lux Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 10 18:23:05 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 1qqFVg-0006Uw-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Oct 2023 18:23:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqFVK-0006wy-W0; Tue, 10 Oct 2023 12:22:43 -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 1qqFVJ-0006wT-1b for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 12:22:41 -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 1qqFVI-00074N-PT for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 12:22:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqFVd-0007fE-Pe for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 12:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Oct 2023 16:23:01 +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.169695492229379 (code B ref 66390); Tue, 10 Oct 2023 16:23:01 +0000 Original-Received: (at 66390) by debbugs.gnu.org; 10 Oct 2023 16:22:02 +0000 Original-Received: from localhost ([127.0.0.1]:36802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqFUg-0007dn-3H for submit@debbugs.gnu.org; Tue, 10 Oct 2023 12:22:02 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:44139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqFUd-0007dL-Uu for 66390@debbugs.gnu.org; Tue, 10 Oct 2023 12:22:01 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4S4h3z4vRRz1r3FC; Tue, 10 Oct 2023 18:21:35 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4S4h3z2XQcz1qqlW; Tue, 10 Oct 2023 18:21:35 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id yXJ0GzLZtvBd; Tue, 10 Oct 2023 18:21:34 +0200 (CEST) X-Auth-Info: E7BQoBmjgSDdzp18KP3zAVKH306EZWhz7ayK8MElbY9atyLx3dsWCg/AFCynCJaR Original-Received: from igel.home (aftr-62-216-205-95.dynamic.mnet-online.de [62.216.205.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 10 Oct 2023 18:21:34 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 202BC2C151C; Tue, 10 Oct 2023 18:21:34 +0200 (CEST) In-Reply-To: (lux's message of "Tue, 10 Oct 2023 22:30:03 +0800") X-Yow: I'm QUIETLY reading the latest issue of ``BOWLING WORLD'' while my wife and two children stand QUIETLY BY.. 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:272224 Archived-At: On Okt 10 2023, lux wrote: > + ;; see Bug#66390 > + (mapconcat 'identity > + (mapcar #'shell-quote-argument > + (split-string ref " ")) You need to split on arbitrary sequences of whitespace to not introduce spurious empty arguments. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."