module

Bassmaster Batch Arbitrary JavaScript Injection Remote Code Execution

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

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 mr_me@offensive-security.com
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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.