Lucene search
+L

Mambo < 4.6.5 mos_user_template Local File Inclusion

🗓️ 11 Jul 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 13 Views

The Mambo application < 4.6.5 mos_user_template has a local file inclusion vulnerabilit

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

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

if (description)
{
  script_id(33479);
  script_version("1.13");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/06/01");

  script_name(english:"Mambo < 4.6.5 mos_user_template Local File Inclusion");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is affected by a
local file include vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Mambo installed on the remote host fails to properly
check user input to the 'mos_user_template' cookie for directory
traversal sequences before using it to include PHP code from a local
file.  An unauthenticated attacker may be able to exploit this issue
to view arbitrary files or to execute arbitrary PHP code on the
affected host.");
  script_set_attribute(attribute:"see_also", value:"http://source.mambo-foundation.org/content/view/144/1/");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Mambo 4.6.5 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:P/I:P/A:P");

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/07/11");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2008-2022 Tenable Network Security, Inc.");

  script_dependencies("mambo_detect.nasl");
  script_require_keys("www/mambo_mos");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

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


port = get_http_port(default:80);
if (!can_host_php(port:port)) exit(0);


# Test an install.
install = get_kb_item(string("www/", port, "/mambo_mos"));
if (isnull(install)) exit(0);
matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");
if (!isnull(matches))
{
  dir = matches[2];
  set_http_cookie(name: "mos_user_template", value: "../administrator");
  rq = http_mk_get_req(item:string(dir, "/index.php"), port:port);
  erase_http_cookie(name: "mos_user_template");
  r = http_send_recv_req(port: port, req: rq);
  if (isnull(r)) exit(0);

  # There's a problem if we were able to set the cookie.
  if (get_http_cookie(name:"mos_user_template") == "\.\.%2Fadministrator%2F")
  {
    security_warning(port);
    exit(0);
  }
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jun 2022 00:00Current
6.3Medium risk
Vulners AI Score6.3
13