Executive Summary



This Alert is flagged as TOP 25 Common Weakness Enumeration from CWE/SANS. For more information, you can read this.
Summary
Title Active Record: SQL injection
Informations
Name GLSA-201401-22 First vendor Publication 2014-01-21
Vendor Gentoo Last vendor Modification 2014-01-21
Severity (Vendor) Low Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A vulnerability in Active Record could allow a remote attacker to inject SQL commands.

Background

Active Record is a Ruby gem that allows database entries to be manipulated as objects.

Description

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)'

Resolution

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

References

[ 1 ] CVE-2012-6496 : http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-6496

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-201401-22.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-201401-22.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-89 Improper Sanitization of Special Elements used in an SQL Command ('SQL Injection') (CWE/SANS Top 25)

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 147
Application 12

Snort® IPS/IDS

Date Description
2014-01-10 Ruby on Rails authlogic session cookie SQL injection attempt
RuleID : 25285 - Revision : 3 - Type : SERVER-OTHER

Nessus® Vulnerability Scanner

Date Description
2014-06-13 Name : The remote openSUSE host is missing a security update.
File : openSUSE-2013-106.nasl - Type : ACT_GATHER_INFO
2014-01-22 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-201401-22.nasl - Type : ACT_GATHER_INFO
2013-03-10 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2013-0544.nasl - Type : ACT_GATHER_INFO
2013-01-24 Name : The remote Red Hat host is missing one or more security updates.
File : redhat-RHSA-2013-0154.nasl - Type : ACT_GATHER_INFO
2013-01-15 Name : The remote Fedora host is missing a security update.
File : fedora_2013-0185.nasl - Type : ACT_GATHER_INFO
2013-01-15 Name : The remote Fedora host is missing a security update.
File : fedora_2013-0244.nasl - Type : ACT_GATHER_INFO
2013-01-15 Name : The remote Fedora host is missing a security update.
File : fedora_2013-0245.nasl - Type : ACT_GATHER_INFO
2013-01-09 Name : The remote FreeBSD host is missing a security-related update.
File : freebsd_pkg_b4051b5258fa11e2853b00262d5ed8ee.nasl - Type : ACT_GATHER_INFO
2013-01-07 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-2597.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
1
Date Informations
2014-02-17 11:38:04
  • Multiple Updates
2014-01-22 00:18:27
  • First insertion