Lucene search
K

phpList Detection

🗓️ 29 Jul 2005 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 22 Views

The remote web server contains a PHP based mailing list manager called phpLis

Refs
Code
SourceLink
phplistwww.phplist.com/
#
# (C) Tenable Network Security, Inc.
#
# per phpList maintainer, 'phpList' is official capitalization (12/23/08)


include("compat.inc");

if (description)
{
  script_id(19313);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/10/12");

  script_name(english:"phpList Detection");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a mailing list manager written in PHP.");
  script_set_attribute(attribute:"description", value:
"The remote host is running phpList, a free, web-based mailing list
manager that uses PHP and MySQL.");
  script_set_attribute(attribute:"see_also", value:"https://www.phplist.com/");
  script_set_attribute(attribute:"solution", value:
"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2005/07/29");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"asset_inventory_category", value:"software_enumeration");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:tincan:phplist");
  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) 2005-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("http_version.nasl");
  script_require_keys("www/PHP");
  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");


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


# Search for phpList.
if (thorough_tests) dirs = list_uniq(make_list("/phplist", "/lists", cgi_dirs()));
else dirs = make_list(cgi_dirs());

installs = make_array();
foreach dir (dirs)
{
  # Get page for subscribing to a mailing list.
  url = string(dir, "/?p=subscribe");
  res = http_send_recv3(method:"GET", item:url, port:port);
  if (isnull(res)) exit(0);

  # If the page looks like it's from phpList...
  if ('<link rev="made" href="mailto:phplist%40tincan.co.uk"' >< res[2])
  {
    ver = NULL;

    # Sometimes the version number can be found in a META tag.
    pat = 'meta name="Powered-By" content="PHPlist version (.+)"';
    matches = egrep(string:res, pattern:pat, icase:TRUE);
    if (matches)
    {
      foreach match (split(matches, keep:FALSE))
      {
        item = eregmatch(pattern:pat, string:match, icase:TRUE);
        if (!isnull(item))
        {
          ver = item[1];
          break;
        }
      }
    }
    # Otherwise, try in the "Powered by" line.
    if (isnull(ver))
    {
      pat = "owered by (PHPlist version |.+>phplist</a> v )(.+), &copy;";
      matches = egrep(string:res, pattern:pat);
      if (matches)
      {
        foreach match (split(matches, keep:FALSE))
        {
          item = eregmatch(string:match, pattern:pat);
          if (!isnull(item))
          {
            ver = item[2];
            break;
          }
        }
      }
    }

    # Oh well, just mark it as "unknown".
    if (isnull(ver)) ver = "unknown";

    if (dir == "") dir = "/";
    set_kb_item(
      name:string("www/", port, "/phplist"),
      value:string(ver, " under ", dir)
    );
    set_kb_item(name:"www/phplist", value:TRUE);
    if (installs[ver]) installs[ver] += ';' + dir;
    else installs[ver] = dir;

    register_install(
      app_name:"phpList",
      vendor : 'Tincan',
      product : 'PHPList',
      path:dir,
      version:ver,
      port:port,
      cpe:"cpe:/a:tincan:phplist");

    # Scan for multiple installations only if the "Perform thorough tests" setting is checked.
    if (!thorough_tests) break;
  }
}


# Report findings.
if (max_index(keys(installs)))
{
  if (report_verbosity)
  {
    info = "";
    n = 0;
    foreach ver (sort(keys(installs)))
    {
      info += '  Version : ' + ver + '\n';
      foreach dir (sort(split(installs[ver], sep:";", keep:FALSE)))
      {
        if (dir == '/') url = dir;
        else url = dir + '/';
        info += '  URL     : ' + build_url(port:port, qs:url) + '\n';
        n++;
      }
      info += '\n';
    }

    report = '\nThe following instance';
    if (n == 1) report += ' of phplist was';
    else report += 's of phplist were';
    report += ' detected on the remote host :\n\n' + info;

    security_note(port:port, extra:report);
  }
  else security_note(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

12 Oct 2022 00:00Current
5.5Medium risk
Vulners AI Score5.5
22