Lucene search

K
huntrP0casFA546B57-BC15-4705-824E-9474B616F628
HistoryJan 23, 2022 - 3:24 a.m.

Cross-site Scripting (XSS) - Stored in vanessa219/vditor

2022-01-2303:24:49
p0cas
www.huntr.dev
13
cross-site scripting
vanessa219/vditor
xss attack
unencoded double-quotes
markdown syntax
malicious scripts
browser vulnerability

EPSS

0.001

Percentile

21.4%

Description

The Vanessa219/vditor is a markdown editor supported by browsers. When a user creates a link using the markdown syntax, the server does not URL-encode the double-quotes, so the user can escape the href attribute and trigger XSS using the on* attribute.

Proof of Concept

XSS PoC : [xss](https://google.com/"//onmousemove="alert(document.domain))
> I can insert an onerror. But I can't log in without a Chinese phone number, so I can't test

1. Open the https://ld246.com/guide/markdown
2. Enter the XSS PoC (Strangely, it doesn't insert at once, so I have to try inserting several times)
3. When the user hovers the mouse over the link, XSS is triggered via a mouse event.

Video : https://www.youtube.com/watch?v=pKQMbrezdCs

Impact

Through this vulnerability, an attacker is capable to execute malicious scripts.

EPSS

0.001

Percentile

21.4%

Related for FA546B57-BC15-4705-824E-9474B616F628