From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Dor Azouri <dor.azouri@safebreach.com>
Cc: 28618@debbugs.gnu.org
Subject: bug#28618: Emacs Security Issue
Date: Fri, 29 Sep 2017 09:24:40 -0400 [thread overview]
Message-ID: <87zi9deixz.fsf@users.sourceforge.net> (raw)
In-Reply-To: <CALVPaFYR+BeuVFjQXAiKK0gUfpN5wW37C5Y9kY8U4za68k2Mbg@mail.gmail.com> (Dor Azouri's message of "Fri, 29 Sep 2017 12:57:06 +0000")
Dor Azouri <dor.azouri@safebreach.com> writes:
> This is the output in my env that demonstrates how it works (forgive
> the hebrew chars):
> ~/.emacs.d$ ls -all
> total 20
> drwx------ 2 duke duke 4096 ספט 28 20:24 .
> drwxr----- 105 duke duke 16384 ספט 28 14:36 ..
> ~/.emacs.d$ echo '(let ((default-directory "/opt/")) (shell-command
> "touch stub.file"))' > init.el
> ~/.emacs.d$ ls -all /opt/ | grep stub.file
> ~/.emacs.d$ sudo emacs
> ~/.emacs.d$ ls -all /opt/ | grep stub.file
> -rw-r--r-- 1 root root 0 ספט 28 20:25 stub.file
Hmm, it doesn't happen for me.
~/.emacs.d$ ls -all
total 12
drwx------ 3 npostavs npostavs 4096 Sep 29 09:19 .
drwxr-xr-x 37 npostavs npostavs 4096 Sep 29 09:19 ..
drwx------ 2 npostavs npostavs 4096 Sep 29 09:19 auto-save-list
~/.emacs.d$ echo '(let ((default-directory "/opt/")) (shell-command "touch stub.file"))' > init.el
~/.emacs.d$ ls -all /opt/ | grep stub.file
~/.emacs.d$ sudo emacs
[sudo] password for npostavs:
~/.emacs.d$ ls -all /opt/ | grep stub.file
Can you do
echo '(debug)' > ~/.emacs.d/init.el
sudo emacs
and show the result backtrace please?
next prev parent reply other threads:[~2017-09-29 13:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-27 13:56 bug#28618: Emacs Security Issue Dor Azouri
2017-09-27 15:44 ` John Wiegley
2017-09-27 16:02 ` Dor Azouri
2017-09-27 16:23 ` Andreas Schwab
2017-09-27 17:24 ` Glenn Morris
2017-09-27 18:03 ` Glenn Morris
2017-09-28 11:25 ` Noam Postavsky
2017-09-29 12:57 ` Dor Azouri
2017-09-29 13:24 ` Noam Postavsky [this message]
2017-09-29 16:41 ` Glenn Morris
2017-09-29 22:55 ` Noam Postavsky
2017-10-01 15:27 ` Dor Azouri
2017-10-06 2:23 ` Noam Postavsky
2018-03-17 1:43 ` Noam Postavsky
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=87zi9deixz.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=28618@debbugs.gnu.org \
--cc=dor.azouri@safebreach.com \
/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.