Multiple Vulnerabilities in Mozilla Products Could Allow Remote Code Execution
Posted: October 22, 2012, 9:53 am Last Updated: December 18, 2012, 11:52 am
South Carolina Information Sharing and Analysis Center
SC INFORMATION SHARING AND ANALYSIS CENTER BULLETIN
DATE ISSUED: 10/11/2012
SUBJECT: Multiple Vulnerabilities in Mozilla Products Could Allow Remote Code Execution
OVERVIEW:
Multiple vulnerabilities have been discovered in Mozilla Firefox, Thunderbird, and SeaMonkey applications, which could allow remote code execution. Mozilla Firefox is a web browser used to access the Internet. Mozilla Thunderbird is an email client. Mozilla SeaMonkey is a cross platform Internet suite of tools ranging from a web browser to an email client. Successful exploitation of these vulnerabilities could result in either an attacker gaining the same privileges as the logged on user, or gaining session authentication credentials. Depending on the privileges associated with the user, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights.
DESCRIPTION:
Multiple vulnerabilities have been discovered in Mozilla Firefox, Thunderbird, and SeaMonkey. The details of these vulnerabilities are as follows:
Miscellaneous memory safety hazards
Several memory safety bugs in the browser engine used in Firefox and other Mozilla-based products have been identified. Some of these bugs showed evidence of memory corruption under certain circumstances, and some of these could be exploited to run arbitrary code.
URI-spoofing Vulnerability
There is an error when handling the '
Security bypass vulnerability when handling 'document.domain'
The same-origin policy is not properly enforced. Specifically, the error occurs when handling 'document.domain'. An attacker can exploit this issue to execute cross-site scripting attacks.
Multiple security bypass vulnerabilities in 'nsDOMWindowUtils' methods
Several methods of a feature used for testing (DOMWindowUtils) are not protected by existing security checks, allowing these methods to be called through script by web pages.
Cross-site scripting vulnerability in Firefox for Android
When a page is transitioned into Reader Mode in Firefox for Android, the resulting page has chrome privileges and its content is not thoroughly sanitized. A successful attack requires user enabling of reader mode for a malicious page, which could then perform an attack similar to cross-site scripting (XSS) to gain the privileges allowed to Firefox on an Android device.
Use-after-free issue
A combination of invoking full screen mode and navigating backwards in history could, in some circumstances, cause a hang or crash due to a timing dependent use-after-free pointer reference. This crash may be potentially exploitable.
Denial-of-service vulnerability
There is a crash due to an invalid cast when using the instance of operator on certain types of JavaScript objects. This can lead to a potentially exploitable crash.
Security bypass vulnerability in 'GetProperty()'
The cross-origin policy is not properly enforced. Specifically, this issue occurs when invoking the 'GetProperty()' function through JSAPI. An attacker can exploit this issue to perform arbitrary code-execution.
Cross-site scripting vulnerability handling the 'location' property
User supplied input is not sufficiently sanitized. Specifically, the location property can be accessed by binary plugins through top.location and top can be shadowed by Object.defineProperty as well. This can allow for possible cross-site scripting (XSS) attacks through plug-ins.
Security bypass vulnerability handling the 'InstallTrigger' object
When InstallTrigger fails, it throws an error wrapped in a Chrome Object Wrapper(COW) that fails to specify exposed properties. These can then be added to the resulting object by an attacker, allowing access to chrome privileged functions through script. These issues could allow for a cross-site scripting (XSS) attack or arbitrary code execution.
Spoofing and script injection through location.hash
Writes to location.hash can be used with scripted history navigation to cause a specific website to be loaded into the history object. The base URI can then be changed to this stored site, allowing an attacker to inject a script or intercept posted data posted to a location specified with a relative path.
Multiple use-after-free, buffer overflow, and out of bounds read issues in Address Sanitizer
There is a series of security issues using the Address Sanitizer tool in shipped software. Specifically, an out-of-bounds read error affects the 'IsCSSWordSpacingSpace()' function, a use-after-free error affects the 'nsHTMLCSSUtils::CreateCSSPropertyTxn()' function, a heap-based buffer-overflow vulnerability exists in the 'nsHTMLEditor::IsPrevCharInNodeWhitespace()' function, a use-after-free error affects the 'nsSMILAnimationController::DoSample()' function, a use-after-free error affects the 'nsTextEditRules::WillInsert()' function, and a use-after-free error affects the 'DOMSVGTests::GetRequiredFeatures()' function. These issues are potentially exploitable, allowing for remote code execution.
Multiple heap memory corruption issues in Address Sanitizer
There is a series of security issues using the Address Sanitizer tool in shipped software. Specifically, a buffer-overflow vulnerability exists in the 'nsCharTraits::length()' function, a heap-based buffer-overflow vulnerability exists in the 'nsWaveReader::DecodeAudioData()" function, a memory-corruption vulnerability exists in the 'insPos' property, and a heap-based buffer-overflow exists in the 'Convolve3x3()' function. These issues are potentially exploitable, allowing for remote code execution.
Use-after-free error in 'nsIContent::GetNameSpaceID()'
A use-after-free error was discovered in the IME State Manager code of Address Sanitizer. This could lead to a potentially exploitable crash.
Successful exploitation of these vulnerabilities could result in either an attacker gaining the same privileges as the logged on user, or gaining session authentication credentials. Depending on the privileges associated with the user, an attacker could install programs; view, change, or delete data; or create new accounts with full user rights.
SYSTEMS AFFECTED:
·Firefox versions prior to 16
·Firefox Extended Support Release (ESR) versions prior to 10.0.8
·Thunderbird versions prior to 16
·Thunderbird Extended Support Release (ESR) versions prior to 10.0.8
·SeaMonkey versions prior to 2.13
RISK:
Government:
Large and medium government entities: High
Small government entities: High
Businesses:
Large and medium business entities: High
Small business entities: High
Home users: High
RECOMMENDATIONS:
We recommend the following actions be taken:
Upgrade vulnerable Mozilla products immediately after appropriate testing.
Remind users not to visit un-trusted websites or follow links provided by unknown or un-trusted sources.
Do not open email attachments or click on URLs from unknown or untrusted sources.
Run all software as a non-privileged user (one without administrative privileges) to diminish the effects of a successful attack.