Lucene search

K
huntrChristynorl9D1ED6EA-F7A0-4561-9325-A2BABEF99C74
HistoryDec 20, 2022 - 2:45 p.m.

XSS by uploading svg files

2022-12-2014:45:35
christynorl
www.huntr.dev
20
xss
upload
svg
filter
content

0.001 Low

EPSS

Percentile

20.3%

Description

Hi there,
Your project has a function of uploading files.That is the section named “Resource”.But it does not filter the content of the uploaded files. If we upload an svg file containing malicious data and a user accesses it, xss will be triggered.

Video

Please visit my video link

https://drive.google.com/file/d/10GQODgA3evtTGYmdAivR9zYGxsarr1L0/view

Proof of Concept

1.Login as any user.

2.Click the module named “Resource”.

3.Upload a svg file and the contents of this file are as follows.

<x:script xmlns:x=“http://www.w3.org/1999/xhtml”>alert(document.domain)</x:script>

4.Access this svg file

0.001 Low

EPSS

Percentile

20.3%

Related for 9D1ED6EA-F7A0-4561-9325-A2BABEF99C74