zsh-workers
 help / color / mirror / code / Atom feed
* Security hole in history handling for root
@ 2009-01-01 14:32 Richard Hartmann
  2009-01-21 16:54 ` Richard Hartmann
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Hartmann @ 2009-01-01 14:32 UTC (permalink / raw)
  To: Zsh Workers

Hi all,

zsh does not complain when loading from or writing
to a history file which is not owned by root or 600.

My suggestion is that a warning similar to compaudit's
is introduced, both on loading and writing. People who
share history between root and their normal users might
appreciate an option to turn this off, but personally, I
think that is bad style, anyway.

For reference:

roadwarrior ~ # l .zsh_history
-rw-rw-rw- 1 richih richih 78515 2009-01-01 15:23 .zsh_history
roadwarrior ~ # zsh
roadwarrior ~ # mv .zsh zsh
roadwarrior ~ # ln -s /home/richih/.zsh .zsh
roadwarrior ~ # zsh
zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?


Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-21 23:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-01 14:32 Security hole in history handling for root Richard Hartmann
2009-01-21 16:54 ` Richard Hartmann
2009-01-21 17:18   ` Peter Stephenson
2009-01-21 17:54     ` Richard Hartmann
2009-01-21 18:04       ` Peter Stephenson
2009-01-21 23:06         ` Richard Hartmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).