September 11 2017 File::Path Security Back

File::Path::rmtree(): The 2017 Vulnerability

        In a nutshell, the chmod() logic to make directories traversable can be
        abused to set the mode on an attacker-chosen file to an attacker chosen
        value. This is due to the TOCTOU race condition between the stat() that
        decides the inode is a directory and the chmod() that tries to make it
        user-rwx.


Home Last TOC Copyright © 2017 James E Keenan Back Next