zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: <zsh-workers@zsh.org>
Subject: Re: zsh/files module and insecure tempfile creation
Date: Sun, 11 Jan 2015 22:56:26 -0800	[thread overview]
Message-ID: <150111225626.ZM5554@torch.brasslantern.com> (raw)
In-Reply-To: <20150112054344.GC1728@tarsus.local2>

On Jan 12,  5:43am, Daniel Shahaf wrote:
} Subject: Re: zsh/files module and insecure tempfile creation
}
} Bart Schaefer wrote on Fri, Jan 09, 2015 at 22:31:50 -0800:
} > Next the attacker must be able to swap the directory or symlink with
} > a symlink to his own target file.
} 
} On FreeBSD systems, 'cat /path/to/dir' works (prints something and
} returns 0).

That is also avoided, I think, by using zf_ln -fn to be sure the target
is removed and replaced by zsh's temp file.  I think we're OK there after
this latest patch pass.


      reply	other threads:[~2015-01-12  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-10  6:31 Bart Schaefer
2015-01-10 19:58 ` Peter Stephenson
2015-01-11  2:04   ` Bart Schaefer
2015-01-12  5:43 ` Daniel Shahaf
2015-01-12  6:56   ` Bart Schaefer [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=150111225626.ZM5554@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.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 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).