Pandora FMS Console Authentication Bypass - Nessus

High   Plugin ID: 50861

This page contains detailed information about the Pandora FMS Console Authentication Bypass Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 50861
Name: Pandora FMS Console Authentication Bypass
Filename: pandora_fms_auth_bypass.nasl
Vulnerability Published: 2010-11-30
This Plugin Published: 2010-12-01
Last Modification Time: 2022-04-11
Plugin Version: 1.12
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: pandora_fms_console_detect.nasl
Required KB Items [?]: installed_sw/Pandora FMS
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: High
Vulnerability Published: 2010-11-30
Patch Published: 2010-11-30
CVE [?]: CVE-2010-4279
CPE [?]: cpe:/a:artica:pandora_fms

Synopsis

A web console on the remote host is affected by an authentication bypass vulnerability.

Description

The Pandora FMS console hosted on the remote web server is affected by an authentication bypass vulnerability. The 'auto login (hash) password' feature allows third parties to authenticate using a combination of username and a shared secret. This shared secret is undefined by default, which means it is possible to authenticate solely by providing the hash of a valid username.

A remote attacker can exploit this issue to access the console as admin.

This version of Pandora FMS is also affected by other vulnerabilities; however, Nessus has not tested for those issues.

Solution

Apply the security fix for Pandora FMS 3.1, or upgrade to version 3.1.1 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Pandora FMS Console Authentication Bypass vulnerability:

  1. Metasploit: exploit/multi/http/pandora_upload_exec
    [Pandora FMS v3.1 Auth Bypass and Arbitrary File Upload Vulnerability]
  2. Exploit-DB: exploits/php/remote/35731.rb
    [EDB-35731: Pandora FMS 3.1 - Authentication Bypass / Arbitrary File Upload (Metasploit)]
  3. Exploit-DB: exploits/php/webapps/15639.txt
    [EDB-15639: Pandora FMS 3.1 - Authentication Bypass]

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 pandora_fms_auth_bypass.nasl nessus plugin source code. This script is Copyright (C) 2010-2022 Tenable Network Security, Inc.

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

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

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

  script_cve_id("CVE-2010-4279");
  script_bugtraq_id(45112);
  script_xref(name:"EDB-ID", value:"15639");

  script_name(english:"Pandora FMS Console Authentication Bypass");

  script_set_attribute(attribute:"synopsis", value:
"A web console on the remote host is affected by an authentication
bypass vulnerability.");
  script_set_attribute(attribute:"description", value:
"The Pandora FMS console hosted on the remote web server is affected by
an authentication bypass vulnerability. The 'auto login (hash) password'
feature allows third parties to authenticate using a combination of
username and a shared secret. This shared secret is undefined by
default, which means it is possible to authenticate solely by
providing the hash of a valid username.

A remote attacker can exploit this issue to access the console as
admin.

This version of Pandora FMS is also affected by other vulnerabilities;
however, Nessus has not tested for those issues.");
  script_set_attribute(attribute:"see_also", value:"http://openideas.info/smf/index.php/topic,1825.0.html");
  script_set_attribute(attribute:"see_also", value:"http://openideas.info/smf/index.php/topic,2083.0.html");
  script_set_attribute(attribute:"solution", value:
"Apply the security fix for Pandora FMS 3.1, or upgrade to version
3.1.1 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:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Pandora FMS v3.1 Auth Bypass and Arbitrary File Upload Vulnerability');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/11/30");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/11/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/12/01");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:artica:pandora_fms");
  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) 2010-2022 Tenable Network Security, Inc.");

  script_dependencies("pandora_fms_console_detect.nasl");
  script_require_keys("installed_sw/Pandora FMS");
  script_exclude_keys("Settings/disable_cgi_scanning");
  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");

app = 'Pandora FMS';
get_install_count(app_name:app, exit_if_zero:TRUE);
port = get_http_port(default:80, php:TRUE);
install = get_single_install(app_name:app, port:port);

user = 'admin';
hash = hexstr(MD5(user));
url = install['path'] + '/index.php?loginhash_data=' + hash + '&loginhash_user=' + user + '&loginhash=1';
res = http_send_recv3(method:'GET', item:url, port:port, exit_on_fail:TRUE);

if ('[<b>' + user + '</b>]</a>' >< res[2])
{
  if (report_verbosity > 0)
  {
    # In vulnerable versions, we'll be able to fingerprint the vulnerability even
    # if we're unable to guess a valid username (the page header indicates we're
    # logged in, but nothing in the console is available).  If this happens, we
    # should probably make a note of it
    if (
      'Welcome to Pandora FMS Web Console</ul>' >!< res[2] ||
      'Access to this page is restricted to authorized users only' >< res[2]
    )
    {
      trailer =
        'Nessus attempted to login as "' + user + '" which does not appear to be a\n' +
        'valid user. This means Nessus was able to verify the vulnerability,\n' +
        'but was unable to get unauthorized access to the console.';
    }
    else trailer = NULL;

    report =
      'Nessus was able to verify the issue using the following URL :\n\n' +
      '  ' + build_url(qs:url, port:port) + '\n';
    if (!isnull(trailer)) report += '\n' + trailer;
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
}
else
{
  base = build_url(qs:install['dir'], port:port);
  audit(AUDIT_WEB_APP_NOT_AFFECTED, app, base);
}

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

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

Go back to menu.

How to Run


Here is how to run the Pandora FMS Console Authentication Bypass 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 Pandora FMS Console Authentication Bypass plugin ID 50861.
  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 pandora_fms_auth_bypass.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 81148 - Pandora FMS <= 5.0 SP2 SQLi

Version


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

Go back to menu.