/proc and directory permissions
Posted Oct 30, 2009 0:33 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
/proc and directory permissions by jimparis
Parent article:
/proc and directory permissions
There's something missing from the explanation of why this is a problem, because the basic idea that you can open a file before permissions to it are supposedly revoked and then keep using the file doesn't require any /proc/PID/fd magic.
The scenarios show an attacker opening read-only and then escalating to read-write after some permissions were changed, but the attacker could just as easily have opened read-write in the first place.
Are we supposed to imagine some scenario in which the system administrator ensures only read-only opens have happened at the time he changes the directory permission and thus assumes the file is safe from writing?
(
Log in to post comments)