<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: Ruby on Rails security update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2013:0155</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2013-01-10T22:30:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2013-01-10T22:30:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2013-01-10T22:30:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2013-01-10T22:40:01Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated rubygem-actionpack, rubygem-activesupport, and rubygem-activerecord
packages that fix multiple security issues are now available for Red Hat
CloudForms.

The Red Hat Security Response Team has rated this update as having critical
security impact. Common Vulnerability Scoring System (CVSS) base scores,
which give detailed severity ratings, are available for each vulnerability
from the CVE links in the References section.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
Ruby on Rails is a model–view–controller (MVC) framework for web
application development. Action Pack implements the controller and the view
components. Active Record implements object-relational mapping for
accessing database entries using objects. Active Support provides support
and utility classes used by the Ruby on Rails framework.

Multiple flaws were found in the way Ruby on Rails performed XML parameter
parsing in HTTP requests. A remote attacker could use these flaws to
execute arbitrary code with the privileges of a Ruby on Rails application,
perform SQL injection attacks, or bypass the authentication using a
specially-created HTTP request. (CVE-2013-0156)

Red Hat is aware that a public exploit for the CVE-2013-0156 issues is
available that allows remote code execution in applications using Ruby on
Rails.

A flaw was found in the way Ruby on Rails performed JSON parameter parsing.
If a Ruby on Rails application passed JSON parameters to Active Record, it
could result in the generation of unexpected SQL queries. A remote attacker
could possibly use this flaw to manipulate SQL queries executed by the
application. (CVE-2013-0155)

A flaw was found in the way rubygem-activerecord dynamic finders extracted
options from method parameters. A remote attacker could possibly use this
flaw to perform SQL injection attacks against applications using the Active
Record dynamic finder methods. (CVE-2012-6496)

Users are advised to upgrade to these updated rubygem-actionpack,
rubygem-activesupport, and rubygem-activerecord packages, which resolve
these issues. Users of CloudForms Cloud Engine must run &quot;aeolus-services
restart&quot; and users of CloudForms System Engine must run &quot;katello-service
restart&quot; for this update to take effect.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2013 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Critical</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2013-0155.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2013-0155.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#critical</URL>
       <Description>https://access.redhat.com/security/updates/classification/#critical</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/knowledge/solutions/290903</URL>
       <Description>https://access.redhat.com/knowledge/solutions/290903</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Red Hat CloudForms">
      <Branch Type="Product Name" Name="Cloud Engine for RHEL 6 Server">
        <FullProductName ProductID="6Server-CloudEngine">Cloud Engine for RHEL 6 Server</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="System Engine for RHEL 6 Server">
        <FullProductName ProductID="6Server-SystemEngine">System Engine for RHEL 6 Server</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="rubygem-actionpack-3.0.10-11.el6cf">
      <FullProductName ProductID="rubygem-actionpack-3.0.10-11.el6cf">rubygem-actionpack-3.0.10-11.el6cf.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rubygem-activerecord-3.0.10-8.el6cf">
      <FullProductName ProductID="rubygem-activerecord-3.0.10-8.el6cf">rubygem-activerecord-3.0.10-8.el6cf.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rubygem-activesupport-3.0.10-5.el6cf">
      <FullProductName ProductID="rubygem-activesupport-3.0.10-5.el6cf">rubygem-activesupport-3.0.10-5.el6cf.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="rubygem-actionpack-3.0.10-11.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-CloudEngine">
      <FullProductName ProductID="6Server-CloudEngine:rubygem-actionpack-3.0.10-11.el6cf">rubygem-actionpack-3.0.10-11.el6cf as a component of Cloud Engine for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="rubygem-activerecord-3.0.10-8.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-CloudEngine">
      <FullProductName ProductID="6Server-CloudEngine:rubygem-activerecord-3.0.10-8.el6cf">rubygem-activerecord-3.0.10-8.el6cf as a component of Cloud Engine for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="rubygem-activesupport-3.0.10-5.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-CloudEngine">
      <FullProductName ProductID="6Server-CloudEngine:rubygem-activesupport-3.0.10-5.el6cf">rubygem-activesupport-3.0.10-5.el6cf as a component of Cloud Engine for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="rubygem-actionpack-3.0.10-11.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-SystemEngine">
      <FullProductName ProductID="6Server-SystemEngine:rubygem-actionpack-3.0.10-11.el6cf">rubygem-actionpack-3.0.10-11.el6cf as a component of System Engine for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="rubygem-activerecord-3.0.10-8.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-SystemEngine">
      <FullProductName ProductID="6Server-SystemEngine:rubygem-activerecord-3.0.10-8.el6cf">rubygem-activerecord-3.0.10-8.el6cf as a component of System Engine for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="rubygem-activesupport-3.0.10-5.el6cf" RelationType="Default Component Of" RelatesToProductReference="6Server-SystemEngine">
      <FullProductName ProductID="6Server-SystemEngine:rubygem-activesupport-3.0.10-5.el6cf">rubygem-activesupport-3.0.10-5.el6cf as a component of System Engine for RHEL 6 Server</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the way rubygem-activerecord dynamic finders extracted options from method parameters. A remote attacker could possibly use this flaw to perform SQL injection attacks against applications using the Active Record dynamic finder methods. </Note></Notes>
    <DiscoveryDate>2012-12-21T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-12-21T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-6496</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>6Server-CloudEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>6.4</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:N/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0155.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html</URL>
        <Description>http://phenoelit.org/blog/archives/2012/12/21/let_me_github_that_for_you/index.html</Description>
      </Reference>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-6496.html</URL>
        <Description>CVE-2012-6496</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the way Ruby on Rails performed JSON parameter parsing. If a Ruby on Rails application passed JSON parameters to Active Record, it could result in the generation of unexpected SQL queries. A remote attacker could possibly use this flaw to manipulate SQL queries executed by the application. </Note></Notes>
    <DiscoveryDate>2013-01-07T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2013-01-08T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2013-0155</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>6Server-CloudEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Important</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>6.4</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:P/I:P/A:N</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0155.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2013-0155.html</URL>
        <Description>CVE-2013-0155</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=892866</URL>
        <Description>bz#892866: CVE-2013-0155 rubygem-actionpack, rubygem-activerecord: Unsafe Query Generation Risk in Ruby on Rails</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="3" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Multiple flaws were found in the way Ruby on Rails performed XML parameter parsing in HTTP requests. A remote attacker could use these flaws to execute arbitrary code with the privileges of a Ruby on Rails application, perform SQL injection attacks, or bypass the authentication using a specially-created HTTP request. 
Red Hat is aware that a public exploit for the CVE-2013-0156 issues is available that allows remote code execution in applications using Ruby on Rails.</Note></Notes>
    <DiscoveryDate>2013-01-07T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2013-01-08T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2013-0156</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>6Server-CloudEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-CloudEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-actionpack-3.0.10-11.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activerecord-3.0.10-8.el6cf</ProductID>
      <ProductID>6Server-SystemEngine:rubygem-activesupport-3.0.10-5.el6cf</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Critical</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>7.5</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2013-0155.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2013-0156.html</URL>
        <Description>CVE-2013-0156</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=892870</URL>
        <Description>bz#892870: CVE-2013-0156 rubygem-activesupport: Multiple vulnerabilities in parameter parsing in ActionPack</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
