Node.js third-party modules · Report #403692
[tianma-static] Stored xss on filename
Validstatus
mediumseverity
6upvotes
2 Nov 2018disclosed
How it was found
I would like to report stored xss in tianma-static It allows anyone to execute arbitary javascript for doing anything.
Module
module name: tianma-static
version: 1.0.4
npm page: https://www.npmjs.com/package/tianma-static
Module Description
Provide a static file service.
Vulnerability
Vulnerability Description
it was possible to embed malicious js code in filename there was no sanitization performed.
Steps To Reproduce:
- create filename
<img src=x onerror=alert(1)> - start tianma-static
- xss fired
F340845
Wrap up
- I contacted the maintainer to let them know: N
- I opened an issue in the related repository: N
Impact
It allows anyone to execute arbitary javascript for doing anything.