Exploit database

Vulnerability

CVE-2013-0156

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

active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, and 3.2.x before 3.2.11 does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging Action Pack support for (1) YAML type conversion or (2) Symbol type conversion.

CVE Program

Showing saved CVE details. Refresh is temporarily unavailable.

Exploit source choices

5 sources
Ruby on Rails Known Secret Session Cookie Remote Code Execution
MSF-multi--http--rails_secret_deserializationMetasploitRuby / remote

This module implements Remote Command Execution on Ruby on Rails applications. Prerequisite is knowledge of the "secret_token" (Rails 2/3) or "secret_key_base" (Rails 4). The values for those can be usually found in the file "RAILS_ROOT/config/initializers/secret_token.rb". The module achieves RCE by deserialization of a crafted Ruby Object.

2013-04-11rails_secret_deserialization.rb
Ruby on Rails XML Processor YAML Deserialization Code Execution
MSF-multi--http--rails_xml_yaml_code_execMetasploitRuby / remote

This module exploits a remote code execution vulnerability in the XML 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 module has been tested across multiple versions of RoR 3.x and RoR 2.x 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-07rails_xml_yaml_code_exec.rb
bsodmike/rails-exploit-cve-2013-0156
GH-08cc8a863e12a0454a898a7a9fa4ff09GitHubUnofficial GitHub source

Bootstrapped Rails 3.2.10 to test the remote code exploit CVE-2013-0156

2013-01-1226 files · 5 stars