GLSA-200812-07 : Mantis: Multiple vulnerabilities - Nessus

High   Plugin ID: 35024

This page contains detailed information about the GLSA-200812-07 : Mantis: Multiple vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 35024
Name: GLSA-200812-07 : Mantis: Multiple vulnerabilities
Filename: gentoo_GLSA-200812-07.nasl
Vulnerability Published: N/A
This Plugin Published: 2008-12-03
Last Modification Time: 2021-01-06
Plugin Version: 1.19
Plugin Type: local
Plugin Family: Gentoo Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/Gentoo/qpkg-list, Host/Gentoo/release, Host/local_checks_enabled

Vulnerability Information


Severity: High
Vulnerability Published: N/A
Patch Published: 2008-12-02
CVE [?]: CVE-2008-3102, CVE-2008-4687, CVE-2008-4688, CVE-2008-4689
CPE [?]: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:mantisbt

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200812-07 (Mantis: Multiple vulnerabilities)

Multiple issues have been reported in Mantis: EgiX reported that manage_proj_page.php does not correctly sanitize the sort parameter before passing it to create_function() in core/utility_api.php (CVE-2008-4687). Privileges of viewers are not sufficiently checked before composing a link with issue data in the source anchor (CVE-2008-4688). Mantis does not unset the session cookie during logout (CVE-2008-4689). Mantis does not set the secure flag for the session cookie in an HTTPS session (CVE-2008-3102). Impact :

Remote unauthenticated attackers could exploit these vulnerabilities to execute arbitrary PHP commands, disclose sensitive issue data, or hijack a user's sessions. Workaround :

There is no known workaround at this time.

Solution

All Mantis users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose '>=www-apps/mantisbt-1.1.4-r1'

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the GLSA-200812-07 : Mantis: Multiple vulnerabilities vulnerability:

  1. Metasploit: exploit/multi/http/mantisbt_manage_proj_page_rce
    [Mantis manage_proj_page PHP Code Execution]
  2. Exploit-DB: exploits/php/remote/44611.rb
    [EDB-44611: Mantis Bug Tracker 1.1.3 - 'manage_proj_page' PHP Code Execution (Metasploit)]
  3. GitHub: https://github.com/nmurilo/CVE-2008-4687-exploit
    [CVE-2008-4687]
  4. GitHub: https://github.com/twisted007/mantis_rce
    [CVE-2008-4687]
  5. Immunity Canvas: CANVAS

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:S/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:9.0 (High)
Impact Subscore:10.0
Exploitability Subscore:8.0
CVSS Temporal Score:7.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.4 (High)

Go back to menu.

Plugin Source


This is the gentoo_GLSA-200812-07.nasl nessus plugin source code. This script is Copyright (C) 2008-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Gentoo Linux Security Advisory GLSA 200812-07.
#
# The advisory text is Copyright (C) 2001-2018 Gentoo Foundation, Inc.
# and licensed under the Creative Commons - Attribution / Share Alike 
# license. See http://creativecommons.org/licenses/by-sa/3.0/
#

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

if (description)
{
  script_id(35024);
  script_version("1.19");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");

  script_cve_id("CVE-2008-3102", "CVE-2008-4687", "CVE-2008-4688", "CVE-2008-4689");
  script_bugtraq_id(31344);
  script_xref(name:"GLSA", value:"200812-07");

  script_name(english:"GLSA-200812-07 : Mantis: Multiple vulnerabilities");
  script_summary(english:"Checks for updated package(s) in /var/db/pkg");

  script_set_attribute(
    attribute:"synopsis", 
    value:
"The remote Gentoo host is missing one or more security-related
patches."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"The remote host is affected by the vulnerability described in GLSA-200812-07
(Mantis: Multiple vulnerabilities)

    Multiple issues have been reported in Mantis:
    EgiX reported that manage_proj_page.php does not correctly sanitize the
    sort parameter before passing it to create_function() in
    core/utility_api.php (CVE-2008-4687).
    Privileges of viewers are not sufficiently checked before composing a
    link with issue data in the source anchor (CVE-2008-4688).
    Mantis does not unset the session cookie during logout (CVE-2008-4689).
    Mantis does not set the secure flag for the session cookie in an HTTPS
    session (CVE-2008-3102).
  
Impact :

    Remote unauthenticated attackers could exploit these vulnerabilities to
    execute arbitrary PHP commands, disclose sensitive issue data, or
    hijack a user's sessions.
  
Workaround :

    There is no known workaround at this time."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security.gentoo.org/glsa/200812-07"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"All Mantis users should upgrade to the latest version:
    # emerge --sync
    # emerge --ask --oneshot --verbose '>=www-apps/mantisbt-1.1.4-r1'"
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C");
  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_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Mantis manage_proj_page PHP Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_cwe_id(94, 200, 287, 310);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:mantisbt");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");

  script_set_attribute(attribute:"patch_publication_date", value:"2008/12/02");
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/12/03");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2008-2021 Tenable Network Security, Inc.");
  script_family(english:"Gentoo Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");

  exit(0);
}


