Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 201401-22 ] Active Record: SQL injection
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Advocate
Advocate


Joined: 12 May 2004
Posts: 2226

PostPosted: Sat Jan 25, 2014 4:18 am    Post subject: [ GLSA 201401-22 ] Active Record: SQL injection Reply with quote

Gentoo Linux Security Advisory

Title: Active Record: SQL injection (GLSA 201401-22)
Severity: low
Exploitable: remote
Date: January 21, 2014
Bug(s): #449826
ID: 201401-22

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.


Affected Packages

Package: dev-ruby/activerecord
Vulnerable: < 2.3.14-r1
Unaffected: >= 2.3.14-r1
Architectures: All supported architectures


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:
Code:
# emerge --sync
      # emerge --ask --oneshot --verbose ">=dev-ruby/activerecord-2.3.14-r1"
   


References

CVE-2012-6496


Last edited by GLSA on Mon Feb 10, 2014 4:32 am; edited 2 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum