Places to block filesystem traversal
Places to block filesystem traversal
Posted Oct 5, 2018 7:11 UTC (Fri) by epa (subscriber, #39769)Parent article: New AT_ flags for restricting pathname lookup
It’s not just containers. Path-traversal bugs are a common exploit in archivers like tar or unzip, where unpacking a malicious archive file overwrites things elsewhere in the filesystem. I imagine web servers might also use this flag as an additional defence to make sure they only serve content from the right directory. If the flag existed on all operating systems, a lot of userspace path sanitizing code could be removed.
