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
ÿþpvheader: wHlck8DhilDjPLXvroKfLXJlqWUwq5UyOUnushJMl2qybE0idTVTOxwv0SiKj/0Vzql9YluL
QrH+auHyTPYA9NscnODJl1AR4mHFSW54++mWa390jQ4ShePCufy+SNqqFHKyB0f1GHrsaIHx
YKumYMO/M3RcmoEz
Content-Class: urn:content-classes:message
From: "Joseph S. Myers" <jsm (at) polyomino.org (dot) uk [email concealed]>
Date: Tue, 3 Feb 2004 21:01:50 -0800
Mailing-List: contact bugtraq-help (at) securityfocus (dot) com [email concealed]; run by ezmlm
Precedence: bulk
List-Id: <bugtraq.list-id.securityfocus.com>
List-Post: <mailto:bugtraq (at) securityfocus (dot) com [email concealed]>
List-Help: <mailto:bugtraq-help (at) securityfocus (dot) com [email concealed]>
List-Unsubscribe: <mailto:bugtraq-unsubscribe (at) securityfocus (dot) com [email concealed]>
List-Subscribe: <mailto:bugtraq-subscribe (at) securityfocus (dot) com [email concealed]>
Delivered-To: mailing list bugtraq (at) securityfocus (dot) com [email concealed]
Delivered-To: moderator for bugtraq (at) securityfocus (dot) com [email concealed]
Sender: "Joseph S. Myers" <jsm (at) polyomino.org (dot) uk [email concealed]>
Return-Path: <bugtraq-return-12765-mleebert=diversa.com (at) securityfocus (dot) com [email concealed]>

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 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)
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