Vulnerability & Exploit Database

Back to search

Bassmaster Batch Arbitrary JavaScript Injection Remote Code Execution

This module exploits an un-authenticated code injection vulnerability in the bassmaster nodejs plugin for hapi. The vulnerability is within the batch endpoint and allows an attacker to dynamically execute JavaScript code on the server side using an eval. Note that the code uses a '\x2f' character so that we hit the match on the regex.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name

exploit/multi/http/bassmaster_js_injection

Authors

  • mr_me <mr_me [at] offensive-security.com>
  • Jarda Kotesovec

References

Targets

  • Bassmaster <= 1.5.1

Platforms

  • linux
  • bsd

Architectures

  • x86
  • x64

Reliability

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/http/bassmaster_js_injection msf exploit(bassmaster_js_injection) > show targets ...targets... msf exploit(bassmaster_js_injection) > set TARGET <target-id> msf exploit(bassmaster_js_injection) > show options ...show and set options... msf exploit(bassmaster_js_injection) > exploit