Bug 1251318 (CVE-2015-4495) - CVE-2015-4495 Mozilla: Same origin violation and local file stealing via PDF reader (MFSA 2015-78)
Summary: CVE-2015-4495 Mozilla: Same origin violation and local file stealing via PDF ...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2015-4495
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1249531
TreeView+ depends on / blocked
 
Reported: 2015-08-07 00:47 UTC by Huzaifa S. Sidhpurwala
Modified: 2023-05-12 10:06 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A flaw was discovered in Mozilla Firefox that could be used to violate the same-origin policy and inject web script into a non-privileged part of the built-in PDF file viewer (PDF.js). An attacker could create a malicious web page that, when viewed by a victim, could steal arbitrary files (including private SSH keys, the /etc/passwd file, and other potentially sensitive files) from the system running Firefox.
Clone Of:
Environment:
Last Closed: 2015-08-08 03:59:13 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1581 0 normal SHIPPED_LIVE Important: firefox security update 2015-08-08 03:07:43 UTC

Description Huzaifa S. Sidhpurwala 2015-08-07 00:47:31 UTC
Security researcher Cody Crews reported on a way to violate the same origin policy and inject script into a non-privileged part of the built-in PDF Viewer. This would allow an attacker to read and steal sensitive local files on the victim's computer.

Mozilla has received reports that an exploit based on this vulnerability has been found in the wild. 

External References:

https://www.mozilla.org/security/announce/2015/mfsa2015-78.html
https://access.redhat.com/articles/1563163
https://blog.mozilla.org/security/2015/08/06/firefox-exploit-found-in-the-wild/

Acknowledgements:

Red Hat would like to thank the Mozilla project for reporting this issue. Upstream acknowledges Cody Crews as the original reporter.

Comment 2 errata-xmlrpc 2015-08-07 23:08:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 5

Via RHSA-2015:1581 https://rhn.redhat.com/errata/RHSA-2015-1581.html

Comment 3 Huzaifa S. Sidhpurwala 2015-08-10 08:10:18 UTC
Note:

The Firefox package shipped with Red Hat Enterprise Linux 5, 6 and 7 is not confined by selinux (runs in unconfined_t domain). Processes running in unconfined_t domain get complete access to the system and are only restricted by the conventional DAC system. (restricted by file system permissions, acls etc)

This security flaw could therefore be exploited to steal files, which the user running firefox has access to, and cannot be mitigated by enabling selinux.

There are several resources available which deal which confining firefox by using selinux (with different success rates):

http://people.redhat.com/tscherf/articles/lm_en_selinux.pdf
http://danwalsh.livejournal.com/15700.html
http://danwalsh.livejournal.com/28545.html


Note You need to log in before you can comment on or make changes to this bug.