From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uFFXNTZZB2Q70gAASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 16:33:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GOeANDZZB2TFPAAAG6o9tA (envelope-from ) for ; Tue, 07 Mar 2023 16:33:10 +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 97C9F39AAB for ; Tue, 7 Mar 2023 16:33:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BDE5r5XF; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678203190; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=v6nrCYu9BQ8oMBQvb+6Vfn/Wbza1gQZJ7oOGt7j9wPY=; b=iFsQVi8q79ReSRU7pzh2GMOsUiJAEmePHsLn3yqWHhSdR2BPScvMHYwGMUiL+qSUbGfL4O uPpLmc6I6EGbYU4kWiAo1U7c5ZqhnYeykylGprOhnHja/tWj0MPJfosUwNtep5Q4RgVAlI Tf1pqZDgsKUaohpDP1/+7OOfdIrrxkmBJE7b1/VpIinCkMmMwJp/QeomCymOs3BC7x6yZB e7/jk3reSv41xnZ2IKoEojZo34qjv+tZnGVMk0ASWok2wXnqS0E6BeP/vcZ/bK+oS39+z/ wZ7jlqmN8OKxHO8OXWgaGkIYKw86asG3XEKjxaAyUyYQY54BC1ZtNfERk7c7fQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678203190; a=rsa-sha256; cv=none; b=JHtpvYNLk6Mc3i5FxUxzJ2N4Oo73CXSxuW6IGPn3L48zLXbBRTYvzes1nrzU+sZGqKthdv tlN4ZMuioEW+jHIVykp6GeFkAswwAx7nXxEiraWYyQ4IlGfnvhODsAhVOzLig5jm9qIUiv 6MqPz8Y1ukfkT9LkB9EcHHU3yEBTo2pGiN0yQdo1dA1TwwHHYPFTQeeS1pXafXZoq+iQR4 99etNIxowRKEietybzr2YX+A9/rJpDWY1tB6w89joVaTxRlJmmx6Bmofht3y56vUDkf2Gr Sl9A2GK/PsMrTsCSi+iPZt+n73/y2G879gFtA3MrgJl1efHiv7L4XlErVxpNVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=BDE5r5XF; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZZIU-0004v7-55; Tue, 07 Mar 2023 10:32:14 -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 ) id 1pZZIS-0004u8-0V for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 10:32:12 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZZIQ-0004Fd-9U for emacs-orgmode@gnu.org; Tue, 07 Mar 2023 10:32:11 -0500 Received: by mail-lf1-x12d.google.com with SMTP id g17so17590056lfv.4 for ; Tue, 07 Mar 2023 07:31:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678203116; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=v6nrCYu9BQ8oMBQvb+6Vfn/Wbza1gQZJ7oOGt7j9wPY=; b=BDE5r5XFAMw6Z46MfY27zozC9YAxeMTt8YSEzhlpgMfSJ4gTRoRlDHv9QmrRDc19EW pEqs2o5FswBvsQSBbsu9bGQfJCWzFmawJ9vAn+lA91Gx0YTmageIw0eVjN+ESSCZEbtt 16iMjC+JPTZimHORO3ZZcd5E+zLAqQhCpMBiCTqTVh1zOtgrkNi0c3HIWOAML7MkdrsN XiMZ8PTzbs6R2gli+azH7DQDvL9ynHleioSE40B7+VOQmFZ8zEOj3DSLsbtACQofPBJY LWN+iUuIaNK+20V8YUPURT/7kVmVHyl4Ga5JDclRKiVeLaaTBiUM+6kwrPCSIwC6jcvj 5j5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678203116; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v6nrCYu9BQ8oMBQvb+6Vfn/Wbza1gQZJ7oOGt7j9wPY=; b=itW+/5RrEXK0t1VElr/ynVCQ/ji39IPgpMZH/MBNrj6yrOZ0Fmj+qGGN9+qRL4Znhu fp/EQXYvEQh2eBo12TA1kttt4k0sxTNbVl+Go8+fwelUWHCrBd6wCu/ZQMjxE/jBl5Lp Tb1FfMgqaAv4cPuRtxK80DHnCepPxnI6Bk7jX4NAqweONg1qzZ/m4Uo9gCfQH/CxJsF+ 0i1uCxo7Vhd26RZUIdxUAUNecLNn2MkFBa9q2roXxX3+/wHbdtVRtJwZfLW5D6QGnuYS RXH7FUfGNY6Gx9kXiozXV7nCZwSCNHe1KRCXMzKFHtc7Oihxi+bj2mVsWyBKZIBJSC3a DMmQ== X-Gm-Message-State: AO0yUKUtNTog6e8xporPfCCReYyqF8bU31PNH6/ehZrl7byePkDM7Rag 8ZJLa70dUVH1mu2PvHgJtO1FRoDaNVw= X-Google-Smtp-Source: AK7set8cOFQ1eXU5LO5gYTg5XSEzylTBouyXcqdc/4ahJaIwBOBL4QcPV8P7oVm6UtXAmX8/3MYcJg== X-Received: by 2002:ac2:48af:0:b0:4d5:8306:4e9a with SMTP id u15-20020ac248af000000b004d583064e9amr4034917lfg.46.1678203115891; Tue, 07 Mar 2023 07:31:55 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id u23-20020ac24c37000000b004aac23e0dd6sm2060485lfq.29.2023.03.07.07.31.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 07:31:55 -0800 (PST) Message-ID: <047b7367-c98f-e531-b3e9-bc50b6b098e5@gmail.com> Date: Tue, 7 Mar 2023 22:31:53 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] Fix ob-latex.el command injection vulnerability. Content-Language: en-US References: <87v8jzjj1p.fsf@localhost> From: Max Nikulin To: emacs-orgmode@gnu.org Cc: lux Mail-Followup-To: emacs-orgmode@gnu.org, lux In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12d.google.com 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, 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." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 97C9F39AAB X-Spam-Score: 7.19 X-Migadu-Spam-Score: 7.19 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-TUID: 9IZw6o5xmbgY On 06/03/2023 10:17, lux wrote: > On Sat, 2023-02-18 at 11:43 +0000, Ihor Radchenko wrote: >> >> I think should be (rename-file img-out out-file t) > > Fixed, thank you. There are a couple more mv shell commands in ob-latex.el. It would be nice to fix them as well. Sorry, I have not checked it earlier. Are you still interested in this topic? I hope, you already have examples that can be used to quickly test if modified code works as expected.