all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: tomas@tuxteam.de, help-gnu-emacs@gnu.org
Subject: Re: eval and security
Date: Mon, 24 Oct 2016 18:50:19 +0000	[thread overview]
Message-ID: <CAArVCkS0qoDdFgPc7gBpZaZYCQf1vMrcqJYdTztCw8nBJgN6TA@mail.gmail.com> (raw)
In-Reply-To: <20161024123151.GB10964@tuxteam.de>

<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.


  parent reply	other threads:[~2016-10-24 18:50 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 [this message]
2016-10-25  7:34     ` Andreas Röhler

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=CAArVCkS0qoDdFgPc7gBpZaZYCQf1vMrcqJYdTztCw8nBJgN6TA@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /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.