You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, the service name is added without sanitizing it. By default mintupload doesn't allow a user to create a service with special characters but it's possible to modify the service name by changing it in ~/.linuxmint/mintUpload/services/service.
Consider a case where the service name starts with " and ends with #. By doing so, the argument in os.system becomes
In the case of Service.remove(). A command can by injected by renaming the service file to ' & command here #, so that the argument inside os.system() will become
rm ''&command here #
Possible fix
Replacing os.system() with subprocess.run() can fix this issue.