Rapid7 Vulnerability & Exploit Database

Firefox PDF.js Privileged Javascript Injection

Back to Search

Firefox PDF.js Privileged Javascript Injection

Disclosed
03/31/2015
Created
05/30/2018

Description

This module gains remote code execution on Firefox 35-36 by abusing a privilege escalation bug in resource:// URIs. PDF.js is used to exploit the bug. This exploit requires the user to click anywhere on the page to trigger the vulnerability.

Author(s)

  • Unknown
  • Marius Mlynski
  • joev <joev@metasploit.com>

Development

References

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 exploit/multi/browser/firefox_pdfjs_privilege_escalation
msf exploit(firefox_pdfjs_privilege_escalation) > show targets
    ...targets...
msf exploit(firefox_pdfjs_privilege_escalation) > set TARGET < target-id >
msf exploit(firefox_pdfjs_privilege_escalation) > show options
    ...show and set options...
msf exploit(firefox_pdfjs_privilege_escalation) > exploit

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

;