CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2016-0752

Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x and 4.1.x before 4.1.14.1, 4.2.x before 4.2.5.1, and 5.x before 5.0.0.beta1.1 allows remote attackers to read arbitrary files by leveraging an application's unrestricted use of the render method and providing a .. (dot dot) in a pathname.
Publish Date : 2016-02-15 Last Update Date : 2019-08-08
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
5.0
Confidentiality Impact Partial (There is considerable informational disclosure.)
Integrity Impact None (There is no impact to the integrity of the system)
Availability Impact None (There is no impact to the availability of the system.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access None
Vulnerability Type(s) Directory traversal
CWE ID 22

- Products Affected By CVE-2016-0752

# Product Type Vendor Product Version Update Edition Language
1 Application Rubyonrails Rails 4.0.0 - Version Details Vulnerabilities
2 Application Rubyonrails Rails 4.0.0 Beta Version Details Vulnerabilities
3 Application Rubyonrails Rails 4.0.0 RC1 Version Details Vulnerabilities
4 Application Rubyonrails Rails 4.0.0 RC2 Version Details Vulnerabilities
5 Application Rubyonrails Rails 4.0.1 RC1 Version Details Vulnerabilities
6 Application Rubyonrails Rails 4.0.1 RC2 Version Details Vulnerabilities
7 Application Rubyonrails Rails 4.0.1 RC3 Version Details Vulnerabilities
8 Application Rubyonrails Rails 4.0.1 RC4 Version Details Vulnerabilities
9 Application Rubyonrails Rails 4.0.1 - Version Details Vulnerabilities
10 Application Rubyonrails Rails 4.0.2 Version Details Vulnerabilities
11 Application Rubyonrails Rails 4.0.3 Version Details Vulnerabilities
12 Application Rubyonrails Rails 4.0.4 Version Details Vulnerabilities
13 Application Rubyonrails Rails 4.0.5 Version Details Vulnerabilities
14 Application Rubyonrails Rails 4.0.6 RC3 Version Details Vulnerabilities
15 Application Rubyonrails Rails 4.0.6 Version Details Vulnerabilities
16 Application Rubyonrails Rails 4.0.6 RC1 Version Details Vulnerabilities
17 Application Rubyonrails Rails 4.0.6 RC2 Version Details Vulnerabilities
18 Application Rubyonrails Rails 4.0.7 Version Details Vulnerabilities
19 Application Rubyonrails Rails 4.0.8 Version Details Vulnerabilities
20 Application Rubyonrails Rails 4.0.9 Version Details Vulnerabilities
21 Application Rubyonrails Rails 4.0.10 RC1 Version Details Vulnerabilities
22 Application Rubyonrails Rails 4.1.0 - Version Details Vulnerabilities
23 Application Rubyonrails Rails 4.1.0 Beta1 Version Details Vulnerabilities
24 Application Rubyonrails Rails 4.1.1 Version Details Vulnerabilities
25 Application Rubyonrails Rails 4.1.2 Version Details Vulnerabilities
26 Application Rubyonrails Rails 4.1.2 RC1 Version Details Vulnerabilities
27 Application Rubyonrails Rails 4.1.2 RC2 Version Details Vulnerabilities
28 Application Rubyonrails Rails 4.1.2 RC3 Version Details Vulnerabilities
29 Application Rubyonrails Rails 4.1.3 Version Details Vulnerabilities
30 Application Rubyonrails Rails 4.1.4 Version Details Vulnerabilities
31 Application Rubyonrails Rails 4.1.5 Version Details Vulnerabilities
32 Application Rubyonrails Rails 4.1.6 RC1 Version Details Vulnerabilities
33 Application Rubyonrails Rails 4.1.7 Version Details Vulnerabilities
34 Application Rubyonrails Rails 4.1.8 Version Details Vulnerabilities
35 Application Rubyonrails Rails 4.1.9 Version Details Vulnerabilities
36 Application Rubyonrails Rails 4.1.10 Version Details Vulnerabilities
37 Application Rubyonrails Rails 4.1.12 Version Details Vulnerabilities
38 Application Rubyonrails Rails 4.1.13 Version Details Vulnerabilities
39 Application Rubyonrails Rails 4.1.14 Version Details Vulnerabilities
40 Application Rubyonrails Rails 4.2.0 Beta1 Version Details Vulnerabilities
41 Application Rubyonrails Rails 4.2.1 Version Details Vulnerabilities
42 Application Rubyonrails Rails 4.2.2 Version Details Vulnerabilities
43 Application Rubyonrails Rails 4.2.3 Version Details Vulnerabilities
44 Application Rubyonrails Rails 4.2.3 RC1 Version Details Vulnerabilities
45 Application Rubyonrails Rails 4.2.4 RC1 Version Details Vulnerabilities
46 Application Rubyonrails Rails 4.2.4 Version Details Vulnerabilities
47 Application Rubyonrails Rails 4.2.5 Version Details Vulnerabilities
48 Application Rubyonrails Rails 4.2.5 RC1 Version Details Vulnerabilities
49 Application Rubyonrails Rails 4.2.5 RC2 Version Details Vulnerabilities
50 Application Rubyonrails Rails 5.0.0 Beta1 Version Details Vulnerabilities
51 Application Rubyonrails Ruby On Rails 3.2.22 Version Details Vulnerabilities
52 Application Rubyonrails Ruby On Rails 4.1.11 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Rubyonrails Rails 50
Rubyonrails Ruby On Rails 2

- References For CVE-2016-0752

http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178069.html
FEDORA FEDORA-2016-97002ad37b
http://rhn.redhat.com/errata/RHSA-2016-0296.html
REDHAT RHSA-2016:0296
https://groups.google.com/forum/message/raw?msg=ruby-security-ann/335P1DcLG00/JXcBnTtZEgAJ
MLIST [ruby-security-ann] 20160125 [CVE-2016-0752] Possible Information Leak Vulnerability in Action View
http://www.debian.org/security/2016/dsa-3464
DEBIAN DSA-3464
http://www.openwall.com/lists/oss-security/2016/01/25/13
MLIST [oss-security] 20160125 [CVE-2016-0752] Possible Information Leak Vulnerability in Action View
http://www.securityfocus.com/bid/81801
BID 81801 Ruby on Rails Action View CVE-2016-0752 Directory Traversal Vulnerability Release Date:2016-07-05
http://www.securitytracker.com/id/1034816
SECTRACK 1034816
http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00053.html
SUSE SUSE-SU-2016:1146
http://lists.opensuse.org/opensuse-updates/2016-02/msg00034.html
SUSE openSUSE-SU-2016:0363
http://lists.fedoraproject.org/pipermail/package-announce/2016-February/178044.html
FEDORA FEDORA-2016-fa0dec2360
http://lists.opensuse.org/opensuse-updates/2016-02/msg00043.html
SUSE openSUSE-SU-2016:0372
https://www.exploit-db.com/exploits/40561/
EXPLOIT-DB 40561

- Metasploit Modules Related To CVE-2016-0752

Ruby on Rails Dynamic Render File Upload Remote Code Execution
This module exploits a remote code execution vulnerability in the explicit render method when leveraging user parameters. This module has been tested across multiple versions of Ruby on Rails. The technique used by this module requires the specified endpoint to be using dynamic render paths, such as the following example: def show render params[:id] end Also, the vulnerable target will need a POST endpoint for the TempFile upload, this can literally be any endpoint. This module doesnt use the log inclusion method of exploitation due to it not being universal enough. Instead, a new code injection technique was found and used whereby an attacker can upload temporary image files against any POST endpoint and use them for the inclusion attack. Finally, you only get one shot at this if you are testing with the builtin rails server, use caution.
Module type : exploit Rank : excellent Platforms : Linux,BSD


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.