Mozilla Firefox addEventListener and setTimeout methods cross-site scripting

mozilla-addeventlistener-settimeout-xss (35462) The risk level is classified as MediumMedium Risk

Description:

Mozilla Firefox could allow a remote attacker to bypass the browser's same-origin policy and perform cross-site scripting attacks, caused by improper validation of user-supplied input. A remote attacker could exploit this vulnerability using the addEventListener and setTimeout methods to inject malicious script into another site which would be executed in a victim's Web browser within the security context of the hosting Web site, once the page is viewed. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

Platforms Affected:

  • Canonical, Ubuntu 6.06 LTS
  • Canonical, Ubuntu 6.10
  • Canonical, Ubuntu 7.04
  • Debian, Debian Linux 4.0
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2007 X86_64
  • MandrakeSoft, Mandrake Linux 2007
  • MandrakeSoft, Mandrake Linux 2007.1
  • MandrakeSoft, Mandrake Linux 2007.1 X86_64
  • MandrakeSoft, Mandrake Linux 2008.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0
  • Mozilla, Firefox 2.0 Beta2
  • Mozilla, Firefox 2.0 rc1
  • Mozilla, Firefox 2.0 rc3
  • Mozilla, Firefox 2.0 rc2
  • Mozilla, Firefox 2.0 Beta1
  • Mozilla, Firefox 2.0
  • Mozilla, Firefox 2.0.0.1
  • Mozilla, Firefox 2.0.0.2
  • Mozilla, Firefox 2.0.0.3
  • Mozilla, Firefox 2.0.0.4
  • Novell, Linux Desktop 9
  • Novell, Linux POS 9
  • Novell, Open Enterprise Server
  • Novell, Open Enterprise Server
  • Novell, OpenSUSE 10.2
  • Novell, SUSE Linux Enterprise Desktop 10 SP1
  • Novell, SUSE Linux Enterprise Server 10 SP1
  • Novell, SUSE Linux Enterprise Server 10
  • Novell, UnitedLinux 1.0
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 5
  • RedHat, Enterprise Linux 5 Client Workstation
  • RedHat, Enterprise Linux 5 Client
  • RedHat, Enterprise Linux 5 Server
  • RedHat, Enterprise Linux Desktop 5.0
  • RedHat, Enterprise Linux Optional Productivity Applications 5 Server
  • RedHat, Linux Advanced Workstation 2.1 Itanium
  • Sun, Solaris 10 x86
  • Sun, Solaris 10 SPARC
  • SuSE, SuSE Linux 10.0
  • SuSE, SuSE Linux 10.1
  • SuSE, SuSE Linux Enterprise Server 8.0
  • SuSE, SuSE Linux OpenExchange Server 4
  • SuSE, SuSE Linux Retail Solution 8
  • SuSE, SuSE Linux School Server
  • SuSE, SuSE Linux Standard Server 8
  • SuSE, SuSE SLES 9

Remedy:

Refer to MFSA 2007-19 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux:
Refer to RHSA-2007:0724-4 for patch, upgrade, or suggested workaround information. See References.

For Ubuntu Linux (firefox):
Refer to USN-490-1 for patch, upgrade, or suggested workaround information. See References.

For Debian Linux (xulrunner):
Refer to DSA-1337-1 for patch, upgrade, or suggested workaround information. See References.

For Debian Linux (iceweasel):
Refer to DSA-1338-1 for patch, upgrade, or suggested workaround information. See References.

For Debian Linux (iceape):
Refer to DSA-1339-1 for patch, upgrade, or suggested workaround information. See References.

For Mandriva Linux (mozilla-firefox):
Refer to MDKSA-2007:152 for patch, upgrade, or suggested workaround information. See References.

For SUSE Linux:
Refer to SUSE-SA:2007:049 for patch, upgrade, or suggested workaround information. See References.

For Gentoo Linux (Mozilla):
Refer to GLSA 200708-09 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Apply the appropriate update for your system. See References.

Consequences:

Gain Access

References:

  • MFSA 2007-19, XSS using addEventListener and setTimeout at http://www.mozilla.org/security/announce/2007/mfsa2007-19.html.
  • Sun Alert ID: 103177, Multiple Security Vulnerabilities in Firefox and Thunderbird for Solaris 10 May Allow Execution of Arbitrary Code and Access to Unauthorized Data at http://sunsolve.sun.com/search/document.do?assetkey=1-26-103177-1.
  • ASA-2007-315: Thunderbird security update (RHSA-2007-0723)
  • ASA-2007-316: Seamonkey security update (RHSA-2007-0722)
  • ASA-2007-360: Firefox security update (RHSA-2007-0724)
  • ASA-2008-008: Multiple Security Vulnerabilities in Firefox and Thunderbird for Solaris 10 May Allow Execution of Arbitrary Code and Access to Unauthorized Data (Sun 103177)
  • BID-24946: Mozilla Firefox 2.0.0.4 Multiple Remote Vulnerabilities
  • CVE-2007-3736: Cross-site scripting (XSS) vulnerability in Mozilla Firefox before 2.0.0.5 allows remote attackers to inject arbitrary web script into another sites context via a timing issue involving the (1) addEventListener or (2) setTimeout function, probably by setting events that activate after the context has changed.
  • DSA-1337: xulrunner -- several vulnerabilities
  • DSA-1338: iceweasel -- several vulnerabilities
  • DSA-1339: iceape -- several vulnerabilities
  • FrSIRT/ADV-2007-2564: Mozilla Firefox and Seamonkey Code Execution and Security Bypass Vulnerabilities
  • FrSIRT/ADV-2007-4256: Sun Solaris Firefox and Thunderbird Command Execution Vulnerabilities
  • GLSA-200708-09: Mozilla products: Multiple vulnerabilities
  • MDKSA-2007:152: Updated Firefox packages fix multiple vulnerabilities
  • RHSA-2007-0722: Critical: seamonkey security update
  • RHSA-2007-0723: Moderate: thunderbird security update
  • RHSA-2007-0724: Critical: firefox security update
  • SA26095: Mozilla Firefox Multiple Vulnerabilities
  • SA28135: Sun Solaris Firefox / Thunderbird Multiple Vulnerabilities
  • SECTRACK ID: 1018410: Mozilla Firefox addEventListener() or setTimeout() Functions Permit Cross-Site Scripting Attacks
  • SUSE-SA:2007:049: Mozilla security problems
  • USN-490-1: Firefox vulnerabilities

Reported:

Jul 17, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page