Stored XSS viva .properties file upload in star7th/showdoc
Mar 14th 2022
The application allows .properties files to upload which lead to stored XSS
Proof of Concept
1.First, open your text file/notepad and paste the below payload and save it as XSS.properties:
2.Then go to https://www.showdoc.com.cn/ and login with your account.
3.Afther that navigate to file library (https://www.showdoc.com.cn/attachment/index)
4.In the File Library page, click the Upload button and choose the XSS.properties
5.After uploading the file, click on the check button to open that file in a new tab.
This allows attackers to execute malicious scripts in the user's browser and it can lead to session hijacking, sensitive data exposure, and worse.