BugTraq
Symlink Vulnerability in GNU libtool <1.5.2 Jan 30 2004 01:14AM
Stefan Nordhausen (deletethis nordhaus informatik hu-berlin de) (3 replies)
Re: Symlink Vulnerability in GNU libtool <1.5.2 Feb 04 2004 05:01AM
jsm polyomino org uk
Re: Symlink Vulnerability in GNU libtool <1.5.2 Feb 03 2004 11:21AM
Stefan Nordhausen (deletethis nordhaus informatik hu-berlin de)
Re: Symlink Vulnerability in GNU libtool <1.5.2 Feb 03 2004 09:47AM
Joseph S. Myers (jsm polyomino org uk) (2 replies)
On Fri, 30 Jan 2004, Stefan Nordhausen wrote:

> Solution:
> Updating to libtool 1.5.2 (the current stable release) will eliminate
> the vulnerability. If you want to stick with your old version of libtool
> you can easily fix this bug yourself. In "ltmain.in" (or file "libtool",
> whichever applies for you) you should replace the line:
>
> if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
>
> with
>
> if $mkdir "$tmpdir" && chmod 700 "$tmpdir"; then :

The chmod has a race (that access to the temporary directory could be
gained after it is created but before it is chmoded) - which I pointed out
when I reported this security bug four years ago
<http://www.geocrawler.com/mail/msg.php3?msg_id=3438808&list=405> - so is
of limited security value. Alexandre Oliva's patch at that time
(<orsnxk8oqu.fsf (at) garnize.lsd.ic.unicamp (dot) br [email concealed]> on libtool-patches) used umask
to avoid that problem, but wasn't committed (an entirely separate patch
was committed under that log message).

--
Joseph S. Myers
jsm (at) polyomino.org (dot) uk [email concealed]

[ reply ]
Re: Symlink Vulnerability in GNU libtool <1.5.2 Feb 04 2004 07:10PM
Stefan Nordhausen (deletethis nordhaus informatik hu-berlin de)
Re: Symlink Vulnerability in GNU libtool <1.5.2 Feb 03 2004 08:33PM
Scott James Remnant (scott netsplit com)


 

Privacy Statement
Copyright 2010, SecurityFocus