this post was submitted on 10 Jul 2023
18 points (100.0% liked)

Voyager

6480 readers
5 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! ๐Ÿ‘‡

Number of sponsors badge

๐Ÿ’™

founded 2 years ago
MODERATORS
 

Hi guys does anyone know if voyager is suceptible to the XSS Attack on lemmy.world?

top 1 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 19 points 2 years ago* (last edited 2 years ago)

Voyager should NOT be vulnerable, we use a different Markdown parser.


(Note: Speculation below...)

The markdown parser in lemmy-ui is building DOM nodes with strings, which can be vulnerable to exploits like this.

In contrast, Voyager uses Remark for markdown parsing, specifically a subset of remark-gfm

The only extension on these standard, widely used and tested markdown components is for community links to work (like [email protected]) since they're Lemmy-specific. You can see that code here. Note that we parse into an abstract syntax tree, not HTML strings. Parsing into an abstract syntax tree is much more resistant to this kind of exploit.