Debian DSA-779-2 : mozilla-firefox - several vulnerabilities - Nessus

High   Plugin ID: 19476

This page contains detailed information about the Debian DSA-779-2 : mozilla-firefox - several vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 19476
Name: Debian DSA-779-2 : mozilla-firefox - several vulnerabilities
Filename: debian_DSA-779.nasl
Vulnerability Published: N/A
This Plugin Published: 2005-08-23
Last Modification Time: 2021-01-04
Plugin Version: 1.34
Plugin Type: local
Plugin Family: Debian Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/Debian/dpkg-l, Host/Debian/release, Host/local_checks_enabled

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: N/A
CVE [?]: CVE-2005-2260, CVE-2005-2261, CVE-2005-2262, CVE-2005-2263, CVE-2005-2264, CVE-2005-2265, CVE-2005-2266, CVE-2005-2267, CVE-2005-2268, CVE-2005-2269, CVE-2005-2270, CVE-2005-2271, CVE-2005-2272, CVE-2005-2273, CVE-2005-2274
CPE [?]: cpe:/o:debian:debian_linux:3.1, p-cpe:/a:debian:debian_linux:mozilla-firefox
Exploited by Malware: True

Synopsis

The remote Debian host is missing a security-related update.

Description

We experienced that the update for Mozilla Firefox from DSA 779-1 unfortunately was a regression in several cases. Since the usual praxis of backporting apparently does not work, this update is basically version 1.0.6 with the version number rolled back, and hence still named 1.0.4-*. For completeness below is the original advisory text :

Several problems have been discovered in Mozilla Firefox, a lightweight web browser based on Mozilla. The Common Vulnerabilities and Exposures project identifies the following problems :

- CAN-2005-2260 The browser user interface does not properly distinguish between user-generated events and untrusted synthetic events, which makes it easier for remote attackers to perform dangerous actions that normally could only be performed manually by the user.

- CAN-2005-2261

XML scripts ran even when JavaScript disabled.

- CAN-2005-2262

The user can be tricked to executing arbitrary JavaScript code by using a JavaScript URL as wallpaper.

- CAN-2005-2263

It is possible for a remote attacker to execute a callback function in the context of another domain (i.e. frame).

- CAN-2005-2264

By opening a malicious link in the sidebar it is possible for remote attackers to steal sensitive information.

- CAN-2005-2265

Missing input sanitising of InstallVersion.compareTo() can cause the application to crash.

- CAN-2005-2266

Remote attackers could steal sensitive information such as cookies and passwords from websites by accessing data in alien frames.

- CAN-2005-2267

By using standalone applications such as Flash and QuickTime to open a javascript: URL, it is possible for a remote attacker to steal sensitive information and possibly execute arbitrary code.

- CAN-2005-2268

It is possible for a JavaScript dialog box to spoof a dialog box from a trusted site and facilitates phishing attacks.

- CAN-2005-2269

Remote attackers could modify certain tag properties of DOM nodes that could lead to the execution of arbitrary script or code.

- CAN-2005-2270

The Mozilla browser family does not properly clone base objects, which allows remote attackers to execute arbitrary code.

Solution

Upgrade the Mozilla Firefox packages.

The old stable distribution (woody) is not affected by these problems.

For the stable distribution (sarge) these problems have been fixed in version 1.0.4-2sarge3.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Debian DSA-779-2 : mozilla-firefox - several vulnerabilities vulnerability:

  1. Metasploit: exploit/multi/browser/mozilla_compareto
    [Mozilla Suite/Firefox compareTo() Code Execution]
  2. Exploit-DB: exploits/windows/remote/9947.rb
    [EDB-9947: Mozilla Suite/Firefox < 1.0.5 - compareTo Code Execution (Metasploit)]
  3. Exploit-DB: exploits/windows/remote/16306.rb
    [EDB-16306: Mozilla Suite/Firefox - InstallVersion->compareTo() Code Execution (Metasploit)]
  4. GitHub: https://github.com/jimmyislive/gocve
    [CVE-2005-2266]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)

Go back to menu.

Plugin Source


This is the debian_DSA-779.nasl nessus plugin source code. This script is Copyright (C) 2005-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300

#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Debian Security Advisory DSA-779. The text 
# itself is copyright (C) Software in the Public Interest, Inc.
#

if (NASL_LEVEL < 3000) exit(0);

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(19476);
  script_version("1.34");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2005-2260", "CVE-2005-2261", "CVE-2005-2262", "CVE-2005-2263", "CVE-2005-2264", "CVE-2005-2265", "CVE-2005-2266", "CVE-2005-2267", "CVE-2005-2268", "CVE-2005-2269", "CVE-2005-2270", "CVE-2005-2271", "CVE-2005-2272", "CVE-2005-2273", "CVE-2005-2274");
  script_bugtraq_id(14242);
  script_xref(name:"DSA", value:"779");

  script_name(english:"Debian DSA-779-2 : mozilla-firefox - several vulnerabilities");
  script_summary(english:"Checks dpkg output for the updated package");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Debian host is missing a security-related update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"We experienced that the update for Mozilla Firefox from DSA 779-1
