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 ...
Alias: CVE-2015-4495
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Whiteboard: impact=important,public=20150806,repo...
Keywords: Security
Depends On:
Blocks: 1249531
TreeView+ depends on / blocked
Reported: 2015-08-07 00:47 UTC by Huzaifa S. Sidhpurwala
Modified: 2016-01-20 21:11 UTC (History)
5 users (show)

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:
Last Closed: 2015-08-08 03:59:13 UTC

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1581 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:



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

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):


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