|
|
|
|
|
by Quekid5
977 days ago
|
|
My objection would be that one (or more) path component(s) could come under the control of an adversary in between the check and the use. Granted it might take a weird set of circumstances -- e.g. a deployment process running in parallel doing odd things with permissions[0] -- but the fundamental problem seems to be essentially unsolvable without kernel support. It's definitely a great improvement, though. [0] Which would arguably be a bug with the other process, but this is the world we live in :/ |
|
Whenever root creates an object owned by root, which is then chown-ed to non-root, if an adversary can point a root process at that object, that could subvert safepath.