Merged, thanks!
By @onion_knight.
Merged.
I think it would be a good idea to blacklist network file systems such as NFS and SMB as well. These can be blacklisted with
install nfs /bin/true
install cifs /bin/true
SMB has had plenty of security vulnerabilities in the past and was one of the main ways the WannaCry ransomware was spread.
I donāt mind becuase I donāt use either myself but in the case of nfs it is the only protocol for sharing files from the guest with a Linux host in event of running MS Windows for compatibility reasons.
Would only have been exploitable for users who choose to use these protocols? Or was there a security risk for users who have nothing to do with these protocols?
Concern: I donāt think we should blacklist protocols which cannot be abused to autoload that only make it more difficult for users who choose to use these.
If you have the software installed to use them, youāll likely be at risk.
Iām not sure if it would be possible to exploit these without the needed packages installed (e.g. the samba
package in the Debian repos).
In such cases we need to tap into external knowledge by asking elsewhere. Just making things more difficult without knowing if thereās a point seems wrong.
Wouldnāt that spam whatever is getting the notification with pointless errors?
Better to fail and see an error message. Even if spamming. In theory. We donāt know if itās spamming or any error message at all. /bin/false only increases chances that there will be a visible error message. Not so good to fail and not see any error message.