Fwd: libc6 vulnerability

Geoff Keating geoffk@ozemail.com.au
Mon Feb 8 22:22:00 GMT 1999


> Mail-Copies-To: never
> Cc: libc-hacker@cygnus.com
> From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
> Date: 08 Feb 1999 09:04:55 +0100

> -  hconf_name = getenv (ENV_HOSTCONF);
> -  if (hconf_name == NULL)
> +  filename = getenv (ENV_HOSTCONF);
> +  if (filename != NULL && euidaccess (filename, R_OK) >= 0)

Don't do that.  It would create a race condition if `filename' was
actually a symbolic link that was changed between the euidaccess() and
the open().  Instead, use secure_getenv.

-- 
Geoffrey Keating <geoffk@ozemail.com.au>



More information about the Libc-hacker mailing list