MantisBT 1.2.x < 1.2.18 Multiple Vulnerabilities - Nessus

High   Plugin ID: 80914

This page contains detailed information about the MantisBT 1.2.x < 1.2.18 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: 80914
Name: MantisBT 1.2.x < 1.2.18 Multiple Vulnerabilities
Filename: mantis_1_2_18.nasl
Vulnerability Published: 2014-12-06
This Plugin Published: 2015-01-22
Last Modification Time: 2022-04-11
Plugin Version: 1.8
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: mantis_detect.nasl
Required KB Items [?]: installed_sw/MantisBT, Settings/ParanoidReport

Vulnerability Information


Severity: High
Vulnerability Published: 2014-12-06
Patch Published: 2014-12-06
CVE [?]: CVE-2014-6316, CVE-2014-6387, CVE-2014-7146, CVE-2014-8553, CVE-2014-8554, CVE-2014-8598, CVE-2014-8986, CVE-2014-8987, CVE-2014-8988, CVE-2014-9089, CVE-2014-9117, CVE-2014-9269, CVE-2014-9270, CVE-2014-9271, CVE-2014-9272, CVE-2014-9279, CVE-2014-9280, CVE-2014-9281
CPE [?]: cpe:/a:mantisbt:mantisbt

Synopsis

The remote web server contains a PHP application that is affected by multiple vulnerabilities.

Description

According to its version number, the MantisBT application hosted on the remote web server is 1.2.x prior to 1.2.18. It is, therefore, affected by the following vulnerabilities :

- Multiple input-validation errors exist that could allow cross-site scripting attacks. (CVE-2014-7146, CVE-2014-8986, CVE-2014-8987, CVE-2014-9269, CVE-2014-9270, CVE-2014-9271, CVE-2014-9272, CVE-2014-9280, CVE-2014-9281)

- Two unspecified errors exist that could allow SQL injection attacks. (CVE-2014-8554, CVE-2014-9089)

- Three unspecified errors exist that could allow information disclosure attacks. (CVE-2014-8553, CVE-2014-8988, CVE-2014-9279)

- An error exists in the file 'core/string_api.php' that could allow open redirect attacks. (CVE-2014-6316)

- An error exists in the file 'gpc_api.php' that could allow an attacker to bypass authentication protections by using a password that starts with a NULL byte. (CVE-2014-6387)

- An error exists in the 'XML Import/Export' plugin that could allow unauthorized attackers to upload XML files or obtain sensitive information. (CVE-2014-8598)

- An error exists related to the CAPTCHA protection mechanism and the parameter 'public_key' that could allow security bypasses. (CVE-2014-9117)

Note that Nessus has not attempted to exploit this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to version 1.2.18 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the MantisBT 1.2.x < 1.2.18 Multiple Vulnerabilities vulnerability:

  1. Metasploit: exploit/multi/http/mantisbt_php_exec
    [MantisBT XmlImportExport Plugin PHP Code Injection Vulnerability]
  2. Exploit-DB: exploits/php/remote/35283.rb
    [EDB-35283: Mantis Bug Tracker 1.2.0a3 < 1.2.17 XmlImportExport Plugin - PHP Code Injection (Metasploit) (2)]
  3. Exploit-DB: exploits/multiple/webapps/41685.rb
    [EDB-41685: Mantis Bug Tracker 1.2.0a3 < 1.2.17 XmlImportExport Plugin - PHP Code Injection (Metasploit) (1)]

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:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the mantis_1_2_18.nasl nessus plugin source code. This script is Copyright (C) 2015-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

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

