cross-posted from: https://lemmy.ml/post/13397700

Malicious KDE theme can wipe out all your data

Or is it just buggy?

44 points

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.

permalink
report
reply
22 points
*

Why can a theme execute code??

edit: it was the package that did it?

permalink
report
parent
reply
9 points
permalink
report
parent
reply
3 points

Ooh! Thanks for this! I had no idea it existed.

permalink
report
parent
reply
40 points

Great time to mention tools like testdisk that can easily recover data that has been recently deleted on common filesystems.

permalink
report
reply
14 points

Btrfs.

permalink
report
parent
reply
7 points

Though nothing can replace a proper backup

permalink
report
parent
reply
-12 points
*

I would use gparted

Edit: it can only restore deleted partitions, not files. For restoring files check the documentation for your file system

permalink
report
parent
reply
16 points

Gparted can restore deleted files?

permalink
report
parent
reply
6 points

No, I had a brain pause

permalink
report
parent
reply
3 points

I dont think so… you can use it to set up deleted paritions again afaik but thats all that i know of.

permalink
report
parent
reply
3 points
*
Removed by mod
permalink
report
parent
reply
2 points
*

It also can restore disk partitions. Whoops, I made a minor blunder

permalink
report
parent
reply
31 points

A ton of extensions are executing scripts, but this is generally behind a warning.

This REALLY has to change guys, and for that the getnewstuff backend must become better.

For example Dolphin extensions are still downloaded to some random download location that is not actually used.

And the packaging of addons is extremely random too.

permalink
report
reply
24 points

*Malicious script inside everywhere can wipe out all your data

permalink
report
reply
5 points
*

except sandboxed, a theme should not have unrestricted user file system access.

permalink
report
parent
reply
22 points
*

Seems like a ~~blessing ~~ glaring kde bug, I mean how is it possible? Why a theme needs to be able to execute shell commands?

permalink
report
reply
17 points

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

permalink
report
parent
reply
13 points

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

permalink
report
parent
reply
1 point

Because themes are not just skins, as I understand. Themes are a collection of a lot of different kinds of components, from color schemes and fonts to window decorations and to a custom interactive SDDM menu as the other commenter said.

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.2K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments