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

Malicious KDE theme can wipe out all your data

Or is it just buggy?

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
-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
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
6 points

No, I had a brain pause

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
14 points

Btrfs.

permalink
report
parent
reply
7 points

Though nothing can replace a proper backup

permalink
report
parent
reply
10 points

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.

permalink
report
reply
5 points

Stupid question maybe, but would your backups even be safe? Sure, it was mentioned that you had to enter your sudo password, but let’s say you did that because you are careless, “rm -rf” would wipe all connected and mounted drives as well, so your backups would be gone, wouldn’t they? Or does Timeshift mount and unmount on demand? If so, what would happen if you ran “rm -rf” while a backup is being saved?! It seems to me that a simple “make backups” isn’t enough here.

permalink
report
parent
reply
4 points

I do not know much about Timeshift and Lucky backup. But a proper backup is not a on the same system even if it is a second drive internally. For some quick file recovery after deleting things you shouldn’t have it is fine. A proper backup should be a separate system and ideally 2 systems one externally but this is overkill for most folks. With a separate system you can setup automated backups and disaster recovery. if you are scared the backup system can get compromised from the main system. you can set things up in such a way that the backup works in pull mode and the main system being backed up has no access to the backup system.

permalink
report
parent
reply
2 points

Not everyone can have 2 computers for all kinds of reasons.

Everyone do you best. Prioritize your data and take stronger precautions for the most important.

permalink
report
parent
reply
3 points

This is why you shouldnt allow anything to execute arbitrary code without permission

permalink
report
parent
reply
1 point

Lucky Backup is a fantastic piece of software. It is the perfect amount of GUI to spread over rsync.

permalink
report
parent
reply
11 points

It is a bug, and not only that, it is KDE6 related lmao. It’s the steam bug again!

permalink
report
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
9 points
*

On the Reddit thread people, at least one of them tagged as a KDE dev, mentions that widgets NEED to be able to run arbitrary code. I am absolutely baffled by this.

permalink
report
reply
22 points

Aren’t widgets pieces of software? Of course they have to run code. But they need to be isolated, or at the very least not have sudo access.

permalink
report
parent
reply
5 points

Think of html+css, themes are supposed to be that kind of code who does nothing by itself.

permalink
report
parent
reply
11 points

Widgets aren’t themes. They’re things on your desktop that people are using for example for showing a folder - and if that can’t interact with the system, that widget’s functionality is broken.

Of course, that should not apply to install scripts or the like, which shouldn’t be a thing at all really. And it should be made a lot more obvious which downloadable things can execute code / which ones are “guaranteed” safe and which ones may not be.

permalink
report
parent
reply
1 point

I think the theme mentioned probably don’t have sudo access, just user access can do enough harm already.

I think rm command should refuse to remove overly-broad target (home, xdg dirs, media drives) without confirmation in the command line.

permalink
report
parent
reply
1 point
*

Ok, then a bad actor could enumerate all the subdirs and delete them one by one.

Even if going down this path would be a good solution, I don’t think this is rm’s job to do. This should be done by an antivirus a security suite. I think I have read that for the past few years the kernel now has a better API than inotify to get notified by file operations. I don’t remember it’s name, but I think it was even mentioned in the docs that security software is a use case of it

permalink
report
parent
reply
10 points
Deleted by creator
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.5K

    Monthly active users

  • 6.6K

    Posts

  • 179K

    Comments