From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Emacs Arbitrary Code Execution and How to Avoid It Date: Wed, 11 Dec 2024 11:42:23 +0100 Message-ID: References: <878qswfya2.fsf@librehacker.com> <87v7vzh4l1.fsf@stebalien.com> <2jmedxxrwwdei2wsd4dd4uti4ly3v7pcnaltv4qjoycb6itrux@odeiovnegihd> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0M0HCdFdwfaNbdkj" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4961"; mail-complaints-to="usenet@ciao.gmane.io" To: Daniel Radetsky , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 11 11:42:45 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tLKB2-0001B1-Lw for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Dec 2024 11:42:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLKAu-0003Kj-DR; Wed, 11 Dec 2024 05:42:36 -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 1tLKAs-0003KK-LA for emacs-devel@gnu.org; Wed, 11 Dec 2024 05:42:34 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLKAq-0002dF-S9 for emacs-devel@gnu.org; Wed, 11 Dec 2024 05:42:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1v0Rgw9zC7O5SmetM5EmzwFIAUoK1XCZUV1YpZkEk+Y=; b=QERQnUUCZjMGonrBvCN6teCG6c wENvhJAzp/c12j8/og+ngjj8awyVTa1QDqMNtCUYwI3kmDJzjburBxk30XehL0rrSlD81gho4olOj ZVKE0a7T8F8mYppzHATtnLKTzKX+JHooEQfQpzRiFaeUcgBRlsWRtD1A0wNttqEcCW2WAEtpTbkJc cVL+nlL0U0tAJ72U+bB/lg2mXCfz10FpfXkJtPNQW8wa7K+NTL2CZnfi9OxqqiP6++6kPu72fPtik z6LH57Yk/TSxp0MykNqlRJOTF8i2VQPWoadHcDEapjIvahDrZdZy/jMWnf6rqdJDrAHsRlvQgK6qO WP28negg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1tLKAh-0001KP-El; Wed, 11 Dec 2024 11:42:23 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326341 Archived-At: --0M0HCdFdwfaNbdkj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2024 at 01:38:44PM +0300, Jean Louis wrote: > * Daniel Radetsky [2024-12-11 12:37]: > > On Wed, Dec 11, 2024 at 12:25:24PM +0300, Jean Louis wrote: > > > Send me the working example of dangerous macro, that I can see how it > > > works, thank you. Make > >=20 > > (rx (eval (call-process "touch" nil nil nil "/tmp/owned"))) >=20 > I see it executes and makes the file by opening ex.el with the > above. It doesn't work with .txt file though. Believing in "file extensions" is yet another recipe for disaster (remember those ".jpg.exe"? Cheers --=20 t --0M0HCdFdwfaNbdkj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZ1lsiAAKCRAFyCz1etHa RuOFAJ9ulinjadevv4jx06IrhjrEUXznnwCdEP101nb248rV3deQs6hUohMVlp4= =jLsB -----END PGP SIGNATURE----- --0M0HCdFdwfaNbdkj--