Rapid7 Vulnerability & Exploit Database

Firefox PDF.js Browser File Theft

Back to Search

Firefox PDF.js Browser File Theft

Created
05/30/2018

Description

This module abuses an XSS vulnerability in versions prior to Firefox 39.0.3, Firefox ESR 38.1.1, and Firefox OS 2.2 that allows arbitrary files to be stolen. The vulnerability occurs in the PDF.js component, which uses Javascript to render a PDF inside a frame with privileges to read local files. The in-the-wild malicious payloads searched for sensitive files on Windows, Linux, and OSX. Android versions are reported to be unaffected, as they do not use the Mozilla PDF viewer.

Author(s)

  • Unknown
  • fukusa
  • Unknown

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/gather/firefox_pdfjs_file_theft
msf auxiliary(firefox_pdfjs_file_theft) > show actions
    ...actions...
msf auxiliary(firefox_pdfjs_file_theft) > set ACTION < action-name >
msf auxiliary(firefox_pdfjs_file_theft) > show options
    ...show and set options...
msf auxiliary(firefox_pdfjs_file_theft) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;