GLSA-201401-22 : Active Record: SQL injection

high Nessus Plugin ID 72077

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-201401-22 (Active Record: SQL injection)

An Active Record method parameter can mistakenly be used as a scope.
Impact :

A remote attacker could use specially crafted input to execute arbitrary SQL statements.
Workaround :

The vulnerability may be mitigated by converting the input to an expected value. This is accomplished by changing instances of ‘Post.find_by_id(params[:id])’ in code using Active Record to ‘Post.find_by_id(params[:id].to_s)’

Solution

All Active Record users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-ruby/activerecord-2.3.14-r1'

See Also

https://security.gentoo.org/glsa/201401-22

Plugin Details

Severity: High

ID: 72077

File Name: gentoo_GLSA-201401-22.nasl

Version: 1.7

Type: local

Published: 1/22/2014

Updated: 1/6/2021

Supported Sensors: 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:gentoo:linux:activerecord, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 1/21/2014

Reference Information

CVE: CVE-2012-6496

BID: 57084

GLSA: 201401-22