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

Voyager

5512 readers
1 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 1 year ago
MODERATORS
 

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

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 33 points 1 year ago* (last edited 1 year 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.

[โ€“] [email protected] 10 points 1 year ago

Voyager communicates directly with the backend api of the lemmy server you're trying to connect to, so wouldn't have been effected by that attack, as it happened on their UI.

load more comments
view more: next โ€บ