this post was submitted on 10 Jul 2023
94 points (96.1% liked)

Lemmy.ca's Main Community

3246 readers
6 users here now


Welcome to the lemmy.ca/c/main community!

All new users on lemmy.ca are automatically subscribed to this community, so this is the place to read announcements, make suggestions, and chat about the goings-on of lemmy.ca.

For support requests specific to lemmy.ca, you can use [email protected].


founded 4 years ago
MODERATORS
 

cross-posted from: https://sh.itjust.works/post/923025

lemmy.world is a victim of an XSS attack right now and the hacker simply injected a JavaScript redirection into the sidebar.

It appears the Lemmy backend does not escape HTML in the main sidebar. Not sure if this is also true for community sidebars.

top 23 comments
sorted by: hot top controversial new old
[–] [email protected] 24 points 2 years ago* (last edited 2 years ago) (2 children)

This has nothing to do with XSS, it is a simple HTML injection vulnerability, and it can only be exploited by instance admins.

Also Lemmy.world appears to have been running a custom frontend so it’s hard to say how widespread the affects of this are.

[–] [email protected] 6 points 2 years ago

You seem to be following the situation closely. Could you please DM me on Matrix?

[–] [email protected] -1 points 2 years ago* (last edited 2 years ago) (1 children)

Worst case scenario, they can steal your Lemmy session, right?

Which isn't super bad for a service like Lemmy. This isn't a social network, so most contact list scams would be useless.

Edit: just read the targets were admins. That IS bad.

[–] [email protected] 2 points 2 years ago (1 children)

Lemmy isn't a social network? Seems to be one to me.

[–] [email protected] 2 points 2 years ago

I mean, not in the traditional sense. You don't have your family and friends as Lemmy contacts and share posts with them. It's more anonymous.

[–] [email protected] 14 points 2 years ago

It seems to have just gotten to Lemmy.blahaj.zone

[–] [email protected] 10 points 2 years ago (1 children)

I wonder if there is something the Lemmy.ca admins can do to disable the sidebar or put a workaround in to prevent this.

[–] [email protected] 31 points 2 years ago (2 children)

At this point I'm monitoring inter-instance communications channels non stop even though I should be in bed. I will be temporarily removing admins that have not responded to my inquiry to confirm if they have 2FA authentication turned on as initial access appears to have been gained due to lack of 2FA.

If there's anything additinal we can do, we will.

[–] [email protected] 3 points 2 years ago (1 children)

Good luck, and thanks for all your hard work. I don't know if you already saw this, but it looks like this might be the vector for the account compromise. If that's the case, I don't think 2FA is enough to protect, because it's exfiltrating the session cookies of someone already logged in. Seems like the precaution is for admins to avoid clicking any suspicious links. I realize the irony of sharing a link about this, but at least it's to a thread on this instance.

https://lemmy.ca/post/1311411

[–] [email protected] 3 points 2 years ago

I'm copying all links into a brand new incognito mode window for now.

[–] [email protected] 7 points 2 years ago (1 children)

I mean, if it's something that's editable only by admins of the instance, I'm not sure it constitutes a vulnerability, since admins can change the content to whatever they desire by definition.

[–] [email protected] 4 points 2 years ago (1 children)

Wasn’t clear till further people commented that it was something only and admin could do. So I agree.

[–] [email protected] 4 points 2 years ago (1 children)

We have yet to confirm if a vulnerability exists in the sidebars that can be set by community mods.

[–] [email protected] 1 points 2 years ago (2 children)

can you temporally take away the ability for mods to put html or any kinda script into the sidebar, at least for now?

[–] [email protected] 1 points 2 years ago

No. Unfortunately. This is not a confirmed vector of attack at this point but we are monitoring.

[–] [email protected] 1 points 2 years ago

That would essentially be patching the vulnerability. A temporary fix would be just preventing the sidebar from being editable.

(Ideally the vulnerability would be patched, but these things take time.)

[–] [email protected] 1 points 2 years ago

for some reason I had to reset my password.

load more comments
view more: next ›