Exploit database

Vulnerability

CVE-2013-1710

Vulnerability details

Score
10.0
Severity
high

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:N/C:C/I:C/A:C

Description

The crypto.generateCRMFRequest function in Mozilla Firefox before 23.0, Firefox ESR 17.x before 17.0.8, Thunderbird before 17.0.8, Thunderbird ESR 17.x before 17.0.8, and SeaMonkey before 2.20 allows remote attackers to execute arbitrary JavaScript code or conduct cross-site scripting (XSS) attacks via vectors related to Certificate Request Message Format (CRMF) request generation.

CVE Program

Exploit source choices

4 sources
Firefox 5.0 - 15.0.1 __exposedProps__ XCS Code Execution
MSF-multi--browser--firefox_proto_crmfrequestMetasploitFirefox,Java,Linux,OSX,Solaris,Windows / remote

On versions of Firefox from 5.0 to 15.0.1, the InstallTrigger global, when given invalid input, would throw an exception that did not have an __exposedProps__ property set. By re-setting this property on the exception object's prototype, the chrome-based defineProperty method is made available. With the defineProperty method, functions belonging to window and document can be overridden with a function that gets called from chrome-privileged context. From here, another vulnerability in the crypto.generateCRMFRequest function is used to "peek" into the context's private scope. Since the window does not have a chrome:// URL, the insecure parts of Components.classes are not available, so instead the AddonManager API is invoked to silently install a malicious plugin.

2013-08-06firefox_proto_crmfrequest.rb
Firefox toString console.time Privileged Javascript Injection
MSF-multi--browser--firefox_tostring_console_injectionMetasploitFirefox,Java,Linux,OSX,Solaris,Windows / remote

This exploit gains remote code execution on Firefox 15-22 by abusing two separate Javascript-related vulnerabilities to ultimately inject malicious Javascript code into a context running with chrome:// privileges.

2013-05-14firefox_tostring_console_injection.rb