Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layer: don't permit / type to be changed on extraction
If users can change the type of / to a symlink, they can cause umoci to overwrite host files. This is obviously bad, and is not caught by the rest of our directory escape detection code because the root itself has been changed to a different directory. Fixes: CVE-2021-29136 Reported-by: Robin Peraglie <robin@cure53.de> Tested-by: Daniel Dao <dqminh89@gmail.com> Reviewed-by: Tycho Andersen <tycho@tycho.pizza> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information