Lucene search

K
huntrRaiders07864772CEB7-1594-414D-9B20-5B82029DA7B6
HistoryDec 25, 2022 - 9:13 a.m.

Stored XSS in notes Title

2022-12-2509:13:10
raiders0786
www.huntr.dev
11
stored xss
html injection
note map
vulnerability
proof of concept
xss reflected

EPSS

0.001

Percentile

34.5%

Description

Stored XSS Vulnerability was found while a user creates a new Note & Enter the Name for the Note.
The Title of the Note gets directly rendered at “Note Map” Functionality which is leading to HTML injection and Cross site scripting stored & reflected every time the user opens the note map.

Proof of Concept

1. download the latest version on any distro, for PoC purpose I have downloaded version 0.57.5 for windows [link](https://github.com/zadam/trilium/releases/download/v0.58.0-beta/trilium-windows-x64-0.58.0-beta.zip)

2. Now, run the trilium.exe binary application.

3. Now create a new note

4. name the new note as "&gt;<img src />

5. Now visit the "Note Map" functionality & click on the red dot or just wait for the alert to be prompted and XSS to be reflected as it's stored at the point.

6. Now the Alert box will pop up everytime as it's stored.


EPSS

0.001

Percentile

34.5%

Related for 4772CEB7-1594-414D-9B20-5B82029DA7B6