Skip to content
XSS Disclosed report Beginner

[dy-server2] - stored Cross-Site Scripting

tuo4n8 Follow

Originally disclosed on HackerOne

Medium 4.2 View original
  • Triaged in 4 hours
  • Fixed in 10 months
  • Disclosed after 11 months

I would like to report [Stored XSS] in [dy-server2] It allows to steal session cookies, deface web , execute anything code javascript

Module

module name: dy-server2 version: dy-server2 npm page: https://www.npmjs.com/package/dy-server2

Module Description

这是一款轻量级http服务器,可用于文件传输,前端项目预览。

Module Stats

Replace stats below with numbers from npm’s module page:

[1] weekly downloads : 16

Vulnerability

Vulnerability Description

Description about how the vulnerability was found and how it can be exploited, how it harms package users (data modification/lost, system access, other.

Steps To Reproduce:

  1. Instal package from npm : npm i -g dy-server2
  2. Create folder or file with name : <img src=x onerror=alert(1)>
  3. Start server : dy-server2 -p 8888
  4. Open web and code execute

Detailed steps to reproduce with all required references/steps/commands. If there is any exploit code or reference to the package source code this is the place where it should be put.

Patch

If you're able to provide a patch with the fix please post it in this section

Supporting Material/References:

State all technical information about the stack where the vulnerability was found

  • [OPERATING SYSTEM VERSION] : Ubuntu
  • [NODEJS VERSION] : 12.11.1
  • [NPM VERSION] : 6.11.3
  • [BROWSERS VERSIONS, IF APPLICABLE] : Firefox

Wrap up

Select Y or N for the following statements:

  • I contacted the maintainer to let them know: [Y/N] : N
  • I opened an issue in the related repository: [Y/N] : N

Hunter's comments and funny memes goes here

Impact

Stored XSS allows an attacker to embed a malicious script into a vulnerable page, which is then executed when a victim views the page.

Attachments

1.jpg
1.jpg From the original on HackerOne
2.jpg
2.jpg
3.jpg
3.jpg

The original report as published on HackerOne, by tuo4n8. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A medium-severity XSS bug in Other module, rated CVSS 4.2. HackerOne made it public on 14 January 2021.

About XSS

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by tuo4n8

View all

2 more disclosed reports, best first.

More from Node.js third-party modules

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.