Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Firefox XSS

Disclosed
N/A
Created
May 30, 2018

Description

This module runs the provided SCRIPT as javascript in the
origin of the provided URL. It works by navigating to a hidden
ChromeWindow to the URL, then injecting the SCRIPT with Function().
The callback "send(result)" is used to send data back to the listener.

Platform

Firefox

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 post/firefox/gather/xss
msf post(xss) > show actions
...actions...
msf post(xss) > set ACTION < action-name >
msf post(xss) > show options
...show and set options...
msf post(xss) > run

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.