Debian DSA-3509-1 : rails - security update

high Nessus Plugin ID 89791

Synopsis

The remote Debian host is missing a security-related update.

Description

Two vulnerabilities have been discovered in Rails, a web application framework written in Ruby. Both vulnerabilities affect Action Pack, which handles the web requests for Rails.

- CVE-2016-2097 Crafted requests to Action View, one of the components of Action Pack, might result in rendering files from arbitrary locations, including files beyond the application's view directory. This vulnerability is the result of an incomplete fix of CVE-2016-0752. This bug was found by Jyoti Singh and Tobias Kraze from Makandra.

- CVE-2016-2098 If a web applications does not properly sanitize user inputs, an attacker might control the arguments of the render method in a controller or a view, resulting in the possibility of executing arbitrary ruby code. This bug was found by Tobias Kraze from Makandra and joernchen of Phenoelit.

Solution

Upgrade the rails packages.

For the stable distribution (jessie), these problems have been fixed in version 2:4.1.8-1+deb8u2.

See Also

https://security-tracker.debian.org/tracker/CVE-2016-2097

https://security-tracker.debian.org/tracker/CVE-2016-0752

https://security-tracker.debian.org/tracker/CVE-2016-2098

https://packages.debian.org/source/jessie/rails

https://www.debian.org/security/2016/dsa-3509

Plugin Details

Severity: High

ID: 89791

File Name: debian_DSA-3509.nasl

Version: 2.15

Type: local

Agent: unix

Published: 3/10/2016

Updated: 1/11/2021

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3

Risk Factor: High

Base Score: 7.3

Temporal Score: 6.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:8.0, p-cpe:/a:debian:debian_linux:rails

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/9/2016

Exploitable With

CANVAS (CANVAS)

Core Impact

Metasploit (Ruby on Rails ActionPack Inline ERB Code Execution)

Reference Information

CVE: CVE-2016-2097, CVE-2016-2098

DSA: 3509