3 ms·
Exec=convert %i -thumbnail %s %o Seeing things like that always makes me wonder how it behaves if you happen to have a file named something like '; rm -rf *' o
by userbinator 3y ago
Exec=convert %i -thumbnail %s %o
Seeing things like that always makes me wonder how it behaves if you happen to have a file named something like '; rm -rf *' or similar; a quick online search unfortunately reveals very little documentation on how exactly that command is parsed, substituted, and executed.
- worthless-trash 3y agoThis is called 'shell command injection' and is a very common attack on software. Part of the standard https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html https://specifications.freedesktop.org/thumbnail-spec/thumbn... I believe that this would be part of GnomeDesktopThumbnailFactory , probably https://gitlab.gnome.org/GNOME/gnome-desktop/-/blob/master/libgnome-desktop/gnome-desktop-thumbnail-script.c https://gitlab.gnome.org/GNOME/gnome-desktop/-/blob/master/l... Looks like its working by design.
- deleted 3y ago[deleted]