* Fwd: joe editor backup problem <-- same with emacs
@ 2002-09-18 19:01 og1
0 siblings, 0 replies; only message in thread
From: og1 @ 2002-09-18 19:01 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 129 bytes --]
Hello, attached is a recent post on the bugtraq mailing list,
note that the same 'bug' happens with emacs aswell.
Regards,
Y.G.
[-- Attachment #2: "הודעה 19" --]
[-- Type: message/rfc822, Size: 2799 bytes --]
From: Ondrej Suchy <ondrej-bugtraq@qlinux.cz>
To: bugtraq@securityfocus.com
Subject: joe editor backup problem
Date: Tue, 17 Sep 2002 20:30:24 +0200
Message-ID: <20020917183024.GA7393@yakuza.salon.cz>
Hi all,
there's a minor problem with the popular opensource editor 'joe'
(http://sourceforge.net/projects/joe-editor/). The way how joe handles
backup files may create unwanted suid files.
Example situation:
(1) unprivileged user creates some file and puts suid bit on it:
trtko$ ls -l suid.file*
-rwsr-sr-x 1 trtko trtko 68 Sep 17 19:57 suid.file
(2) root goes and opens, edits and closes the file in 'joe'.
(3) now look:
trtko$ ls -l suid.file*
-rwsr-sr-x 1 trtko trtko 68 Sep 17 19:57 suid.file
-rwsr-sr-x 1 root root 68 Sep 17 19:58 suid.file~
Oops, root owned suid file was unintentionally created.
This is a low risk since successful attack would require some sort of
social engineering in making the administrator edit attackers file.
Also some systems (Linux) won't let you have suid scripts, so you would
have to make the root edit some compiled executable, or you would have
to use some other tricks maybe...
Maybe it's even not exploitable at all. Either way, having such
unnecessary suid files generally isn't a good idea, I believe.
(Project maintainers were contacted and have fixed the issue in the CVS
version.)
Have a nice day
Ondrej
--
Ondrej Suchy <ondrej-bugtraq@qlinux.cz>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-18 19:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18 19:01 Fwd: joe editor backup problem <-- same with emacs og1
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).