Gentoo Archives: gentoo-commits

From: "Chris Reffett (creffett)" <creffett@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/security/en/glsa: glsa-201401-22.xml
Date: Tue, 21 Jan 2014 20:23:00
Message-Id: 20140121202253.377502004C@flycatcher.gentoo.org
1 creffett 14/01/21 20:22:53
2
3 Added: glsa-201401-22.xml
4 Log:
5 GLSA 201401-22
6
7 Revision Changes Path
8 1.1 xml/htdocs/security/en/glsa/glsa-201401-22.xml
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/security/en/glsa/glsa-201401-22.xml?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/security/en/glsa/glsa-201401-22.xml?rev=1.1&content-type=text/plain
12
13 Index: glsa-201401-22.xml
14 ===================================================================
15 <?xml version="1.0" encoding="UTF-8"?>
16 <?xml-stylesheet href="/xsl/glsa.xsl" type="text/xsl"?>
17 <?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
18 <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
19 <glsa id="201401-22">
20 <title>Active Record: SQL injection</title>
21 <synopsis>A vulnerability in Active Record could allow a remote attacker to
22 inject SQL commands.
23 </synopsis>
24 <product type="ebuild">activerecord</product>
25 <announced>January 21, 2014</announced>
26 <revised>January 21, 2014: 1</revised>
27 <bug>449826</bug>
28 <access>remote</access>
29 <affected>
30 <package name="dev-ruby/activerecord" auto="yes" arch="*">
31 <unaffected range="ge">2.3.14-r1</unaffected>
32 <vulnerable range="lt">2.3.14-r1</vulnerable>
33 </package>
34 </affected>
35 <background>
36 <p>Active Record is a Ruby gem that allows database entries to be
37 manipulated as objects.
38 </p>
39 </background>
40 <description>
41 <p>An Active Record method parameter can mistakenly be used as a scope.</p>
42 </description>
43 <impact type="low">
44 <p>A remote attacker could use specially crafted input to execute arbitrary
45 SQL statements.
46 </p>
47 </impact>
48 <workaround>
49 <p>The vulnerability may be mitigated by converting the input to an
50 expected value. This is accomplished by changing instances of
51 ‘Post.find_by_id(params[:id])’ in code using Active Record to
52 ‘Post.find_by_id(params[:id].to_s)’
53 </p>
54 </workaround>
55 <resolution>
56 <p>All Active Record users should upgrade to the latest version:</p>
57
58 <code>
59 # emerge --sync
60 # emerge --ask --oneshot --verbose "&gt;=dev-ruby/activerecord-2.3.14-r1"
61 </code>
62
63 </resolution>
64 <references>
65 <uri link="http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-6496">CVE-2012-6496</uri>
66 </references>
67 <metadata tag="requester" timestamp="Wed, 11 Dec 2013 02:08:41 +0000">
68 creffett
69 </metadata>
70 <metadata tag="submitter" timestamp="Tue, 21 Jan 2014 20:21:31 +0000">
71 creffett
72 </metadata>
73 </glsa>