Michael Koziarski reports: Incomplete fix to CVE-2013-0155 (Unsafe Query Generation Risk) The prior fix to CVE-2013-0155 was incomplete and the use of common 3rd party libraries can accidentally circumvent the protection. This vulnerability has been assigned the CVE identifier CVE-2013-6417. Versions Affected: All. Not affected: None Fixed Versions: 4.0.2 & 3.2.16 Impact ------ Due to the way that Rack::Request and Rails::Request interact, it is possible for a 3rd party or custom rack middleware to parse the parameters insecurely and store them in the same key that Rails uses for its own parameters. In the event that happens the application will receive unsafe parameters and could be vulnerable to the earlier vulnerability. All users running an affected release should either upgrade or use one of the work arounds immediately. Releases -------- The 4.0.2 & 3.2.16 releases are available at the normal locations. Workarounds ----------- To work around this issue you need to audit your middleware chain and ensure that each of the libraries in use does not create an instance of Rack::Request. Patches ------- To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset. * 4-0-rack-params.patch - Patch for 4.0 series * 3-2-rack-params.patch - Patch for 3.2 series Please note that only the 4.0.x and 3.2.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases. Credits ------- Thanks to Sudhir Rao for reporting the issue to us and to James Tucker for assisting with the fix.
Created attachment 831320 [details] CVE-2013-6417-3-2-rack-params.patch
Created attachment 831321 [details] CVE-2013-6417-4-0-rack-params.patch
CVE-2013-0155 was tracked via bug 892866.
Fixed upstream in 3.2.16 and 4.0.2: http://weblog.rubyonrails.org/2013/12/3/Rails_3_2_16_and_4_0_2_have_been_released/ https://groups.google.com/forum/#!topic/ruby-security-ann/niK4drpSHT4 http://seclists.org/oss-sec/2013/q4/403 Upstream commits (3.2 and 4.0): https://github.com/rails/rails/commit/d5a4095ca5725d5eebcce153d7d0738375146cef https://github.com/rails/rails/commit/ed065b2f693e1f9ef6aa6347f53e5258b1acb1b8
This issue has been addressed in following products: Red Hat Software Collections for RHEL-6 Via RHSA-2013:1794 https://rhn.redhat.com/errata/RHSA-2013-1794.html
This issue has been addressed in following products: OpenStack 3 for RHEL 6 Via RHSA-2014:0008 https://rhn.redhat.com/errata/RHSA-2014-0008.html
Acknowledgment: Red Hat would like to thank the Ruby on Rails project for reporting this issue. The Ruby on Rails project acknowledges Sudhir Rao as the original reporter.
This issue has been addressed in following products: CloudForms Management Engine 5.x Via RHSA-2014:0469 https://rhn.redhat.com/errata/RHSA-2014-0469.html