module

Ruby on Rails Action View MIME Memory Exhaustion

Disclosed
Dec 4, 2013
Created
May 30, 2018

Description

This module exploits a Denial of Service (DoS) condition in Action View that requires
a controller action. By sending a specially crafted content-type header to a Rails
application, it is possible for it to store the invalid MIME type, and may eventually
consume all memory if enough invalid MIMEs are given.

Versions 3.0.0 and other later versions are affected, fixed in 4.0.2 and 3.2.16.

Authors

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 auxiliary/dos/http/rails_action_view
msf auxiliary(rails_action_view) > show actions
...actions...
msf auxiliary(rails_action_view) > set ACTION < action-name >
msf auxiliary(rails_action_view) > show options
...show and set options...
msf auxiliary(rails_action_view) > 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.