by TacticalCoder · 10mo ago · 0 comments
Also there's absolutely zero need to be sudo to put a JSON config file for Firefox on Linux.
You're basically bash/curl'ing the kitchen sink, with all the security risks that entails, executing a shell script as root (which may or may not be malicious now or at some point in the future), just to...
Put a 12 lines JSON file in a user's Firefox config folder.
Way to go my "fremen" brothers [1].
[1] the "fremen" in Dune as those who adore the Shai-Hulud
In Linux (and in any sane system) there is no need for elevated privileges just to alter your browser settings.
Sure, Authenticode signing certificates aren't always cheap, and signing your script doesn't protect the script from compromise without other good security practices, but it would still show some attention to detail on PowerShell and some attempt to avoid malware compromising your script.
[1] https://learn.microsoft.com/en-us/powershell/module/microsof...