this post was submitted on 06 Jul 2023
65 points (97.1% liked)

Cybersecurity

5754 readers
170 users here now

c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.

THE RULES

Instance Rules

Community Rules

If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.

Learn about hacking

Hack the Box

Try Hack Me

Pico Capture the flag

Other security-related communities [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

Notable mention to [email protected]

founded 1 year ago
MODERATORS
 

What is XSS?

Cross-site scripting (XSS) is an exploit where the attacker attaches code onto a legitimate website that will execute when the victim loads the website. That malicious code can be inserted in several ways. Most popularly, it is either added to the end of a url or posted directly onto a page that displays user-generated content. In more technical terms, cross-site scripting is a client-side code injection attack. https://www.cloudflare.com/learning/security/threats/cross-site-scripting/

Impact

One-click Lemmy account compromise by social engineering users to click your posts URL.

Reproduction

Lemmy does not properly sanitize URI's on posts leading to cross-site scripting. You can see this working in action by clicking the "link" attached to this post on the web client.

To recreate, simply create a new post with the URL field set to: javascript:alert(1)//

Patching

Adding filtering to block javascript: and data: URI's seems like the easiest approach.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

It's not great from either side here, really. Precise guidelines for responsible disclosure vary, but none would ever say "go public after trying to contact the developers once and not hearing back for a week".

ZDI's policy says that after 5 days they attempt contact again. After another 5 days, they'll try any intermediaries or other ways of contacting they can think of up until 15 days after the initial contact. If at any point before that, the developers acknowledge the problem, ZDI gives up to 120 days to resolve the problem (from date of acknowledgement). They imply (without having a specific policy laid out) that more time will be given beyond that if it's reasonably needed.

All of OP's comments have been deleted so I don't know what they tried exactly, but it certainly seems like they didn't try hard enough. It also seems like Lemmy's devs may not have been responsive enough. Ideally, they would have a /.well-known/security.txt file with an email address that is actively monitored explicitly for security disclosures. Failing that, whatever public method they do have for contact that OP used, assuming it was a mode of communication that could reasonably be expected to be monitored, should have been monitored.

I actually don't think that GitHub is an appropriate place to be doing security vulnerability disclosures. GitHub might not be user-facing, but it's still public. You can maybe put something in there essentially as a way to tag "hey, be on the lookout for a real disclosure", but any actual details should not be on GitHub. In this case, if the email didn't work, OP should have posted something on GitHub saying "hey, major security flaw, please check your email for details". If OP really doesn't want to use GitHub, they should have requested someone else do that on their behalf—maybe via a sufficiently vague post on Lemmy. What's absolutely clear that they should not have done, is gone public with all the details based on a single attempt at emailing and one week of waiting.