HexBrain

Node.js third-party modules · Report #296377

[redis-commander] Reflected SWF XSS via vulnerable "clipboard.swf" component

Validstatus
lowseverity
4upvotes
23 Jan 2018disclosed

Summary

An injection in the highlighterId parameter of the clipboard.swf component can be leveraged in a reflected XSS on hosts serving Redis Commander.

How it was found

Hi,

An injection in the highlighterId parameter of the clipboard.swf component can be used to reflect JavaScript in the context of hosts running Redis Commander.

Module specification

Verified conditions

  • Test server: Ubuntu 16.04 LTS
  • Browser version: Firefox 57.0 (64-bit)
  • Flash version: 27.0.0.187

Proof of concept

Please globally install the redis-commander package and run redis-commander -p 80 to start serving the Commander interface.

To reproduce this vulnerability, please access the below URL in a browser with Adobe Flash enabled and click on the content which appears.

http://instance/jstree/_docs/syntax/clipboard.swf?highlighterId=\%22))}%20catch(e)%20{alert(document.domain);}//

{F245319}

Thanks,

Yasin

Impact

An adversary can leverage this vulnerability in a crafted request that, if issued by another Redis Commander user, will cause arbitrary JavaScript code to execute within the target's browser in the context of their session.

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