This post is intended as a central place that admins can reference regarding the
XSS incident from this morning. ### What happened? A couple of the bigger Lemmy
instances had several user accounts compromised through stolen authentication
cookies. Some of these cookies belonged to admins, these admin cookies were used
to deface instances. Only users that opened pages with malicious content during
the incident were vulnerable. The malicious content was possible due to a bug
with rendering custom emojis. Stolen cookies gave attackers access to all
private messages and e-mail addresses of affected users. ### Am I vulnerable? If
your instance has ANY custom emojis, you are vulnerable. Note that it appears
only local custom emojis are affected, so federated content with custom emojis
from other instances should be safe. ### I had custom emojis on my instance,
what should I do? This should be enough to mitigate now: 1. Remove custom emoji
DELETE FROM custom_emoji_keyword; DELETE FROM custom_emoji; 2. Rotate your JWT
secret (invalidates all current login sessions) -- back up your secret first,
just in case SELECT * FROM secret; -- generate a new secret UPDATE secret SET
jwt_secret = gen_random_uuid(); 3. Restart Lemmy server If you need help with
any of this, you can reach out to me on Matrix (@sunaurus:matrix.org) or on
Discord (@sunaurus) ### Legal If your instance was affected, you may have some
legal obligations. Please check this comment for more info:
https://lemmy.world/comment/1064402 [https://lemmy.world/comment/1064402] #####
More context: https://github.com/LemmyNet/lemmy-ui/issues/1895
[https://github.com/LemmyNet/lemmy-ui/issues/1895]
https://github.com/LemmyNet/lemmy-ui/pull/1897
[https://github.com/LemmyNet/lemmy-ui/pull/1897]
See post for details, but a quick tl;dr:
Malicious actors were able to inject code using a XSS (cross site scripting) attack and steal JWT tokens for users. Any user who had their token compromised has potentially had their password and email address compromised.
This only applies to instances that have local custom emojis. Posts with custom emojis that are federated in from a remote server are not affected.
We currently have no custom emojis, so if your account is here on TTRPG.network, your account is safe.
If your account is remote to an affected server, i would recommend changing your password asap