From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: eval and security
Date: Tue, 25 Oct 2016 09:34:40 +0200 [thread overview]
Message-ID: <3b5f2fbf-2433-9bf4-0160-41041f590370@easy-emacs.de> (raw)
In-Reply-To: <CAArVCkS0qoDdFgPc7gBpZaZYCQf1vMrcqJYdTztCw8nBJgN6TA@mail.gmail.com>
On 24.10.2016 20:50, Philipp Stephani wrote:
> <tomas@tuxteam.de> schrieb am Mo., 24. Okt. 2016 um 14:32 Uhr:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Mon, Oct 24, 2016 at 02:20:44PM +0200, Andreas Röhler wrote:
>>> Hi,
>>>
>>> remember a saying like "avoid calls like (eval 'my-symbol) in
>>> lisp-code" as related to security issues.
>>>
>>> Is there some reading to learn more? Maybe I'm mistaking something?
>> Perhaps because a randomly downloaded package can redefine 'my-symbol
>> to be something evil?
>>
> Randomly downloaded packages can just say
> (eval-when-compile (shell-command "rm -rf /"))
> No need to override symbols to do something evil.
For the moment taking `symbol-value' as less powerful and sufficient at
the use-cases - later calls to `looking-at' etc.
prev parent reply other threads:[~2016-10-25 7:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-24 12:20 eval and security Andreas Röhler
2016-10-24 12:31 ` tomas
2016-10-24 17:40 ` Andreas Röhler
2016-10-24 18:50 ` Philipp Stephani
2016-10-25 7:34 ` Andreas Röhler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b5f2fbf-2433-9bf4-0160-41041f590370@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.