109
submitted 1 year ago by brad@toad.work to c/tech@lemmy.fmhy.ml

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.

you are viewing a single comment's thread
view the rest of the comments
[-] cdiv@lemmy.blahaj.zone 5 points 1 year ago

And use the Content-Security-Policy header to limit where scripts can load from, just in case you miss escaping HTML somewhere.

this post was submitted on 10 Jul 2023
109 points (99.1% liked)

Technology

24 readers
1 users here now

Talk about anything tech related!

founded 1 year ago
MODERATORS