Lucene search
K

phpList <= 2.10.8 Variable Overwriting

🗓️ 16 Jan 2009 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 11 Views

phpList <= 2.10.8 Variable Overwritin

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

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

if (description)
{
  script_id(35402);
  script_version("1.15");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
  script_bugtraq_id(33273);
  script_xref(name:"SECUNIA", value:"33533");

  script_name(english:"phpList <= 2.10.8 Variable Overwriting");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is affected by a
data modification vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of phpList installed on the remote host emulates PHP's
'register_globals' functionaltiy' insecurely in its 'admin/index.php'
script.  Provided PHP's 'register_globals' setting is disabled, an
unauthenticated attacker can exploit this issue to overwrite the
'_SERVER[ConfigFile]' and '_ENV[CONFIG]' global variables with user-
supplied input, which is then used in PHP 'include()' functions,
allowing him to view arbitrary files on the remote host or to execute
arbitrary PHP code, possibly taken from third-party hosts.");
  script_set_attribute(attribute:"see_also", value:"http://www.bugreport.ir/index_60.htm");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/500057");
  script_set_attribute(attribute:"see_also", value:"https://www.phplist.com/?lid=274");
  # http://www.suspekt.org/2009/02/06/some-facts-about-the-phplist-vulnerability-and%20-the-phpbbcom-hack/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?02477ec2");
  script_set_attribute(attribute:"solution", value:
"Upgrade to phpList version 2.10.9 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:U/RC:ND");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");

  script_set_attribute(attribute:"plugin_publication_date", value:"2009/01/16");

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

  script_dependencies("phplist_detect.nasl");
  script_require_keys("www/phplist");
  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, php:TRUE);


# Test an install.
install = get_kb_item(string("www/", port, "/phplist"));
if (isnull(install)) exit(0);
matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");
if (!isnull(matches))
{
  dir = matches[2];

  # Try to exploit the issue to read a file.
  file = "../admin/about.php";
  url = string(dir, "/admin/index.php?_SERVER[ConfigFile]=", file);

  res = http_send_recv3(method:"GET", item:url, port:port);
  if (res == NULL) exit(0);
	
  # If thorough_tests is enabled try to read through _ENV[CONFIG]...

  if("phplist is licensed with the" >!< res[2] && thorough_tests)
  {  
    url = string(dir, "/admin/index.php?_ENV[CONFIG]=", file);
    res = http_send_recv3(method:"GET", item:url, port:port);
    if (res == NULL) exit(0);
  }

  # There's a problem if...
  if (
    'class="abouthead">NAME</td>' >< res[2] ||
    'phplist</a>, version VERSION' >< res[2]
  )
  {
    if (report_verbosity)
    {
      report = string(
        "\n",
        "Nessus was able to verify the issue exists using the following \n",
        "request :\n",
        "\n",
        "  ", build_url(port:port, qs:url), "\n"
      );
      security_hole(port:port, extra:report);
    }
    else security_hole(port);
  }
}

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