Stored XSS via uploading file in .md
format.
filename="poc.md"
<script>alert(1)</script>
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.md
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 URLs:https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=5508861cc308714a5e2bd926da5b9678
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.