Vulnerabilities > CVE-2009-2477 - Code Injection vulnerability in Mozilla Firefox 3.5
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
js/src/jstracer.cpp in the Just-in-time (JIT) JavaScript compiler (aka TraceMonkey) in Mozilla Firefox 3.5 before 3.5.1 allows remote attackers to execute arbitrary code via certain use of the escape function that triggers access to uninitialized memory locations, as originally demonstrated by a document containing P and FONT elements.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating User-Controlled Variables This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Exploit-Db
description Firefox 3.5 escape() Return Value Memory Corruption. CVE-2009-2477. Remote exploits for multiple platform id EDB-ID:16299 last seen 2016-02-01 modified 2010-09-20 published 2010-09-20 reporter metasploit source https://www.exploit-db.com/download/16299/ title Firefox 3.5 escape Return Value Memory Corruption description Naenara Browser 3.5 (RedStar 3.0 Desktop) - 'JACKRABBIT' Client-Side Command Execution. CVE-2009-2477. Local exploit for Linux platform. Tags: Client Side file exploits/linux/local/40936.html id EDB-ID:40936 last seen 2016-12-19 modified 2016-12-18 platform linux port published 2016-12-18 reporter Exploit-DB source https://www.exploit-db.com/download/40936/ title Naenara Browser 3.5 (RedStar 3.0 Desktop) - 'JACKRABBIT' Client-Side Command Execution type local description Mozilla Firefox 3.5 (Font tags) Remote Heap Spray Exploit (pl). CVE-2009-2477. Remote exploit for windows platform id EDB-ID:9214 last seen 2016-02-01 modified 2009-07-20 published 2009-07-20 reporter netsoul source https://www.exploit-db.com/download/9214/ title Mozilla Firefox 3.5 Font tags Remote Heap Spray Exploit pl description Mozilla Firefox 3.5 (Font tags) Remote Buffer Overflow Exploit. CVE-2009-2477,CVE-2009-2478. Remote exploit for windows platform file exploits/windows/remote/9137.html id EDB-ID:9137 last seen 2016-02-01 modified 2009-07-13 platform windows port published 2009-07-13 reporter Sberry source https://www.exploit-db.com/download/9137/ title Mozilla Firefox 3.5 Font tags Remote Buffer Overflow Exploit type remote id EDB-ID:9181
Metasploit
description | This module exploits a memory corruption vulnerability in the Mozilla Firefox browser. This flaw occurs when a bug in the javascript interpreter fails to preserve the return value of the escape() function and results in uninitialized memory being used instead. This module has only been tested on Windows, but should work on other platforms as well with the current targets. |
id | MSF:EXPLOIT/MULTI/BROWSER/FIREFOX_ESCAPE_RETVAL |
last seen | 2020-02-29 |
modified | 2017-07-24 |
published | 2009-07-14 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/browser/firefox_escape_retval.rb |
title | Firefox 3.5 escape() Return Value Memory Corruption |
Nessus
NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_C1EF9B3372A611DE82EA0030843D3802.NASL description Mozilla Project reports : Firefox user zbyte reported a crash that we determined could result in an exploitable memory corruption problem. In certain cases after a return from a native function, such as escape(), the Just-in-Time (JIT) compiler could get into a corrupt state. This could be exploited by an attacker to run arbitrary code such as installing malware. This vulnerability does not affect earlier versions of Firefox which do not support the JIT feature. last seen 2020-06-01 modified 2020-06-02 plugin id 39867 published 2009-07-20 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/39867 title FreeBSD : mozilla -- corrupt JIT state after deep return from native function (c1ef9b33-72a6-11de-82ea-0030843d3802) NASL family Windows NASL id MOZILLA_FIREFOX_351.NASL description Firefox 3.5 is installed on the remote host. This version is potentially affected by multiple flaws : - It may be possible to crash the browser or potentially execute arbitrary code by using a flash object that presents a slow script dialog. (MFSA 2009-35) - In certain cases after a return from a native function, such as escape(), the Just-in-Time (JIT) compiler could get into a corrupt state. An attacker who is able to trick a user of the affected software into visiting a malicious link may be able to leverage this issue to run arbitrary code subject to the user last seen 2020-06-01 modified 2020-06-02 plugin id 39853 published 2009-07-17 reporter This script is Copyright (C) 2009-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/39853 title Firefox 3.5.x < 3.5.1 Multiple Vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2009-7898.NASL description Update to new upstream Firefox version 3.5.1, fixing multiple security issues detailed in the upstream advisories: http://www.mozilla.org/security/known- vulnerabilities/firefox35.html#firefox3.5.1 Update also includes all packages depending on gecko-libs rebuilt against new version of Firefox / XULRunner. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 40347 published 2009-07-23 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/40347 title Fedora 11 : kazehakase-0.5.6-11.svn3771_trunk.fc11.3 / Miro-2.0.5-2.fc11 / blam-1.8.5-12.fc11 / etc (2009-7898) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201301-01.NASL description The remote host is affected by the vulnerability described in GLSA-201301-01 (Mozilla Products: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Mozilla Firefox, Thunderbird, SeaMonkey, NSS, GNU IceCat, and XULRunner. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could entice a user to view a specially crafted web page or email, possibly resulting in execution of arbitrary code or a Denial of Service condition. Furthermore, a remote attacker may be able to perform Man-in-the-Middle attacks, obtain sensitive information, bypass restrictions and protection mechanisms, force file downloads, conduct XML injection attacks, conduct XSS attacks, bypass the Same Origin Policy, spoof URL’s for phishing attacks, trigger a vertical scroll, spoof the location bar, spoof an SSL indicator, modify the browser’s font, conduct clickjacking attacks, or have other unspecified impact. A local attacker could gain escalated privileges, obtain sensitive information, or replace an arbitrary downloaded file. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 63402 published 2013-01-08 reporter This script is Copyright (C) 2013-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/63402 title GLSA-201301-01 : Mozilla Products: Multiple vulnerabilities (BEAST)
Saint
bid | 35660 |
description | Mozilla Firefox JIT Escape Function Memory Corruption |
id | web_client_firefox |
osvdb | 55846 |
title | firefox_jitescapefunction_memory_corruption |
type | client |
References
- http://blog.mozilla.com/security/2009/07/14/critical-javascript-vulnerability-in-firefox-35/
- http://blog.mozilla.com/security/2009/07/14/critical-javascript-vulnerability-in-firefox-35/
- http://isc.sans.org/diary.html?storyid=6796
- http://isc.sans.org/diary.html?storyid=6796
- http://secunia.com/advisories/35798
- http://secunia.com/advisories/35798
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-266148-1
- http://sunsolve.sun.com/search/document.do?assetkey=1-66-266148-1
- http://voices.washingtonpost.com/securityfix/2009/07/stopgap_fix_for_critical_firef.html
- http://voices.washingtonpost.com/securityfix/2009/07/stopgap_fix_for_critical_firef.html
- http://www.exploit-db.com/exploits/9137
- http://www.exploit-db.com/exploits/9137
- http://www.exploit-db.com/exploits/9181
- http://www.exploit-db.com/exploits/9181
- http://www.h-online.com/security/First-Zero-Day-Exploit-for-Firefox-3-5--/news/113761
- http://www.h-online.com/security/First-Zero-Day-Exploit-for-Firefox-3-5--/news/113761
- http://www.kb.cert.org/vuls/id/443060
- http://www.kb.cert.org/vuls/id/443060
- http://www.mozilla.org/security/announce/2009/mfsa2009-41.html
- http://www.mozilla.org/security/announce/2009/mfsa2009-41.html
- http://www.securityfocus.com/bid/35660
- http://www.securityfocus.com/bid/35660
- http://www.vupen.com/english/advisories/2009/1868
- http://www.vupen.com/english/advisories/2009/1868
- https://bugzilla.mozilla.org/show_bug.cgi?id=503286
- https://bugzilla.mozilla.org/show_bug.cgi?id=503286
- https://www.exploit-db.com/exploits/40936/
- https://www.exploit-db.com/exploits/40936/
- https://www.redhat.com/archives/fedora-package-announce/2009-July/msg00909.html
- https://www.redhat.com/archives/fedora-package-announce/2009-July/msg00909.html