unfortunately was a regression in several cases.  Since the usual
praxis of backporting apparently does not work, this update is
basically version 1.0.6 with the version number rolled back, and hence
still named 1.0.4-*.  For completeness below is the original advisory
text :

  Several problems have been discovered in Mozilla Firefox, a
  lightweight web browser based on Mozilla. The Common Vulnerabilities
  and Exposures project identifies the following problems :

    - CAN-2005-2260
      The browser user interface does not properly
      distinguish between user-generated events and
      untrusted synthetic events, which makes it easier for
      remote attackers to perform dangerous actions that
      normally could only be performed manually by the user.

    - CAN-2005-2261

      XML scripts ran even when JavaScript disabled.

    - CAN-2005-2262

      The user can be tricked to executing arbitrary
      JavaScript code by using a JavaScript URL as
      wallpaper.

    - CAN-2005-2263

      It is possible for a remote attacker to execute a
      callback function in the context of another domain
      (i.e. frame).

    - CAN-2005-2264

      By opening a malicious link in the sidebar it is
      possible for remote attackers to steal sensitive
      information.

    - CAN-2005-2265

      Missing input sanitising of InstallVersion.compareTo()
      can cause the application to crash.

    - CAN-2005-2266

      Remote attackers could steal sensitive information
      such as cookies and passwords from websites by
      accessing data in alien frames.

    - CAN-2005-2267

      By using standalone applications such as Flash and
      QuickTime to open a javascript: URL, it is possible
      for a remote attacker to steal sensitive information
      and possibly execute arbitrary code.

    - CAN-2005-2268

      It is possible for a JavaScript dialog box to spoof a
      dialog box from a trusted site and facilitates
      phishing attacks.

    - CAN-2005-2269

      Remote attackers could modify certain tag properties
      of DOM nodes that could lead to the execution of
      arbitrary script or code.

    - CAN-2005-2270

      The Mozilla browser family does not properly clone
      base objects, which allows remote attackers to execute
      arbitrary code."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318061"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.debian.org/security/2005/dsa-779"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Upgrade the Mozilla Firefox packages.

The old stable distribution (woody) is not affected by these problems.

For the stable distribution (sarge) these problems have been fixed in
version 1.0.4-2sarge3."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_malware", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Mozilla Suite/Firefox compareTo() Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:mozilla-firefox");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.1");

  script_set_attribute(attribute:"plugin_publication_date", value:"2005/08/23");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2005-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Debian Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");

  exit(0);
}


include("audit.inc");
include("debian_package.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;
if (deb_check(release:"3.1", prefix:"mozilla-firefox", reference:"1.0.4-2sarge3")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-firefox-dom-inspector", reference:"1.0.4-2sarge3")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-firefox-gnome-support", reference:"1.0.4-2sarge3")) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
  else security_hole(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/debian_DSA-779.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\debian_DSA-779.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/debian_DSA-779.nasl

Go back to menu.

How to Run


Here is how to run the Debian DSA-779-2 : mozilla-firefox - several vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Debian Local Security Checks plugin family.
  6. On the right side table select Debian DSA-779-2 : mozilla-firefox - several vulnerabilities plugin ID 19476.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl debian_DSA-779.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a debian_DSA-779.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - debian_DSA-779.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state debian_DSA-779.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: DSA | Debian Security Advisory: See also: Similar and related Nessus plugins:
  • 21949 - CentOS 4 : firefox (CESA-2005:586)
  • 21844 - CentOS 3 / 4 : mozilla (CESA-2005:587)
  • 21952 - CentOS 4 : thunderbird (CESA-2005:601)
  • 19478 - Debian DSA-781-1 : mozilla-thunderbird - several vulnerabilities
  • 19685 - Debian DSA-810-1 : mozilla - several vulnerabilities
  • 19345 - FreeBSD : firefox & mozilla -- multiple vulnerabilities (5d72701a-f601-11d9-bcd1-02061b08fc24)
  • 19888 - Mandrake Linux Security Advisory : mozilla (MDKSA-2005:128)
  • 18813 - Mozilla Browser < 1.7.9 Multiple Vulnerabilities
  • 18689 - Firefox < 1.0.6 Multiple Vulnerabilities
  • 19269 - Mozilla Thunderbird < 1.0.6 Multiple Vulnerabilities
  • 19268 - RHEL 4 : firefox (RHSA-2005:586)
  • 19285 - RHEL 2.1 / 3 / 4 : mozilla (RHSA-2005:587)
  • 19277 - RHEL 4 : thunderbird (RHSA-2005:601)
  • 20544 - Ubuntu 5.04 : mozilla-firefox vulnerabilities (USN-149-1)
  • 20546 - Ubuntu 4.10 : mozilla-firefox vulnerabilities (USN-149-3)
  • 20556 - Ubuntu 4.10 / 5.04 : mozilla vulnerabilities (USN-155-1)
  • 20560 - Ubuntu 4.10 / 5.04 : mozilla-thunderbird vulnerabilities (USN-157-1)
  • 19431 - Debian DSA-775-1 : mozilla-firefox - frame injection spoofing
  • 19433 - Debian DSA-777-1 : mozilla - frame injection spoofing

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file debian_DSA-779.nasl version 1.34. For more plugins, visit the Nessus Plugin Library.

Go back to menu.