cross-posted from: https://lemmy.ml/post/13397700
Malicious KDE theme can wipe out all your data
Or is it just buggy?
Great time to mention tools like testdisk that can easily recover data that has been recently deleted on common filesystems.
Btrfs.
Though nothing can replace a proper backup
It is a bug, and not only that, it is KDE6 related lmao. It’s the steam bug again!
Seems like a blessing kde bug, I mean how is it possible? Why a theme needs to be able to execute shell commands?
Themes are very powerful beings in KDE. they can install SDDM themes and scripts, they can set Kvantum themes, custom parameters for other parts of the system etc.
You can’t really do that shit without scripting
It’s really not uncommon for a lot of themes to package an installer script, in case they have multiple versions, or multiple colors bundled. Realistically, they should just each have their own store page, but it’s a colossal pain in the ass. The Catppuccin global theme, for example, has 16 color variants, 2 decoration variants each, and then also a version with no splash. The whitesur theme is similar.
I do agree though that if this is going to continue to exist, it should not have permissions it has today
This is why you back up your data!
I use both Timeshift and Lucky Backup.
Timeshift is setup to back up the entire OS and user data and fire off a backup when updating (onto an internal drive).
Lucky Backup has been setup to do a one way sync of my user folders (doc’s, download, pictures, videos etc) onto an external drive.
For those that don’t want to go back to the Dark side (Reddit), the post referenced a theme (Grey Layout global theme) which got KDE Dev’s involved who in reaction removed the listing from the store.
In short - the theme ran code to run a rm -rf on the user’s drive which wiped everything during install. Aside from backing up your data religiously, be sure to inspect the code instead of blindly installing for now. KDE Dev’s said they will need to do better so I expect some changes are afoot to provide better security.
*Malicious script inside everywhere can wipe out all your data
except sandboxed.