• PlutoniumAcid@feddit.dk
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      No biggie. Choose another server and create it there, too. Largest communities will win in the long run.

  • sogon@lemmy.my.id
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    It appears that the deface attack is back in full swing (racial slurs and all the redirects)

    • Stovetop@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      It looks like they’re in the process. The compromised account was demoted from admin and I see posts are being removed. There will definitely need to be some sort of investigation into how this happened, though.

  • xaon_rider92@monyet.cc
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Time to make an alt! Been thinking about switching instances anyway, so this is a nice test. Hope the situation gets resolved soon.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    GitHub PR fixing the bug: https://github.com/LemmyNet/lemmy-ui/pull/1897/files

    If your instance has custom emojis defined, this is exploitable everywhere Markdown is available. It is NOT restricted to admins, but can be used to steal an admin’s JWT, which then lets the attacker get into that admin’s account which can then spread the exploit further by putting it somewhere where it’s rendered on every single page and then deface the site.

    If your instance doesn’t have any custom emojis, you are safe, the exploit requires custom emojis to trigger the bad code branch.

    • StudioLE@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 years ago

      I’m not particularly familiar with XSS but I’m curious how a frontend exploit can compromise an instance?

      Presumably the injected XSS stores the admin’s JWT somewhere for the exploiter?

      Then using that JWT they can effectively login as the admin which gives them access to whatever admin dashboard there is, but does that actually compromise the backend at all?

      edit: for anyone curious there’s a bit of a breakdown of how it works here: https://feddit.win/comment/244427

      • CMahaff@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 years ago
        1. Inject exploit into a comment using custom emoji.
        2. Front-end parses the emoji incorrectly allowing JavaScript to be injected.
        3. JavaScript loads for everyone to views a page with the comment and sends their token and account type to the hackers domain.
        4. Hacker parses received tokens for admins and uses that to inject redirects into the front page of the Lemmy instance.

        To answer your other questions:

        • IMO there probably should be better parsing to remove this stuff from the back-end, so I’m not sure the front-end solution is the complete solution, but it should get things largely under control.
        • Back-end is theoretically not compromised besides needing to purge all the rogue comments. Attacker presumably never had access to the server itself.
        • Probably needs to be a mass reset of ALL passwords since lots of people’s tokens were sent during the attack, so their accounts could be compromised.
    • Kayn@dormi.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      But won’t custom emojis from remote instances still trigger the exploit?

  • delendum@lemdit.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    lemmy.world was briefly back to normal and there had been a post saying that everything was fine now - it’s not.

    The site has just started doing the same thing again.

    Please do not try using lemmy.world for the time being.

    • The Cuuuuube@beehaw.org
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago

      the post saying everything was fine now was coming from the same account that was originally compromised

      • klyde@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Lol so how do you expect to be notified then? You don’t think they can get their account back? They’ll get it back eventually.

        • The Cuuuuube@beehaw.org
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          They have multiple admins. The expectation would be for one of the non compromised admins to make the announcement. It’s a trusted channels thing

    • Cyyy@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      2 years ago

      i just got logged out of my account from Jerboa and can’t login anymore. my is completely wiped from my app now.

      edit: okay seems the admins have taken down lemmy.world and thats probably why it happend in the app. but its weird that it just wipes the login and data of the instance in the app… weird.

      • Rentlar@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Jerboa tries to log in with session info passed to the server, if the server doesn’t respond properly then it just calls you Anonymous, because it can’t acquire your username and info. That’s probably what’s happening.

        • Cyyy@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          oh, okay. didn’t knew that. i expected that it saves the login information locally (encrypted) and then uses this to login… and if there is an error, that it just says “login error” or something… with the option to retry.

          it’s weird that it looks like the whole login data just gets wiped. confused me a lot since it also said Anonymous as my user etc… really thought first my account got hacked after all that issues.

          • JumpingJack@lemmy.ca
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 years ago

            I’m not using your app, I’m still learning Connect but ran into similar sounding confusion. Maybe yours is acting the same way: Connect puts an option in the settings to switch which instance(.world/.ee/.ca) it’s running on, and each option will show its own list of users in the apps main sidebar. I switched and thought I lost all my login info, but it was there when I switched back. I maybe wouldn’t try switching to .world right now, but if that’s how your app works maybe it’s all still there waiting.

      • andrew@lemmy.stuart.fun
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        My self hosted instance has hiccups sometimes and Jerboa just doesn’t handle it super well. You can swipe away the app and reopen once the server is back and it should come right back up.

    • maegul (he/they)@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      Hmm. They seem to have cleaned up a lot of things by now. If federation is an issue that might something the hacker did? Though pausing federation as a precaution makes sense.

    • Muddybulldog@mylemmy.win
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 years ago

      Last post received in my instance from them was over an hour ago. I usually see one or two a minute. Comments stopped at the same time and those are usually about every 5 seconds.

  • RunAwayFrog@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Don’t know if this will be relevant at all, but I’m almost hoping this will force Lemmy devs to abandon the obscure markdown crate they use for pulldown-cmark.

    Using an obscure markdown implementation just because it supports spoiler tags always sounded like a silly decision to me!

  • Roggie@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    Just clicked into Lenny.world and saw “site has been seized by Reddit for copyright infringement “

  • Max-P@lemmy.max-p.me
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 years ago

    The admins now appears to have taken down the backend in an effort to stop the defacing.