Rapid7 Vulnerability & Exploit Database

Bassmaster Batch Arbitrary JavaScript Injection Remote Code Execution

Back to Search

Bassmaster Batch Arbitrary JavaScript Injection Remote Code Execution

Disclosed
11/01/2016
Created
05/30/2018

Description

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.

Author(s)

  • mr_me <mr_me@offensive-security.com>
  • Jarda Kotesovec

Platform

BSD,Linux

Architectures

x86, x64

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;