Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 2 Jul 2018 16:38:01 +0200
From: Matthias Gerstner <>
Subject: Re: accountsservice: insufficient path check in


> >I think the easiest way to fix this is to normalize the user supplied 
> >filename e.g. using realpath()
> Using realpath(3) for access control is almost always a mistake: this 
> function expands symlinks, including attacker-controlled symlinks.

can you elaborate what your main worry of using realpath is in this

It surely is better not to expand attacker controlled symlinks or
perform and system calls if it is not necessary. But I fail to see the
security issue of just calling realpath(3) on an attacker controlled



Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Your e-mail address:

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.