3 ms·
It works by induction. If there is a path alpha that we somehow trust, we can also trust alpha/omega if omega is a symlink. We cannot trust what it points to, b
by kazinator 4y ago
It works by induction. If there is a path alpha that we somehow trust, we can also trust alpha/omega if omega is a symlink. We cannot trust what it points to, but we can trust that omega itself is not editable by an adversary. That allows us to read the symlink and continue analyzing.
Anyway, I would be delighted
to see a program which can fool the safepath_check function, so that it reports to user Alice that a path is safe in spite of Mallory controlling one or more components. I will try to fix the function to close the hole, and of course give full credit.