[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable
From: |
Max Nikulin |
Subject: |
Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable |
Date: |
Thu, 15 Dec 2022 19:10:33 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 15/12/2022 16:10, Ihor Radchenko wrote:
Max Nikulin writes:
I am still in doubts if
10e857d42 2022-10-28 11:09:50 +0800 Ihor Radchenko: org-babel-read: Obey
`org-confirm-babel-evaluate'
was an unambiguous improvement. Perhaps it just forces more users to set
`org-confirm-babel-evaluate' to nil compromising their security to more
severe degree.
Should we then extend `org-babel-check-evaluate' to accept "All" answer
in the coming bugfix release?
I would consider reverting the commit causing user prompt for every
variable. I believe, there should be single prompt on attempt to execute
a source block. I admit it is not easy to implement.
Main purpose of the new patch is to allow old behavior. Unfortunately it
adds more complexity to logic around user prompts and classifying some
expressions as safe.
I am not comfortable with attempts to consider Org as a format for web
browser similar to HTML: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58774
Features great for personal notebooks and authoring of documents are
disaster for documents from non-trusted sources.
In particular, I consider the following reaction as unreasonably
optimistic. I am afraid, a lot of work is required to achieve such goal.
https://list.orgmode.org/Y1uFDWOjZb85lk+3@protected.localdomain
Re: [BUG][Security] begin_src :var evaluated before the prompt to
confirm execution
On 28/10/2022 14:30, Jean Louis wrote:
* Ihor Radchenko [2022-10-28 06:19]:
Jean Louis writes:
* Max Nikulin [2022-10-27 06:21]:
Expected result:
No code from the Org buffer and linked files is executed prior to
confirmation from the user.
Should that be or is it a general policy for Org mode?
Yes, it is a general policy.
Org should not execute arbitrary Elisp without confirmation, unless the
user customizes the confirmation query to non-default.
That is nice to know. It opens doors for browsing Org files within Emacs.
On 15/12/2022 16:10, Ihor Radchenko wrote:
In future release, we may go for more powerful prompt as discussed in
https://orgmode.org/list/8735cyxonl.fsf@localhost
Single prompt for whole bunch of code related to particular block was
not discussed in that thread, that time the issue was not as sever as
now. By the way, is it reliable to use (buffer-file-name
(buffer-base-buffer)) in `org-confirm-babel-evaluate' to determine if
some file resides in a "safe" directory? It may be discussed in that thread.
I believe that :var code is equally dangerous to the source block body.
However while nobody pushes Org as a web browser format, it is better to
implement a transparent and consistent approach to prevention of
non-trusted code execution.
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, (continued)
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/12
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/13
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Max Nikulin, 2022/12/13
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/13
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Max Nikulin, 2022/12/14
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/14
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, tomas, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable,
Max Nikulin <=
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Max Nikulin, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tim Cross, 2022/12/15
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/16
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tim Cross, 2022/12/16
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/18
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tim Cross, 2022/12/18
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/19
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Tom Gillespie, 2022/12/19
- Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable, Ihor Radchenko, 2022/12/25