Lucene search

K
huntrAjaysenr040A910E-E689-4FCB-9E4F-95206515D1BC
HistoryMar 13, 2022 - 11:59 a.m.

Stored XSS due to Unrestricted File Upload

2022-03-1311:59:44
ajaysenr
www.huntr.dev
14
stored xss
unrestricted file upload
.xsl format
showdoc.com.cn
social engineering
cookie theft
bug bounty

EPSS

0.001

Percentile

21.4%

Description

Stored XSS via uploading files in .xsl format.

Proof of Concept

filename="poc.xsl"

<a:script xmlns:a="http://www.w3.org/1999/xhtml">alert(1)</a:script>

Steps to Reproduce

1.Login into showdoc.com.cn.
2.Navigate to file library (https://www.showdoc.com.cn/attachment/index)
3.In the File Library page, click the Upload button and choose the poc.xsl file.
4.After uploading the file, click on the check button to open that file in a new tab.

XSS will trigger when the attachment is opened in a new tab.

POC URL: https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=73b27c6f38a6d5daed4df8e9d3b86185

Impact

An attacker can perform social engineering on users by redirecting them from a real website to a fake one. a hacker can steal their cookies etc.

EPSS

0.001

Percentile

21.4%

Related for 040A910E-E689-4FCB-9E4F-95206515D1BC