6.1.9 Ensure no world writable files exist
Audit#
Run the following command and verify no files are returned:
The command above only searches local filesystems, there may still be compromised items on network mounted partitions. Additionally the --local option to df is not universal to all versions, it can be omitted to search all filesystems on a system including network mounted filesystems or the following command can be run manually for each partition:
Remediation#
Removing write access for the "other" category ( chmod o-w <filename>
) is advisable, but always consult relevant vendor documentation to avoid breaking any application dependencies on a given file.