Bug 903662 - (CVE-2014-7818) VUL-0: CVE-2014-7818: rubygem-actionpack-3_2: Arbitrary file existence disclosure in Action Pack
(CVE-2014-7818)
VUL-0: CVE-2014-7818: rubygem-actionpack-3_2: Arbitrary file existence disclo...
Status: RESOLVED FIXED
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Minor
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/110364/
maint:released:sle11-sp2:59767
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-03 11:46 UTC by Johannes Segitz
Modified: 2015-02-13 14:46 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch for the 3.1.x release series (2.97 KB, patch)
2014-11-03 11:47 UTC, Johannes Segitz
Details | Diff
Patch for the 3.2.x release series (3.01 KB, patch)
2014-11-03 11:47 UTC, Johannes Segitz
Details | Diff
Patch for the 4.0.x release series (3.26 KB, patch)
2014-11-03 11:47 UTC, Johannes Segitz
Details | Diff
Patch for the 4.1.x release series (3.26 KB, patch)
2014-11-03 11:47 UTC, Johannes Segitz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Segitz 2014-11-03 11:46:11 UTC
There is an information leak vulnerability in Action Pack. This vulnerability
has been assigned the CVE identifier CVE-2014-7818.

Versions Affected:  >= 3.0.0
Not affected:       <= 3.0.0
Fixed Versions:     3.2.20, 4.0.11, 4.1.7, 4.2.0.beta3

Impact
------
Specially crafted requests can be used to determine whether a file exists on the filesystem that is outside the Rails application's root directory.  The files will not be served, but
attackers can determine whether or not the file exists.

This only impacts Rails applications that enable static file serving at
runtime.  For example, the application's production configuration will say:

  config.serve_static_assets = true

All users running an affected release should either upgrade or use one of the work arounds immediately.

Releases
--------
The 3.2.20, 4.0.11, 4.1.7 & 4.2.0.beta3 releases are available at the normal locations.

Workarounds
-----------
To work around this issue, set config.serve_static_assets = false in an initializer.  This work around will not be possible in all hosting environments and upgrading is advised.

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.

* 3-1-sec-static-files.patch - Patch for the 3.1.x release series
* 3-2-sec-static-files.patch - Patch for the 3.2.x release series
* 4-0-sec-static-files.patch - Patch for the 4.0.x release series
* 4-1-sec-static-files.patch - Patch for the 4.1.x release series

Please note that only the 3.2.x, 4.0.x & 4.1.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
-------

This vulnerability was reported by multiple researchers working independently.  Thanks to each of them for reporting the issue to us and verifying the fixes.

* Eaden McKee
* Dennis Hackethal & Christian Hansen of Crowdcurity
* Juan C. Müller & Mike McClurg of Greenhouse.io
* Alex Ianus of Coinbase


References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-7818
http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-7818.html
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-7818
Comment 1 Johannes Segitz 2014-11-03 11:47:06 UTC
Created attachment 612172 [details]
Patch for the 3.1.x release series
Comment 2 Johannes Segitz 2014-11-03 11:47:23 UTC
Created attachment 612173 [details]
Patch for the 3.2.x release series
Comment 3 Johannes Segitz 2014-11-03 11:47:39 UTC
Created attachment 612174 [details]
Patch for the 4.0.x release series
Comment 4 Johannes Segitz 2014-11-03 11:47:55 UTC
Created attachment 612175 [details]
Patch for the 4.1.x release series
Comment 5 Swamp Workflow Management 2014-11-03 23:00:52 UTC
bugbot adjusting priority
Comment 15 Swamp Workflow Management 2014-11-13 12:12:55 UTC
An update workflow for this issue was started.
This issue was rated as moderate.
Please submit fixed packages until 2014-11-27.
When done, reassign the bug to security-team@suse.de.
https://swamp.suse.de/webswamp/wf/59639
Comment 16 Jordi Massaguer 2014-11-17 15:05:39 UTC
wainting for upstream answer on

https://github.com/rails/rails/pull/17595
Comment 18 Bernhard Wiedemann 2014-11-19 19:00:22 UTC
This is an autogenerated message for OBS integration:
This bug (903662) was mentioned in
https://build.opensuse.org/request/show/262366 12.3 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/262368 13.1 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/262370 13.2 / rubygem-actionpack-3_2
Comment 19 Bernhard Wiedemann 2014-11-19 20:00:34 UTC
This is an autogenerated message for OBS integration:
This bug (903662) was mentioned in
https://build.opensuse.org/request/show/262371 12.3 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/262372 13.1 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/262373 13.2 / rubygem-actionpack-3_2
Comment 20 Swamp Workflow Management 2014-11-27 10:05:20 UTC
openSUSE-SU-2014:1515-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 903662,905727
CVE References: CVE-2014-7818,CVE-2014-7829
Sources used:
openSUSE 13.2 (src):    rubygem-actionpack-3_2-3.2.17-3.4.1
openSUSE 13.1 (src):    rubygem-actionpack-3_2-3.2.13-2.28.1
openSUSE 12.3 (src):    rubygem-actionpack-3_2-3.2.12-1.32.1
Comment 21 Swamp Workflow Management 2015-01-28 00:05:25 UTC
SUSE-SU-2015:0156-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 903662,905727
CVE References: CVE-2014-7818
Sources used:
WebYaST 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.19.1
SUSE Studio Onsite 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.19.1
SUSE Lifecycle Management Server 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.19.1
Comment 22 Victor Pereira 2015-02-13 14:46:58 UTC
released