Re:HiddenWasp Malware Stings Targeted Linux Systems
by jorangreef on Saturday June 01, 2019 @02:58AM
(#20067738)
Keeping your autostart directory read-only is a great idea.
After that, a ZIP symlink traversal could still drop a script in your command path directories that are writable by your user. The execute bit is not a hurdle, unzip utilities will typically preserve the execute bit on Unix systems.
ZIP directory traversals are as old as the hills, yet they are still a thing: https://snyk.io/research/zip-slip-vulnerability.
ZIP symlink traversals are even more powerful, yet they are hardly spoken of.
Ideally, you want your email provider to be blocking ZIP attachments with symlink traversals or execute bits (but I am not aware of any which do).
OK, I see your point, normal usage against exploits, and usually security goes against convenience.
I don't know if I'm overly paranoid, but in this specific case I've started long time ago to keep my autostart dir read only. At the same time I've dirs in my command path that are writable by my user (but those need the execute bit tho)...