While I was asleep, apparently the site was hacked. Luckily, (big) part of the lemmy.world team is in US, and some early birds in EU also helped mitigate this.

As I am told, this was the issue:

  • There is an vulnerability which was exploited
  • Several people had their JWT cookies leaked, including at least one admin
  • Attackers started changing site settings and posting fake announcements etc

Our mitigations:

  • We removed the vulnerability
  • Deleted all comments and private messages that contained the exploit
  • Rotated JWT secret which invalidated all existing cookies

The vulnerability will be fixed by the Lemmy devs.

Details of the vulnerability are here

Many thanks for all that helped, and sorry for any inconvenience caused!

Update While we believe the admins accounts were what they were after, it could be that other users accounts were compromised. Your cookie could have been ‘stolen’ and the hacker could have had access to your account, creating posts and comments under your name, and accessing/changing your settings (which shows your e-mail).

For this, you would have had to be using lemmy.world at that time, and load a page that had the vulnerability in it.

  • Ahmed@lemmy.world
    link
    fedilink
    arrow-up
    138
    ·
    1 year ago

    Thanks Ruud for fixing it! Just a reminder guys that If you are using a third party app you need to login again.

    • 200ok@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      1 year ago

      Thank you.

      In case anyone else is having trouble logging in, my password wasn’t working so I had to reset it from the website.

      • 200ok@lemmy.world
        link
        fedilink
        arrow-up
        13
        arrow-down
        1
        ·
        1 year ago

        So now I can log in via a 3rd party app but not the website (with the new password that I reset via the website.)

        I’m currently posting from the 3rd party app. Digging around to try and find 2FA settings for Lemmy.

        • 200ok@lemmy.world
          link
          fedilink
          arrow-up
          18
          ·
          1 year ago

          Someone else commented that cookies need to be cleared on the website (again, for anyone else reading this and having issues.)

    • ColleenLawson@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      1 year ago

      Further 3rd party heads up – for us nontech refugees:

      If it looks like you are logged in, you may not be. I use Connect, and at your reminder, I clicked my acct and it says I was logged in. I tried to comment that Connect login was working, and my comment didn’t show up.

      I tried again, only to see an ”error: not logged in” message pop up.

      Signed out, signed in again manually, and all is well.

      So do a double check, Lemurs. Trust in your actions, not your eyes.

    • scarabic@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      For capable people this is a minor annoyance but whenever there’s an “everyone needs to login again” issue, we will lose mere mortal users. In this case it wasn’t even clear that was needed - I appeared to be logged in but nothing worked. Ordinary users give up over things like this. I’ve seen it happen many times on sites where I had access to the analytics. I hope we regard this as a really bad thing to be avoided at all costs and not a “no big deal, just log in again.” Easy for you, easy for me, many others will just bail.

    • Harold_Penisman@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Thanks for the heads up. I was starting to get frustrated with not being able to upvote/downvote/subscribe/comment, but logging in again seems to have done the trick. Also, this is my first ever comment on Lemmy. Hooray.

      EDIT: for anyone using Memmy on IOS, this might not be the only solution, but it is what worked for me - I didn’t see an option to sign out anywhere, so I went to the account settings and added a new account, putting in the details for my current and only account. Weirdly, this made my account show up as 2 separate accounts, which made the “delete account” button appear. I clicked delete on one of them and was immediately sent to the login screen. I logged back in from there and now things work fine.