Exploit database

Vulnerability

CVE-2013-0333

Vulnerability details

Score
7.5
Severity
high

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:N/C:P/I:P/A:P

Description

lib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly convert JSON data to YAML data for processing by a YAML parser, which allows remote attackers to execute arbitrary code, conduct SQL injection attacks, or bypass authentication via crafted data that triggers unsafe decoding, a different vulnerability than CVE-2013-0156.

CVE Program

Exploit source choices

4 sources
Ruby on Rails JSON Processor YAML Deserialization Code Execution
MSF-multi--http--rails_json_yaml_code_execMetasploitRuby / remote

This module exploits a remote code execution vulnerability in the JSON request processor of the Ruby on Rails application framework. This vulnerability allows an attacker to instantiate a remote object, which in turn can be used to execute any ruby code remotely in the context of the application. This vulnerability is very similar to CVE-2013-0156. This module has been tested successfully on RoR 3.0.9, 3.0.19, and 2.3.15. The technique used by this module requires the target to be running a fairly recent version of Ruby 1.9 (since 2011 or so). Applications using Ruby 1.8 may still be exploitable using the init_with() method, but this has not been demonstrated.

2013-01-28rails_json_yaml_code_exec.rb
heroku/heroku-cve-2013-0333
GH-0ed8816910f5257ad95f58f152b880cdGitHubUnofficial GitHub source

heroku/heroku-cve-2013-0333 source repository

2013-01-294 files · 2 stars
heroku/heroku-cve-2013-0156
GH-c38befefdba69197c80215e71dcfe7a8GitHubUnofficial GitHub source

Inspect all of your heroku apps to see if they are running a vulnerable version of Rails

2013-01-114 files · 1 stars