if (description)
{
  script_id(80914);
  script_version("1.8");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id(
    "CVE-2014-6316",
    "CVE-2014-6387",
    "CVE-2014-7146",
    "CVE-2014-8553",
    "CVE-2014-8554",
    "CVE-2014-8598",
    "CVE-2014-8986",
    "CVE-2014-8987",
    "CVE-2014-8988",
    "CVE-2014-9089",
    "CVE-2014-9117",
    "CVE-2014-9269",
    "CVE-2014-9270",
    "CVE-2014-9271",
    "CVE-2014-9272",
    "CVE-2014-9279",
    "CVE-2014-9280",
    "CVE-2014-9281"
  );
  script_bugtraq_id(
    70856,
    70993,
    70996,
    71104,
    71321,
    71359,
    71361,
    71371,
    71372,
    71478
  );

  script_name(english:"MantisBT 1.2.x < 1.2.18 Multiple Vulnerabilities");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is affected by
multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its version number, the MantisBT application hosted on
the remote web server is 1.2.x prior to 1.2.18. It is, therefore,
affected by the following vulnerabilities :

  - Multiple input-validation errors exist that could allow
    cross-site scripting attacks. (CVE-2014-7146,
    CVE-2014-8986, CVE-2014-8987, CVE-2014-9269,
    CVE-2014-9270, CVE-2014-9271, CVE-2014-9272,
    CVE-2014-9280, CVE-2014-9281)

  - Two unspecified errors exist that could allow SQL
    injection attacks. (CVE-2014-8554, CVE-2014-9089)

  - Three unspecified errors exist that could allow
    information disclosure attacks. (CVE-2014-8553,
    CVE-2014-8988, CVE-2014-9279)

  - An error exists in the file 'core/string_api.php' that
    could allow open redirect attacks. (CVE-2014-6316)

  - An error exists in the file 'gpc_api.php' that could
    allow an attacker to bypass authentication protections
    by using a password that starts with a NULL byte.
    (CVE-2014-6387)

  - An error exists in the 'XML Import/Export' plugin that
    could allow unauthorized attackers to upload XML files
    or obtain sensitive information. (CVE-2014-8598)

  - An error exists related to the CAPTCHA protection
    mechanism and the parameter 'public_key' that could
    allow security bypasses. (CVE-2014-9117)

Note that Nessus has not attempted to exploit this issue but has
instead relied only on the application's self-reported version number.");
  script_set_attribute(attribute:"see_also", value:"https://mantisbt.org/blog/archives/mantisbt/301");
  script_set_attribute(attribute:"see_also", value:"https://www.mantisbt.org/bugs/changelog_page.php?version_id=191");
  script_set_attribute(attribute:"solution", value:
"Upgrade to version 1.2.18 or later.");
  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: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:"metasploit_name", value:'MantisBT XmlImportExport Plugin PHP Code Injection Vulnerability');
  script_set_attribute(attribute:"exploit_framework_metasploit", 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:"2014/12/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/12/06");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/01/22");

  script_set_attribute(attribute:"potential_vulnerability", value:"true");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:mantisbt:mantisbt");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2015-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("mantis_detect.nasl");
  script_require_keys("installed_sw/MantisBT", "Settings/ParanoidReport");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("install_func.inc");

port = get_http_port(default:80, php:TRUE);

app_name = "MantisBT";

install = get_single_install(app_name: app_name, port: port, exit_if_unknown_ver:TRUE);
install_url = build_url(port:port, qs:install['path']);
version = install['version'];

if (report_paranoia < 2) audit(AUDIT_PARANOID);

