Rapid7 Vulnerability & Exploit Database

Ruby On Rails Attributes Mass Assignment Scanner

Back to Search

Ruby On Rails Attributes Mass Assignment Scanner



This module scans Ruby On Rails sites for models with attributes not protected by attr_protected or attr_accessible. After attempting to assign a non-existent field, the default rails with active_record setup will raise an ActiveRecord::UnknownAttributeError exception, and reply with HTTP code 500.


  • Gregory Man <man.gregory@gmail.com>


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