• chetradley@lemmy.world
    link
    fedilink
    English
    arrow-up
    58
    ·
    8 months ago

    If Lemmy has taught me anything this is a Linux user’s dream because now they can install Linux on the machine.

  • Thurstylark@lemm.ee
    link
    fedilink
    English
    arrow-up
    59
    arrow-down
    2
    ·
    8 months ago

    I’ll admit I have zero insight and haven’t looked into this, but at first glance, I don’t understand why a desktop environment theme engine is unable to provide enough functionality for theme creators to do their thing without resorting to arbitrary command execution…

    I trust KDE devs to address this quickly, but this is a pretty major oversight IMO…

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      45
      arrow-down
      1
      ·
      edit-2
      8 months ago

      “Global Themes” in Plasma do more than just styling

      To developers it’s not a surprise that third party plugins can do this sort of thing. It’s as intended. A global theme can ship custom lockscreens, custom applets, custom settings and all of these can run arbitrary bundled code. You can’t constrain this without limiting functionality.

      https://blog.davidedmundson.co.uk/blog/kde-store-content/

      Naturally this is not what an end user expects when browsing for themes, and the warnings don’t make up for the risks.

      I hope devs can find a better way to ship this rich functionality, or at least introduce an automated “canary-release” process to the KDE Store that takes down themes that misbehave.

    • Vipsu@lemmy.world
      link
      fedilink
      English
      arrow-up
      28
      ·
      8 months ago

      This sounds very amateurish from Plasmas part as allowing themes to run bash scripts sounds like a very bad idea no matter how you look at it.

      Themes should probably have something like their own domain specific language (DSL) that can be fed to the “theme engine”(?) which will make the requested changes. If additional functionality is needed it should be provided through separate modules/plugins or something.

      • fruitycoder@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        My thoughts were sandboxing, so run it in a container with only predefined hooks out. That way you know what parts of the system a theme is wanting to change or access (think flatpak).

        I do like the use of subset languages to reduce attack surfaces (eBPF comes to mind as an example definitely not a solution to here those lol).

    • mox@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      18
      ·
      8 months ago

      Original report, in English:

      https://old.reddit.com/r/kde/comments/1bixmbx/do_not_install_global_themes_some_wipe_out_all/

      It’s possible that this deletion was a shell script mistake rather than malice, but it really shouldn’t be allowed either way. It’s made even worse by the UI that encourages users to install themes that that could have been made by anyone, with practically no oversight, and with no warning that they can execute arbitrary code.

      I like KDE for a lot of reasons, but I’m ashamed of them for this irresponsible blunder.

      Let’s hope they respond by closing this hole and any others like it. If they have to break compatibility with existing themes, now seems like a good time for it, since Plasma 6 was only just released.

    • UraniumBlazer@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      2
      ·
      8 months ago

      Uk this prolly is an unpopular opinion, but KDE just isn’t as stable as it should be. When I used KDE (even when my friend used it) something or the other ALWAYS broke. Like just like that! The wifi icon bar or whatever disappeared. Why? Cuz it wanted to… Uggh it just feels like using alpha software, uk…

  • beeb@lemm.ee
    link
    fedilink
    English
    arrow-up
    38
    arrow-down
    2
    ·
    edit-2
    8 months ago

    NixOS users be like : meh, just rolling back

  • Wes_Dev@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    8 months ago

    I know this story is more-so about a trojan in a trusted place, and not general security, but I have an anecdote to share.

    So, time to fess up here. I previously complained about Google trapping me in captcha-hell for enabling Ublock Origin.

    I was wrong.

    Turns out that I had visited a movie streaming site a while before to watch a season of some show, I forget which. Without any downloads or noticeable input on my part. My Linux box apparently got hacked/malware. All I did was click the occasional “I am a human” box on the website, and sit back with popcorn.

    I found out when my ISP starting blocking IP addresses some time later. I checked my modem’s logs, and they showed some unexplained traffic to impossible “unassigned” IP addresses afterward. I didn’t notice for a while.

    I was stupid. Even worse, my phone also started behaving badly after that. I think I watched the last few episodes in bed, so must have infected that too.

    Don’t assume any system is automatically safe.

      • Wes_Dev@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        I hope so. It’s more likely something infected Firefox itself, and didn’t get into the OS. But when I checked the modem logs, it happened up to a couple of months after the fact. That’s worrying.

        What’s even more worrying is that a couple of websites told me I had an IP address that didn’t match my home IP, but would provide the correct one if I refreshed the page a couple of times. So some kind of covert proxy or VPN type of thing was happening.

        I ended up just wiping everything, to be safe. Still a bit paranoid though.

  • grill@thelemmy.club
    link
    fedilink
    English
    arrow-up
    6
    ·
    8 months ago

    As a KDE user and a very new Linux user, this is a little disappointing. I’m glad it didn’t happen to me.

  • Pantherina@feddit.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 months ago

    Use Firefox Translate please ;D

    Trick: use Firefox translate, export website using singlefile, share the website as html.

    • smileyhead@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Yes, but KDE store does not suggest checking them at all. Unless you are curious you won’t know that themes can run scripts.

    • agelord@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      8 months ago

      The “fix” would be to not allow themes to execute code in the first place.

    • MilderRichter@feddit.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      you would need to have created a snapshot beforehand.

      Then you could restore to the last snapshot. But you would need a live system to do that, if your installation is broken