New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell Injection when changing Colors of a folder #970
Comments
Same Problem with filenames when you change the emblem with nemo Line 132 in nemo-emblems.py os.system("touch "%s"" % self.filename) # touch the file (to force Nemo to re-render its icon) |
Exploit Demo Video (german) |
Instead of spawning an external process i prefer using a build-in python function Both act the same. touch will update the timestamp of last access, same does os.utime(None = Current time) |
Don't forget to fix Line 132 in nemo-emblems.py |
Demo Exploit
start firefox
rename a folder with nemo to this folder name
";killall firefox;#
Now change the COLOR of the folder with nemo to some other color
Firefox will be killed for a prove of concept.
Reason is line 159 in nemo-folder-color-switcher.py
The shell command in the folder path will be injected with os.system()
Please use subprocess, not os.system()
Thanks
The text was updated successfully, but these errors were encountered: