Vulnerabilities > CVE-2012-4197 - Information Exposure vulnerability in Mozilla Bugzilla

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
NONE
Availability impact
NONE
network
low complexity
mozilla
CWE-200
nessus

Summary

Bugzilla/Attachment.pm in attachment.cgi in Bugzilla 2.x and 3.x before 3.6.12, 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1 allows remote attackers to read attachment descriptions from private bugs via an obsolete=1 insert action.

Vulnerable Configurations

Part Description Count
Application
Mozilla
183

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Nessus

  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2013-066.NASL
    descriptionMultiple vulnerablilities was identified and fixed in bugzilla : The get_attachment_link function in Template.pm in Bugzilla 2.x and 3.x before 3.6.10, 3.7.x and 4.0.x before 4.0.7, 4.1.x and 4.2.x before 4.2.2, and 4.3.x before 4.3.2 does not check whether an attachment is private before presenting the attachment description within a public comment, which allows remote attackers to obtain sensitive description information by reading a comment (CVE-2012-1969). Auth/Verify/LDAP.pm in Bugzilla 2.x and 3.x before 3.6.11, 3.7.x and 4.0.x before 4.0.8, 4.1.x and 4.2.x before 4.2.3, and 4.3.x before 4.3.3 does not restrict the characters in a username, which might allow remote attackers to inject data into an LDAP directory via a crafted login attempt (CVE-2012-3981). Cross-site scripting (XSS) vulnerability in Bugzilla 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1, allows remote attackers to inject arbitrary web script or HTML via a field value that is not properly handled during construction of a tabular report, as demonstrated by the Version field (CVE-2012-4189). Bugzilla/Attachment.pm in attachment.cgi in Bugzilla 2.x and 3.x before 3.6.12, 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1 allows remote attackers to read attachment descriptions from private bugs via an obsolete=1 insert action (CVE-2012-4197). The User.get method in Bugzilla/WebService/User.pm in Bugzilla 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1 has a different outcome for a groups request depending on whether a group exists, which allows remote authenticated users to discover private group names by observing whether a call throws an error (CVE-2012-4198). template/en/default/bug/field-events.js.tmpl in Bugzilla 3.x before 3.6.12, 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1 generates JavaScript function calls containing private product names or private component names in certain circumstances involving custom-field visibility control, which allows remote attackers to obtain sensitive information by reading HTML source code (CVE-2012-4199). Cross-site scripting (XSS) vulnerability in the Flash component infrastructure in YUI 2.8.0 through 2.9.0, as used in Bugzilla 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1, allows remote attackers to inject arbitrary web script or HTML via vectors related to swfstore.swf, a similar issue to CVE-2010-4209 (CVE-2012-5883). Cross-site scripting (XSS) vulnerability in show_bug.cgi in Bugzilla before 3.6.13, 3.7.x and 4.0.x before 4.0.10, 4.1.x and 4.2.x before 4.2.5, and 4.3.x and 4.4.x before 4.4rc2 allows remote attackers to inject arbitrary web script or HTML via the id parameter in conjunction with an invalid value of the format parameter (CVE-2013-0785). The Bugzilla::Search::build_subselect function in Bugzilla 2.x and 3.x before 3.6.13 and 3.7.x and 4.0.x before 4.0.10 generates different error messages for invalid product queries depending on whether a product exists, which allows remote attackers to discover private product names by using debug mode for a query (CVE-2013-0786). The updated packages have upgraded to the 4.2.5 version which is not vulnerable to these issues
    last seen2020-06-01
    modified2020-06-02
    plugin id66080
    published2013-04-20
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/66080
    titleMandriva Linux Security Advisory : bugzilla (MDVSA-2013:066)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2013:066. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    if (NASL_LEVEL < 3000) exit(0);
    
    include("compat.inc");
    
    if (description)
    {
      script_id(66080);
      script_version("1.8");
      script_cvs_date("Date: 2019/08/02 13:32:55");
    
      script_cve_id("CVE-2012-1969", "CVE-2012-3981", "CVE-2012-4189", "CVE-2012-4197", "CVE-2012-4198", "CVE-2012-4199", "CVE-2012-5883", "CVE-2013-0785", "CVE-2013-0786");
      script_bugtraq_id(54708, 55349, 56385, 56504, 58001, 58060);
      script_xref(name:"MDVSA", value:"2013:066");
    
      script_name(english:"Mandriva Linux Security Advisory : bugzilla (MDVSA-2013:066)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Multiple vulnerablilities was identified and fixed in bugzilla :
    
    The get_attachment_link function in Template.pm in Bugzilla 2.x and
    3.x before 3.6.10, 3.7.x and 4.0.x before 4.0.7, 4.1.x and 4.2.x
    before 4.2.2, and 4.3.x before 4.3.2 does not check whether an
    attachment is private before presenting the attachment description
    within a public comment, which allows remote attackers to obtain
    sensitive description information by reading a comment
    (CVE-2012-1969).
    
    Auth/Verify/LDAP.pm in Bugzilla 2.x and 3.x before 3.6.11, 3.7.x and
    4.0.x before 4.0.8, 4.1.x and 4.2.x before 4.2.3, and 4.3.x before
    4.3.3 does not restrict the characters in a username, which might
    allow remote attackers to inject data into an LDAP directory via a
    crafted login attempt (CVE-2012-3981).
    
    Cross-site scripting (XSS) vulnerability in Bugzilla 4.1.x and 4.2.x
    before 4.2.4, and 4.3.x and 4.4.x before 4.4rc1, allows remote
    attackers to inject arbitrary web script or HTML via a field value
    that is not properly handled during construction of a tabular report,
    as demonstrated by the Version field (CVE-2012-4189).
    
    Bugzilla/Attachment.pm in attachment.cgi in Bugzilla 2.x and 3.x
    before 3.6.12, 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before
    4.2.4, and 4.3.x and 4.4.x before 4.4rc1 allows remote attackers to
    read attachment descriptions from private bugs via an obsolete=1
    insert action (CVE-2012-4197).
    
    The User.get method in Bugzilla/WebService/User.pm in Bugzilla 3.7.x
    and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and
    4.4.x before 4.4rc1 has a different outcome for a groups request
    depending on whether a group exists, which allows remote authenticated
    users to discover private group names by observing whether a call
    throws an error (CVE-2012-4198).
    
    template/en/default/bug/field-events.js.tmpl in Bugzilla 3.x before
    3.6.12, 3.7.x and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4,
    and 4.3.x and 4.4.x before 4.4rc1 generates JavaScript function calls
    containing private product names or private component names in certain
    circumstances involving custom-field visibility control, which allows
    remote attackers to obtain sensitive information by reading HTML
    source code (CVE-2012-4199).
    
    Cross-site scripting (XSS) vulnerability in the Flash component
    infrastructure in YUI 2.8.0 through 2.9.0, as used in Bugzilla 3.7.x
    and 4.0.x before 4.0.9, 4.1.x and 4.2.x before 4.2.4, and 4.3.x and
    4.4.x before 4.4rc1, allows remote attackers to inject arbitrary web
    script or HTML via vectors related to swfstore.swf, a similar issue to
    CVE-2010-4209 (CVE-2012-5883).
    
    Cross-site scripting (XSS) vulnerability in show_bug.cgi in Bugzilla
    before 3.6.13, 3.7.x and 4.0.x before 4.0.10, 4.1.x and 4.2.x before
    4.2.5, and 4.3.x and 4.4.x before 4.4rc2 allows remote attackers to
    inject arbitrary web script or HTML via the id parameter in
    conjunction with an invalid value of the format parameter
    (CVE-2013-0785).
    
    The Bugzilla::Search::build_subselect function in Bugzilla 2.x and 3.x
    before 3.6.13 and 3.7.x and 4.0.x before 4.0.10 generates different
    error messages for invalid product queries depending on whether a
    product exists, which allows remote attackers to discover private
    product names by using debug mode for a query (CVE-2013-0786).
    
    The updated packages have upgraded to the 4.2.5 version which is not
    vulnerable to these issues"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected bugzilla and / or bugzilla-contrib packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:bugzilla");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:bugzilla-contrib");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:business_server:1");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2013/04/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/04/20");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK-MBS1", reference:"bugzilla-4.2.5-1.mbs1")) flag++;
    if (rpm_check(release:"MDK-MBS1", reference:"bugzilla-contrib-4.2.5-1.mbs1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCGI abuses
    NASL idBUGZILLA_3_6_12.NASL
    descriptionAccording to its banner, the version of Bugzilla installed on the remote host is affected by multiple vulnerabilities : - Due to incorrectly filtered field values in tabular reports, code can be injected, which could allow cross-site scripting (XSS). Note that this affects versions 4.1.1 to 4.2.3 and 4.3.1 to 4.3.3. (CVE-2012-4189) - When trying to mark an attachment in a restricted bug as obsolete, the description is disclosed in the resulting error message. Note that this affects versions 2.16 to 3.6.11, 3.7.1 to 4.0.8, 4.1.1 to 4.2.3, and 4.3.1 to 4.3.3. (CVE-2012-4197) - When calling the User.get method with a
    last seen2020-06-01
    modified2020-06-02
    plugin id62973
    published2012-11-20
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/62973
    titleBugzilla < 3.6.12 / 4.0.9 / 4.2.4 / 4.4rc1 Multiple Vulnerabilities
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(62973);
      script_version("1.9");
      script_cvs_date("Date: 2018/11/15 20:50:16");
    
      script_cve_id(
        "CVE-2012-4189",
        "CVE-2012-4197",
        "CVE-2012-4198",
        "CVE-2012-4199",
        "CVE-2012-5883"
      );
      script_bugtraq_id(56385, 56504);
    
      script_name(english:"Bugzilla < 3.6.12 / 4.0.9 / 4.2.4 / 4.4rc1 Multiple Vulnerabilities");
      script_summary(english:"Checks Bugzilla version number");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote web server contains a CGI application that suffers from
    multiple vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "According to its banner, the version of Bugzilla installed on the
    remote host is affected by multiple vulnerabilities :
    
      - Due to incorrectly filtered field values in tabular
        reports, code can be injected, which could allow
        cross-site scripting (XSS).  Note that this affects
        versions 4.1.1 to 4.2.3 and 4.3.1 to 4.3.3.
        (CVE-2012-4189)
    
      - When trying to mark an attachment in a restricted bug as
        obsolete, the description is disclosed in the resulting
        error message.  Note that this affects versions 2.16 to
        3.6.11, 3.7.1 to 4.0.8, 4.1.1 to 4.2.3, and 4.3.1 to
        4.3.3. (CVE-2012-4197)
    
      - When calling the User.get method with a 'groups'
        argument, the existence of the groups is leaked, which
        could allow an attacker to identify groups via an error
        message.  Note that this affects versions 3.7.1 to
        4.0.8,
        4.1.1 to 4.2.3, and 4.3.1 to 4.3.3. (CVE-2012-4198)
    
      - Custom field names are disclosed in the JavaScript
        code generated when the visibility of a custom field is
        controlled by a restricted product or component of a
        product.  Note that this affects versions 3.3.4 to
        3.6.11, 3.7.1 to 4.0.8, 4.1.1 to 4.2.3, and 4.3.1
        to 4.3.3. (CVE-2012-4199)
    
      - A vulnerability exists in swfstore.swf from YUI2 that
        could allow JavaScript injection exploits to be created
        against domains hosting the affected YUI .swf file. 
        Note
        that this affects versions 3.7.1 to 4.0.8, 4.1.1 to
        4.2.3, and 4.3.1 to 4.3.3. (CVE-2012-5883)
    
    Note that Nessus has not tested for these issues but has instead
    relied only on the application's self-reported version number.");
      script_set_attribute(attribute:"see_also", value:"https://www.bugzilla.org/security/3.6.11/");
      script_set_attribute(attribute:"solution", value:"Upgrade to Bugzilla 3.6.12 / 4.0.9 / 4.2.4 / 4.4rc1 or later.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/11/13");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/11/13");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/20");
    
      script_set_attribute(attribute:"potential_vulnerability", value:"true");
      script_set_attribute(attribute:"plugin_type", value:"remote");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:mozilla:bugzilla");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CGI abuses");
    
      script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc.");
    
      script_dependencies("bugzilla_detect.nasl");
      script_exclude_keys("Settings/disable_cgi_scanning");
      script_require_keys("installed_sw/Bugzilla", "Settings/ParanoidReport");
      script_require_ports("Services/www", 80);
    
      exit(0);
    }
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    include("install_func.inc");
    
    if (report_paranoia < 2) audit(AUDIT_PARANOID);
    
    app = 'Bugzilla';
    get_install_count(app_name:app, exit_if_zero:TRUE);
    
    port = get_http_port(default:80);
    
    install = get_single_install(
      app_name : app,
      port     : port,
      exit_if_unknown_ver : TRUE
    );
    
    dir = install["path"];
    version = install["version"];
    
    install_loc = build_url(port:port, qs:dir + "/query.cgi");
    
    ver = split(version, sep:".", keep:FALSE);
    for (i=0; i<max_index(ver); i++)
      ver[i] = int(ver[i]);
    
    # Versions less than 3.6.12 / 4.0.9 / 4.2.4 / 4.4rc1 are vulnerable
    # Specific ranges were provided by bugzilla.org/security/3.6.11/
    if (
      # 2.16 to 3.6.11
      (ver[0] == 2 && ver[1] > 15) ||
      (ver[0] == 3 && ver[1] < 6) ||
      (ver[0] == 3 && ver[1] == 6 && ver[2] < 12) ||
    
      # 3.7.1 to 4.0.8
      (ver[0] == 3 && ver[1] == 7 && ver[2] > 0) ||
      (ver[0] == 3 && ver[1] > 7) ||
      (ver[0] == 4 && ver[1] == 0 && ver[2] < 9) ||
    
      # 4.1.1 to 4.2.3
      (ver[0] == 4 && ver[1] == 1 && ver[2] > 0) ||
      (ver[0] == 4 && ver[1] == 2 && ver[2] < 4) ||
    
      # 4.3.1 to 4.3.3
      (ver[0] == 4 && ver[1] == 3 && ver[2] > 0 && ver[2] <= 3)
    )
    
    {
      set_kb_item(name:'www/'+port+'/XSS', value:TRUE);
      if (report_verbosity > 0)
      {
        report =
          '\n  URL               : ' +install_loc+
          '\n  Installed version : ' +version+
          '\n  Fixed version     : 3.6.12 / 4.0.9 / 4.2.4 / 4.4rc1\n';
        security_warning(port:port, extra:report);
      }
      else security_warning(port);
    }
    else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_loc, version);
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_2B841F882E8D11E2AD2120CF30E32F6D.NASL
    descriptionA Bugzilla Security Advisory reports : The following security issues have been discovered in Bugzilla : Information Leak If the visibility of a custom field is controlled by a product or a component of a product you cannot see, their names are disclosed in the JavaScript code generated for this custom field despite they should remain confidential. Calling the User.get method with a
    last seen2020-06-01
    modified2020-06-02
    plugin id62956
    published2012-11-19
    reporterThis script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/62956
    titleFreeBSD : bugzilla -- multiple vulnerabilities (2b841f88-2e8d-11e2-ad21-20cf30e32f6d)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from the FreeBSD VuXML database :
    #
    # Copyright 2003-2018 Jacques Vidrine and contributors
    #
    # Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
    # HTML, PDF, PostScript, RTF and so forth) with or without modification,
    # are permitted provided that the following conditions are met:
    # 1. Redistributions of source code (VuXML) must retain the above
    #    copyright notice, this list of conditions and the following
    #    disclaimer as the first lines of this file unmodified.
    # 2. Redistributions in compiled form (transformed to other DTDs,
    #    published online in any format, converted to PDF, PostScript,
    #    RTF and other formats) must reproduce the above copyright
    #    notice, this list of conditions and the following disclaimer
    #    in the documentation and/or other materials provided with the
    #    distribution.
    # 
    # THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
    # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
    # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
    # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    # OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    # OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
    # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
    # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
    # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(62956);
      script_version("1.6");
      script_cvs_date("Date: 2018/11/21 10:46:30");
    
      script_cve_id("CVE-2012-4189", "CVE-2012-4197", "CVE-2012-4198", "CVE-2012-4199", "CVE-2012-5881", "CVE-2012-5882", "CVE-2012-5883");
    
      script_name(english:"FreeBSD : bugzilla -- multiple vulnerabilities (2b841f88-2e8d-11e2-ad21-20cf30e32f6d)");
      script_summary(english:"Checks for updated packages in pkg_info output");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote FreeBSD host is missing one or more security-related
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A Bugzilla Security Advisory reports : The following security issues
    have been discovered in Bugzilla : Information Leak If the visibility
    of a custom field is controlled by a product or a component of a
    product you cannot see, their names are disclosed in the JavaScript
    code generated for this custom field despite they should remain
    confidential.
    
    Calling the User.get method with a 'groups' argument leaks the
    existence of the groups depending on whether an error is thrown or
    not. This method now also throws an error if the user calling this
    method does not belong to these groups (independently of whether the
    groups exist or not).
    
    Trying to mark an attachment in a bug you cannot see as obsolete
    discloses its description in the error message. The description of the
    attachment is now removed from the error message. Cross-Site Scripting
    Due to incorrectly filtered field values in tabular reports, it is
    possible to inject code leading to XSS.
    
    A vulnerability in swfstore.swf from YUI2 allows JavaScript injection
    exploits to be created against domains that host this affected YUI
    .swf file."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.mozilla.org/show_bug.cgi?id=731178"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.mozilla.org/show_bug.cgi?id=781850"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.mozilla.org/show_bug.cgi?id=802204"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.mozilla.org/show_bug.cgi?id=790296"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.mozilla.org/show_bug.cgi?id=808845"
      );
      # http://yuilibrary.com/support/20121030-vulnerability/
      script_set_attribute(
        attribute:"see_also",
        value:"https://yuilibrary.com/support/20121030-vulnerability/"
      );
      # https://vuxml.freebsd.org/freebsd/2b841f88-2e8d-11e2-ad21-20cf30e32f6d.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?fadc481e"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:bugzilla");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2012/11/13");
      script_set_attribute(attribute:"patch_publication_date", value:"2012/11/14");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/19");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"FreeBSD Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("freebsd_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
    if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (pkg_test(save_report:TRUE, pkg:"bugzilla>=3.6.0<3.6.12")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"bugzilla>=4.0.0<4.0.9")) flag++;
    if (pkg_test(save_report:TRUE, pkg:"bugzilla>=4.2.0<4.2.4")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");