Rapid7 Vulnerability & Exploit Database

Ruby on Rails Action View MIME Memory Exhaustion

Back to Search

Ruby on Rails Action View MIME Memory Exhaustion

Disclosed
12/04/2013
Created
05/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.

Author(s)

  • Toby Hsieh
  • joev <joev@metasploit.com>
  • sinn3r <sinn3r@metasploit.com>

Development

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 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;