module

Bassmaster Batch Arbitrary JavaScript Injection Remote Code Execution

Disclosed
Nov 1, 2016
Created
May 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.

Authors

mr_me [email protected]
Jarda Kotesovec

Platform

BSD,Linux

Architectures

x86, x64

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.