Debian DSA-1046-1 : mozilla - several vulnerabilities

2006-10-14T00:00:00
ID DEBIAN_DSA-1046.NASL
Type nessus
Reporter This script is Copyright (C) 2006-2021 Tenable Network Security, Inc.
Modified 2021-01-04T00:00:00

Description

Several security related problems have been discovered in Mozilla. The Common Vulnerabilities and Exposures project identifies the following vulnerabilities :

  • CVE-2005-2353 The 'run-mozilla.sh' script allows local users to create or overwrite arbitrary files when debugging is enabled via a symlink attack on temporary files.

  • CVE-2005-4134 Web pages with extremely long titles cause subsequent launches of the browser to appear to 'hang' for up to a few minutes, or even crash if the computer has insufficient memory. [MFSA-2006-03]

  • CVE-2006-0292 The JavaScript interpreter does not properly dereference objects, which allows remote attackers to cause a denial of service or execute arbitrary code. [MFSA-2006-01]

  • CVE-2006-0293 The function allocation code allows attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-01]

  • CVE-2006-0296 XULDocument.persist() did not validate the attribute name, allowing an attacker to inject arbitrary XML and JavaScript code into localstore.rdf that would be read and acted upon during startup. [MFSA-2006-05]

  • CVE-2006-0748 An anonymous researcher for TippingPoint and the Zero Day Initiative reported that an invalid and nonsensical ordering of table-related tags can be exploited to execute arbitrary code. [MFSA-2006-27]

  • CVE-2006-0749 A particular sequence of HTML tags can cause memory corruption that can be exploited to execute arbitrary code. [MFSA-2006-18]

  • CVE-2006-0884 Georgi Guninski reports that forwarding mail in-line while using the default HTML 'rich mail' editor will execute JavaScript embedded in the e-mail message with full privileges of the client. [MFSA-2006-21]

  • CVE-2006-1045 The HTML rendering engine does not properly block external images from inline HTML attachments when 'Block loading of remote images in mail messages' is enabled, which could allow remote attackers to obtain sensitive information. [MFSA-2006-26]

  • CVE-2006-1529 A vulnerability potentially allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-20]

  • CVE-2006-1530 A vulnerability potentially allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-20]

  • CVE-2006-1531 A vulnerability potentially allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-20]

  • CVE-2006-1723 A vulnerability potentially allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-20]

  • CVE-2006-1724 A vulnerability potentially allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-20]

  • CVE-2006-1725 Due to an interaction between XUL content windows and the history mechanism, some windows may to become translucent, which might allow remote attackers to execute arbitrary code. [MFSA-2006-29]

  • CVE-2006-1726 'shutdown' discovered that the security check of the function js_ValueToFunctionObject() can be circumvented and exploited to allow the installation of malware. [MFSA-2006-28]

  • CVE-2006-1727 Georgi Guninski reported two variants of using scripts in an XBL control to gain chrome privileges when the page is viewed under 'Print Preview'. [MFSA-2006-25]

  • CVE-2006-1728 'shutdown' discovered that the crypto.generateCRMFRequest method can be used to run arbitrary code with the privilege of the user running the browser, which could enable an attacker to install malware. [MFSA-2006-24]

  • CVE-2006-1729 Claus Jorgensen reported that a text input box can be pre-filled with a filename and then turned into a file-upload control, allowing a malicious website to steal any local file whose name they can guess. [MFSA-2006-23]

  • CVE-2006-1730 An anonymous researcher for TippingPoint and the Zero Day Initiative discovered an integer overflow triggered by the CSS letter-spacing property, which could be exploited to execute arbitrary code. [MFSA-2006-22]

  • CVE-2006-1731 'moz_bug_r_a4' discovered that some internal functions return prototypes instead of objects, which allows remote attackers to conduct cross-site scripting attacks. [MFSA-2006-19]

  • CVE-2006-1732 'shutdown' discovered that it is possible to bypass same-origin protections, allowing a malicious site to inject script into content from another site, which could allow the malicious page to steal information such as cookies or passwords from the other site, or perform transactions on the user's behalf if the user were already logged in. [MFSA-2006-17]

  • CVE-2006-1733 'moz_bug_r_a4' discovered that the compilation scope of privileged built-in XBL bindings is not fully protected from web content and can still be executed which could be used to execute arbitrary JavaScript, which could allow an attacker to install malware such as viruses and password sniffers. [MFSA-2006-16]

  • CVE-2006-1734 'shutdown' discovered that it is possible to access an internal function object which could then be used to run arbitrary JavaScript code with full permissions of the user running the browser, which could be used to install spyware or viruses. [MFSA-2006-15]

  • CVE-2006-1735 It is possible to create JavaScript functions that would get compiled with the wrong privileges, allowing an attacker to run code of their choice with full permissions of the user running the browser, which could be used to install spyware or viruses. [MFSA-2006-14]

  • CVE-2006-1736 It is possible to trick users into downloading and saving an executable file via an image that is overlaid by a transparent image link that points to the executable. [MFSA-2006-13]

  • CVE-2006-1737 An integer overflow allows remote attackers to cause a denial of service and possibly execute arbitrary bytecode via JavaScript with a large regular expression. [MFSA-2006-11]

  • CVE-2006-1738 An unspecified vulnerability allows remote attackers to cause a denial of service. [MFSA-2006-11]

  • CVE-2006-1739 Certain Cascading Style Sheets (CSS) can cause an out-of-bounds array write and buffer overflow that could lead to a denial of service and the possible execution of arbitrary code. [MFSA-2006-11]

  • CVE-2006-1740 It is possible for remote attackers to spoof secure site indicators such as the locked icon by opening the trusted site in a popup window, then changing the location to a malicious site. [MFSA-2006-12]

  • CVE-2006-1741 'shutdown' discovered that it is possible to inject arbitrary JavaScript code into a page on another site using a modal alert to suspend an event handler while a new page is being loaded. This could be used to steal confidential information. [MFSA-2006-09]

  • CVE-2006-1742 Igor Bukanov discovered that the JavaScript engine does not properly handle temporary variables, which might allow remote attackers to trigger operations on freed memory and cause memory corruption. [MFSA-2006-10]

  • CVE-2006-1790 A regression fix that could lead to memory corruption allows remote attackers to cause a denial of service and possibly execute arbitrary code. [MFSA-2006-11]

                                        
                                            #%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-1046. 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(22588);
  script_version("1.28");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2005-2353", "CVE-2005-4134", "CVE-2006-0292", "CVE-2006-0293", "CVE-2006-0296", "CVE-2006-0748", "CVE-2006-0749", "CVE-2006-0884", "CVE-2006-1045", "CVE-2006-1529", "CVE-2006-1530", "CVE-2006-1531", "CVE-2006-1723", "CVE-2006-1724", "CVE-2006-1725", "CVE-2006-1726", "CVE-2006-1727", "CVE-2006-1728", "CVE-2006-1729", "CVE-2006-1730", "CVE-2006-1731", "CVE-2006-1732", "CVE-2006-1733", "CVE-2006-1734", "CVE-2006-1735", "CVE-2006-1736", "CVE-2006-1737", "CVE-2006-1738", "CVE-2006-1739", "CVE-2006-1740", "CVE-2006-1741", "CVE-2006-1742", "CVE-2006-1790");
  script_bugtraq_id(15773, 16476, 16770, 16881, 17516);
  script_xref(name:"CERT", value:"179014");
  script_xref(name:"CERT", value:"252324");
  script_xref(name:"CERT", value:"329500");
  script_xref(name:"CERT", value:"350262");
  script_xref(name:"CERT", value:"488774");
  script_xref(name:"CERT", value:"492382");
  script_xref(name:"CERT", value:"592425");
  script_xref(name:"CERT", value:"736934");
  script_xref(name:"CERT", value:"813230");
  script_xref(name:"CERT", value:"842094");
  script_xref(name:"CERT", value:"932734");
  script_xref(name:"CERT", value:"935556");
  script_xref(name:"DSA", value:"1046");

  script_name(english:"Debian DSA-1046-1 : mozilla - 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:
"Several security related problems have been discovered in Mozilla. The
Common Vulnerabilities and Exposures project identifies the following
vulnerabilities :

  - CVE-2005-2353
    The 'run-mozilla.sh' script allows local users to create
    or overwrite arbitrary files when debugging is enabled
    via a symlink attack on temporary files.

  - CVE-2005-4134
    Web pages with extremely long titles cause subsequent
    launches of the browser to appear to 'hang' for up to a
    few minutes, or even crash if the computer has
    insufficient memory. [MFSA-2006-03]

  - CVE-2006-0292
    The JavaScript interpreter does not properly dereference
    objects, which allows remote attackers to cause a denial
    of service or execute arbitrary code. [MFSA-2006-01]

  - CVE-2006-0293
    The function allocation code allows attackers to cause a
    denial of service and possibly execute arbitrary code.
    [MFSA-2006-01]

  - CVE-2006-0296
    XULDocument.persist() did not validate the attribute
    name, allowing an attacker to inject arbitrary XML and
    JavaScript code into localstore.rdf that would be read
    and acted upon during startup. [MFSA-2006-05]

  - CVE-2006-0748
    An anonymous researcher for TippingPoint and the Zero
    Day Initiative reported that an invalid and nonsensical
    ordering of table-related tags can be exploited to
    execute arbitrary code. [MFSA-2006-27]

  - CVE-2006-0749
    A particular sequence of HTML tags can cause memory
    corruption that can be exploited to execute arbitrary
    code. [MFSA-2006-18]

  - CVE-2006-0884
    Georgi Guninski reports that forwarding mail in-line
    while using the default HTML 'rich mail' editor will
    execute JavaScript embedded in the e-mail message with
    full privileges of the client. [MFSA-2006-21]

  - CVE-2006-1045
    The HTML rendering engine does not properly block
    external images from inline HTML attachments when 'Block
    loading of remote images in mail messages' is enabled,
    which could allow remote attackers to obtain sensitive
    information. [MFSA-2006-26]

  - CVE-2006-1529
    A vulnerability potentially allows remote attackers to
    cause a denial of service and possibly execute arbitrary
    code. [MFSA-2006-20]

  - CVE-2006-1530
    A vulnerability potentially allows remote attackers to
    cause a denial of service and possibly execute arbitrary
    code. [MFSA-2006-20]

  - CVE-2006-1531
    A vulnerability potentially allows remote attackers to
    cause a denial of service and possibly execute arbitrary
    code. [MFSA-2006-20]

  - CVE-2006-1723
    A vulnerability potentially allows remote attackers to
    cause a denial of service and possibly execute arbitrary
    code. [MFSA-2006-20]

  - CVE-2006-1724
    A vulnerability potentially allows remote attackers to
    cause a denial of service and possibly execute arbitrary
    code. [MFSA-2006-20]

  - CVE-2006-1725
    Due to an interaction between XUL content windows and
    the history mechanism, some windows may to become
    translucent, which might allow remote attackers to
    execute arbitrary code. [MFSA-2006-29]

  - CVE-2006-1726
    'shutdown' discovered that the security check of the
    function js_ValueToFunctionObject() can be circumvented
    and exploited to allow the installation of malware.
    [MFSA-2006-28]

  - CVE-2006-1727
    Georgi Guninski reported two variants of using scripts
    in an XBL control to gain chrome privileges when the
    page is viewed under 'Print Preview'. [MFSA-2006-25]

  - CVE-2006-1728
    'shutdown' discovered that the
    crypto.generateCRMFRequest method can be used to run
    arbitrary code with the privilege of the user running
    the browser, which could enable an attacker to install
    malware. [MFSA-2006-24]

  - CVE-2006-1729
    Claus Jorgensen reported that a text input box can be
    pre-filled with a filename and then turned into a
    file-upload control, allowing a malicious website to
    steal any local file whose name they can guess.
    [MFSA-2006-23]

  - CVE-2006-1730
    An anonymous researcher for TippingPoint and the Zero
    Day Initiative discovered an integer overflow triggered
    by the CSS letter-spacing property, which could be
    exploited to execute arbitrary code. [MFSA-2006-22]

  - CVE-2006-1731
    'moz_bug_r_a4' discovered that some internal functions
    return prototypes instead of objects, which allows
    remote attackers to conduct cross-site scripting
    attacks. [MFSA-2006-19]

  - CVE-2006-1732
    'shutdown' discovered that it is possible to bypass
    same-origin protections, allowing a malicious site to
    inject script into content from another site, which
    could allow the malicious page to steal information such
    as cookies or passwords from the other site, or perform
    transactions on the user's behalf if the user were
    already logged in. [MFSA-2006-17]

  - CVE-2006-1733
    'moz_bug_r_a4' discovered that the compilation scope of
    privileged built-in XBL bindings is not fully protected
    from web content and can still be executed which could
    be used to execute arbitrary JavaScript, which could
    allow an attacker to install malware such as viruses and
    password sniffers. [MFSA-2006-16]

  - CVE-2006-1734
    'shutdown' discovered that it is possible to access an
    internal function object which could then be used to run
    arbitrary JavaScript code with full permissions of the
    user running the browser, which could be used to install
    spyware or viruses. [MFSA-2006-15]

  - CVE-2006-1735
    It is possible to create JavaScript functions that would
    get compiled with the wrong privileges, allowing an
    attacker to run code of their choice with full
    permissions of the user running the browser, which could
    be used to install spyware or viruses. [MFSA-2006-14]

  - CVE-2006-1736
    It is possible to trick users into downloading and
    saving an executable file via an image that is overlaid
    by a transparent image link that points to the
    executable. [MFSA-2006-13]

  - CVE-2006-1737
    An integer overflow allows remote attackers to cause a
    denial of service and possibly execute arbitrary
    bytecode via JavaScript with a large regular expression.
    [MFSA-2006-11]

  - CVE-2006-1738
    An unspecified vulnerability allows remote attackers to
    cause a denial of service. [MFSA-2006-11]

  - CVE-2006-1739
    Certain Cascading Style Sheets (CSS) can cause an
    out-of-bounds array write and buffer overflow that could
    lead to a denial of service and the possible execution
    of arbitrary code. [MFSA-2006-11]

  - CVE-2006-1740
    It is possible for remote attackers to spoof secure site
    indicators such as the locked icon by opening the
    trusted site in a popup window, then changing the
    location to a malicious site. [MFSA-2006-12]

  - CVE-2006-1741
    'shutdown' discovered that it is possible to inject
    arbitrary JavaScript code into a page on another site
    using a modal alert to suspend an event handler while a
    new page is being loaded. This could be used to steal
    confidential information. [MFSA-2006-09]

  - CVE-2006-1742
    Igor Bukanov discovered that the JavaScript engine does
    not properly handle temporary variables, which might
    allow remote attackers to trigger operations on freed
    memory and cause memory corruption. [MFSA-2006-10]

  - CVE-2006-1790
    A regression fix that could lead to memory corruption
    allows remote attackers to cause a denial of service and
    possibly execute arbitrary code. [MFSA-2006-11]"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2005-2353"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2005-4134"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0292"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0293"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0296"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0748"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0749"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-0884"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1045"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1529"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1530"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1531"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1723"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1724"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1725"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1726"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1727"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1728"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1729"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1730"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1731"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1732"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1733"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1734"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1735"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1736"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1737"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1738"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1739"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1740"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1741"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1742"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2006-1790"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.debian.org/security/2006/dsa-1046"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Upgrade the Mozilla packages.

For the stable distribution (sarge) these problems have been fixed in
version 1.7.8-1sarge5."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/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:"metasploit_name", value:'Firefox location.QueryInterface() Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_cwe_id(20, 79, 119, 189, 264, 399);

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

  script_set_attribute(attribute:"patch_publication_date", value:"2006/04/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2006/10/14");
  script_set_attribute(attribute:"vuln_publication_date", value:"2005/02/09");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2006-2021 Tenable Network Security, Inc.");
  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:"libnspr-dev", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"libnspr4", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"libnss-dev", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"libnss3", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-browser", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-calendar", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-chatzilla", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-dev", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-dom-inspector", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-js-debugger", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-mailnews", reference:"1.7.8-1sarge5")) flag++;
if (deb_check(release:"3.1", prefix:"mozilla-psm", reference:"1.7.8-1sarge5")) 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");