module

Ruby on Rails Web Console (v2) Whitelist Bypass Code Execution

Disclosed
Jun 16, 2015
Created
May 30, 2018

Description

This module exploits an IP whitelist bypass vulnerability in the developer
web console included with Ruby on Rails 4.0.x and 4.1.x. This module will also
achieve code execution on Rails 4.2.x if the attack is launched from a
whitelisted IP range.

Platform

Ruby

Architectures

ruby

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/rails_web_console_v2_code_exec
msf exploit(rails_web_console_v2_code_exec) > show targets
...targets...
msf exploit(rails_web_console_v2_code_exec) > set TARGET < target-id >
msf exploit(rails_web_console_v2_code_exec) > show options
...show and set options...
msf exploit(rails_web_console_v2_code_exec) > 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.