ver = split(version, sep:".", keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

# Versions 1.2.x < 1.2.18 are vulnerable
if (ver[0] == 1 && ver[1] == 2 && ver[2] < 18)
{
  set_kb_item(name:'www/'+port+'/SQLInjection', value:TRUE);
  set_kb_item(name:'www/'+port+'/XSS', value:TRUE);

  if (report_verbosity > 0)
  {
    report =
      '\n  URL               : ' +install_url+
      '\n  Installed version : ' +version+
      '\n  Fixed version     : 1.2.18\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app_name, install_url, version);

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

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

Go back to menu.

How to Run


Here is how to run the MantisBT 1.2.x < 1.2.18 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 CGI abuses plugin family.
  6. On the right side table select MantisBT 1.2.x < 1.2.18 Multiple Vulnerabilities plugin ID 80914.
  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 mantis_1_2_18.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-74 (Weakness) Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-442 (Category) DEPRECATED: Web Problems
  • CWE-629 (View) Weaknesses in OWASP Top Ten (2007)
  • CWE-711 (View) Weaknesses in OWASP Top Ten (2004)
  • CWE-712 (Category) OWASP Top Ten 2007 Category A1 - Cross Site Scripting (XSS)
  • CWE-722 (Category) OWASP Top Ten 2004 Category A1 - Unvalidated Input
  • CWE-725 (Category) OWASP Top Ten 2004 Category A4 - Cross-Site Scripting (XSS) Flaws
  • CWE-750 (View) Weaknesses in the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-751 (Category) 2009 Top 25 - Insecure Interaction Between Components
  • CWE-800 (View) Weaknesses in the 2010 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-801 (Category) 2010 Top 25 - Insecure Interaction Between Components
  • CWE-809 (View) Weaknesses in OWASP Top Ten (2010)
  • CWE-811 (Category) OWASP Top Ten 2010 Category A2 - Cross-Site Scripting (XSS)
  • CWE-864 (Category) 2011 Top 25 - Insecure Interaction Between Components
  • CWE-900 (View) Weaknesses in the 2011 CWE/SANS Top 25 Most Dangerous Software Errors
  • CWE-928 (View) Weaknesses in OWASP Top Ten (2013)
  • CWE-931 (Category) OWASP Top Ten 2013 Category A3 - Cross-Site Scripting (XSS)
  • CWE-990 (Category) SFP Secondary Cluster: Tainted Input to Command
See also: Similar and related Nessus plugins:
  • 80401 - Debian DSA-3120-1 : mantis - security update
  • 79893 - Fedora 19 : mantis-1.2.17-4.fc19 (2014-15079)
  • 79894 - Fedora 20 : mantis-1.2.17-4.fc20 (2014-15108)
  • 79895 - Fedora 21 : mantis-1.2.17-4.fc21 (2014-15142)
  • 32324 - Mantis manage_user_create.php CSRF New User Creation
  • 51359 - MantisBT 'db_type' Parameter Local File Inclusion
  • 62867 - GLSA-201211-01 : MantisBT: Multiple vulnerabilities
  • 56167 - Debian DSA-2308-1 : mantis - several vulnerabilities
  • 33554 - Fedora 9 : mantis-1.1.2-1.fc9 (2008-6647)
  • 33555 - Fedora 8 : mantis-1.1.2-1.fc8 (2008-6657)
  • 51402 - Fedora 13 : mantis-1.1.8-5.fc13 (2010-19070)
  • 51403 - Fedora 14 : mantis-1.1.8-5.fc14 (2010-19078)
  • 56353 - Fedora 16 : mantis-1.2.8-1.fc16 (2011-12336)
  • 56223 - Fedora 15 : mantis-1.2.8-1.fc15 (2011-12369)
  • 35052 - FreeBSD : mantis -- multiple vulnerabilities (29255141-c3df-11dd-a721-0030843d3802)
  • 147688 - FreeBSD : mantis -- multiple vulnerabilities (2dc8927b-54e0-11eb-9342-1c697a013f4b)
  • 129425 - FreeBSD : mantis -- multiple vulnerabilities (81fcc2f9-e15a-11e9-abbf-800dd28b22bd)
  • 151500 - FreeBSD : mantis -- multiple vulnerabilities (9b1699ff-d84c-11eb-92d6-1b6ff3dfe4d3)
  • 35057 - FreeBSD : mantis -- php code execution vulnerability (af2745c0-c3e0-11dd-a721-0030843d3802)
  • 34250 - GLSA-200809-10 : Mantis: Multiple vulnerabilities
  • 35024 - GLSA-200812-07 : Mantis: Multiple vulnerabilities

Version


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

Go back to menu.