Lemmy.world (and some others) were hacked

3 years ago by Ruud to c/lemmyworld

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.

load all comments
TheVampireSaga 100 points 3 years ago

what steps are being taken to ensure it doesn't happen again? was any personal data compromised for users?

path: 0 1063989, hotness: undefined, score: 100, children: 24
ruud 92 points 3 years ago

Good point, I'll update the post.

path: 0 1063989 1064005, hotness: undefined, score: 92, children: 23
TheVampireSaga 50 points 3 years ago

Also I am curious, what's the easiest way to currently reach the admins in case this happens again somehow? Two of them on their account have been seemingly inactive for a month and as per your own statement you rarely check your notifications and dms. Is there a discord somewhere for it?

path: 0 1063989 1064005 1064076, hotness: undefined, score: 50, children: 8
ruud 53 points 3 years ago path: 0 1063989 1064005 1064076 1064131, hotness: undefined, score: 53, children: 6
Draconic_NEO 4 points 3 years ago
path: 0 1063989 1064005 1064076 1064251, hotness: undefined, score: 4, children: 0
BustedPancake 20 points 3 years ago

So all our cookies are negated now with the JWT changed, and we just needed to login again? Can attackers have stolen our cookies in order to use our accounts to post as if it was us? I'm sure they were only interested in admin cookies, so most others were "useless" to them? I see nothing wrong with my posts so I should be safe, right?

path: 0 1063989 1064005 1064129, hotness: undefined, score: 20, children: 8
cantevencode 26 points 3 years ago

Prior to the JWT secret being rotated, yes, they could have authenticated as you. The tokens are now all invalid and useless

path: 0 1063989 1064005 1064129 1064153, hotness: undefined, score: 26, children: 0
TheVampireSaga 9 points 3 years ago

Probably. I had to re-login myself.

path: 0 1063989 1064005 1064129 1064170, hotness: undefined, score: 9, children: 0
Rooki 5 points 3 years ago

If you think they could change your password:

YES, they could.

They could have changed the email => "Forgot PW" and with that you lost ur account.

path: 0 1063989 1064005 1064129 1065277, hotness: undefined, score: 5, children: 5
InverseParallax 16 points 3 years ago

Nice work on the recovery, especially from a 0-day.

path: 0 1063989 1064005 1064223, hotness: undefined, score: 16, children: 0
giant_smeeg 14 points 3 years ago
path: 0 1063989 1064005 1064096, hotness: undefined, score: 14, children: 3
hawkwind 24 points 3 years ago

They defaced it with dicks and changed the federation list to be only threads.net. I don't think it was a state sponsored chinese hacking group. :)

path: 0 1063989 1064005 1064096 1064978, hotness: undefined, score: 24, children: 2
lemmyworld
lemmyworld

@lemmy.world

login for more options
31279
770
44

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news 🐘

Outages 🔥

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to info@lemmy.world e-mail.

Report contact

Donations 💗

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

go to feed...