Say that I have in my OS many files with executable permissions, even they are not needed this permission (like .jpg or .txt) - What are the security risks of having that? The system will be less secure hacking wise?
Thanks
Say that I have in my OS many files with executable permissions, even they are not needed this permission (like .jpg or .txt) - What are the security risks of having that? The system will be less secure hacking wise?
Thanks
My first thoughts from a security perspective would be..
Having executable permissions on files that should not have them exposes your machine to risks like execution of commands through vulnerabilities such as null byte injection on web servers.
With something like injection attacks the attacker has limited file system access only to files he has permissions to. This includes most file inclusion vulnerabilities which in the end leads to complete system breach when the attacker has the 'everyone' privileges set as executable.