## Product Vendor
https://github.com/xnx3/wangmarket
## Affected Product Code Repository:
wangmarket <= v6.4
## Vulnerability Type
Stored XSS
## Vulnerability Description
The /sits/uploadImage.do endpoint allows the uploading of XML files by default. Stored XSS can be achieved by uploading a malicious XML file.
## Vulnerability Proof
Upload an XML file with the following content:
Access the uploaded XML file. The specified JavaScript statement is executed, resulting in XSS.
## Code analysis
In the uploadImage function, the file extension is validated via the isAllowUpload function.
The isAllowUpload function allows the uploading of XML files by default.