include("audit.inc");
include("global_settings.inc");
include("qpkg.inc");

if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;

if (qpkg_check(package:"www-apps/mantisbt", unaffected:make_list("ge 1.1.4-r1"), vulnerable:make_list("lt 1.1.4-r1"))) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:qpkg_report_get());
  else security_hole(0);
  exit(0);
}
else
{
  tested = qpkg_tests_get();
  if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
  else audit(AUDIT_PACKAGE_NOT_INSTALLED, "Mantis");
}

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

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

Go back to menu.

How to Run


Here is how to run the GLSA-200812-07 : Mantis: Multiple 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 Gentoo Local Security Checks plugin family.
  6. On the right side table select GLSA-200812-07 : Mantis: Multiple vulnerabilities plugin ID 35024.
  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 gentoo_GLSA-200812-07.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a gentoo_GLSA-200812-07.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - gentoo_GLSA-200812-07.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 gentoo_GLSA-200812-07.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: GLSA | Gentoo Linux Security Advisory: CWE | Common Weakness Enumeration:
  • CWE-94 (Weakness) Improper Control of Generation of Code ('Code Injection')
  • CWE-200 (Weakness) Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-287 (Weakness) Improper Authentication
  • CWE-310 (Category) Cryptographic Issues
See also: Similar and related Nessus plugins:
  • 35057 - FreeBSD : mantis -- php code execution vulnerability (af2745c0-c3e0-11dd-a721-0030843d3802)
  • 32353 - GLSA-200805-16 : OpenOffice.org: Multiple vulnerabilities
  • 33085 - GLSA-200806-02 : libxslt: Execution of arbitrary code
  • 33421 - GLSA-200807-01 : Python: Multiple integer overflows
  • 33473 - GLSA-200807-06 : Apache: Denial of Service
  • 33494 - GLSA-200807-08 : BIND: Cache poisoning
  • 33782 - GLSA-200807-16 : Python: Multiple vulnerabilities
  • 33831 - GLSA-200808-01 : xine-lib: User-assisted execution of arbitrary code
  • 33832 - GLSA-200808-02 : Net-SNMP: Multiple vulnerabilities
  • 33833 - GLSA-200808-03 : Mozilla products: Multiple vulnerabilities
  • 33891 - GLSA-200808-12 : Postfix: Local privilege escalation vulnerability
  • 34091 - GLSA-200809-02 : dnsmasq: Denial of Service and DNS spoofing
  • 34093 - GLSA-200809-04 : MySQL: Privilege bypass
  • 34248 - GLSA-200809-09 : Postfix: Denial of Service
  • 34250 - GLSA-200809-10 : Mantis: Multiple vulnerabilities
  • 34365 - GLSA-200810-01 : WordNet: Execution of arbitrary code
  • 34689 - GLSA-200811-01 : Opera: Multiple vulnerabilities
  • 35023 - GLSA-200812-06 : libxml2: Multiple vulnerabilities
  • 35188 - GLSA-200812-17 : Ruby: Multiple vulnerabilities
  • 35268 - GLSA-200812-21 : ClamAV: Multiple vulnerabilities
  • 35271 - GLSA-200812-24 : VLC: Multiple vulnerabilities
  • 35347 - GLSA-200901-03 : pdnsd: Denial of Service and cache poisoning
  • 35348 - GLSA-200901-04 : D-Bus: Denial of Service
  • 35367 - GLSA-200901-09 : Adobe Reader: User-assisted execution of arbitrary code
  • 35380 - GLSA-200901-11 : Avahi: Denial of Service
  • 35675 - GLSA-200902-04 : xterm: User-assisted arbitrary commands execution
  • 35813 - GLSA-200903-15 : git: Multiple vulnerabilities
  • 35816 - GLSA-200903-18 : Openswan: Insecure temporary file creation
  • 35819 - GLSA-200903-21 : cURL: Arbitrary file access
  • 35904 - GLSA-200903-23 : Adobe Flash Player: Multiple vulnerabilities
  • 35917 - GLSA-200903-27 : ProFTPD: Multiple vulnerabilities
  • 35943 - GLSA-200903-30 : Opera: Multiple vulnerabilities
  • 35964 - GLSA-200903-32 : phpMyAdmin: Multiple vulnerabilities
  • 36013 - GLSA-200903-38 : Squid: Multiple Denial of Service vulnerabilities
  • 36027 - GLSA-200903-39 : pam_krb5: Privilege escalation

Version


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

Go back to menu.