Lucene search
+L

Liferay Portal Detection

🗓️ 22 May 2012 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 127 Views

A Java-based web portal is installed on the remote host. Liferay Portal, a Java web portal, is installed on the remote host

Refs
Code
SourceLink
liferaywww.liferay.com/
##
# (C) Tenable Network Security, Inc.
##

include("compat.inc");

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

  script_name(english:"Liferay Portal Detection");

  script_set_attribute(attribute:"synopsis", value:
"A Java-based web portal is installed on the remote host.");
  script_set_attribute(attribute:"description", value:
"Liferay Portal, a Java web portal, is installed on the remote host.");
  script_set_attribute(attribute:"see_also", value:"https://www.liferay.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:"2012/05/22");

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

  script_dependencies("http_version.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80, 443, 8080);

  exit(0);
}

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

# Get the ports that web servers have been found on, defaulting to
# what Liferay uses with Tomcat, their recommended bundle.
port = get_http_port(default:8080);

# Put together a list of directories we should check for Liferay in.
dirs = list_uniq(make_list("", cgi_dirs()));

installs = NULL;
foreach dir (dirs)
{
  version = UNKNOWN_VER;

  res = http_send_recv3(
    method          : "GET",
    item            : dir + "/",
    port            : port,
    follow_redirect : 1,
    exit_on_fail    : TRUE
  );
  if ("Liferay-Portal:" >!< res[1]) continue;

  # Extract the version information from the response headers using build.
  regex = "Liferay-Portal: Liferay.* Portal ([0-9.]+).*";
  matches = pregmatch(string:res[1], pattern:regex);

  if (!isnull(matches))
    version = matches[1];

  # Register the installed instance.
  installs = add_install(
    installs : installs,
    port     : port,
    dir      : dir,
    appname  : "liferay_portal",
    ver      : version,
    cpe      : "cpe:/a:liferay:portal"
  );

  # Only continue looking for additional installations if we're being
  # thorough.
  if (!thorough_tests) break;
}

if (isnull(installs)) audit(AUDIT_NOT_DETECT, "Liferay Portal", port);

# Report our findings.
report = NULL;
if (report_verbosity > 0)
{
  report = get_install_report(
    display_name : "Liferay Portal",
    installs     : installs,
    port         : port
  );
}

security_note(port:port, extra:report);

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
7.1High risk
Vulners AI Score7.1
127