HexBrain

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:

  1. create filename <img src=x onerror=alert(1)>
  2. start tianma-static
  3. 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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original