Debian DSA-2597-1 : rails - input validation error

high Nessus Plugin ID 63382

Synopsis

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

Description

joernchen of Phenoelit discovered that rails, an MVC ruby based framework geared for web application development, is not properly treating user-supplied input to 'find_by_*' methods. Depending on how the ruby on rails application is using these methods, this allows an attacker to perform SQL injection attacks, e.g., to bypass authentication if Authlogic is used and the session secret token is known.

Solution

Upgrade the rails/ruby-activerecord-2.3 packages.

For the stable distribution (squeeze), this problem has been fixed in version 2.3.5-1.2+squeeze4.

See Also

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

https://www.debian.org/security/2013/dsa-2597

Plugin Details

Severity: High

ID: 63382

File Name: debian_DSA-2597.nasl

Version: 1.11

Type: local

Agent: unix

Published: 1/7/2013

Updated: 1/11/2021

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

Vulnerability Information

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

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

Exploit Ease: No known exploits are available

Patch Publication Date: 1/4/2013

Reference Information

CVE: CVE-2012-6496, CVE-2012-6497

BID: 57084

DSA: 2597