Lucene search
K

Apache ActiveMQ Detection

🗓️ 16 Apr 2010 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 151 Views

Apache ActiveMQ administrative web interface detected. Supports HTTP Basic Authentication to secure the interface

Refs
Code
SourceLink
activemqwww.activemq.apache.org/
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(45552);
  script_version("1.13");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/04/19");

  script_name(english:"Apache ActiveMQ Detection");

  script_set_attribute(attribute:"synopsis", value:
"An administrative console is running on the remote web server.");
  script_set_attribute(attribute:"description", value:
"An administrative web interface for Apache ActiveMQ is running on the
remote host. ActiveMQ is an open source messaging and Enterprise
Integration Patterns server system.

Note that starting with version 5.4.0, HTTP Basic Authentication is
available to secure the administrative interface, and starting in
version 5.8.0, this was enabled by default. Consider supplying the
HTTP login credentials in your scan policy to gather version
information from the administrative console.");
  script_set_attribute(attribute:"see_also", value:"http://activemq.apache.org/");
  script_set_attribute(attribute:"solution", value:
"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2010/04/16");

  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:apache:activemq");
  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-2024 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", 8161);

  exit(0);
}

include("http.inc");
include("install_func.inc");

var app = 'Apache ActiveMQ';
var port = get_http_port(default:8161);

var installs = 0;
var version  = NULL;

var dirs = list_uniq(make_list('/admin', cgi_dirs()));
var found, url, res, output, match;

foreach var dir (dirs)
{
  found = FALSE;

  url = dir + '/';
  res = http_send_recv3(
    method : "GET",
    item   : url, 
    port   : port,
    exit_on_fail : TRUE
  );

  if (
    res[2] =~ '(Apache )?ActiveMQ( Console)?</title>' &&
    preg(
      pattern : 'Welcome to the (Apache )?ActiveMQ( Console)?',
      string  : res[2],
      multiline : TRUE
    )
  )
  { 
    found = TRUE;
  }
  else if ('WWW-Authenticate: basic realm="ActiveMQRealm"' >< res[1])
  {
    found = TRUE;
  }

  if (found)
  {
    if (empty_or_null(version))
    {
      # Try and get the version
      if(preg(pattern:"\<td\>Version\<", string:res[2], multiline:TRUE))
      {
        output = strstr(res[2], "<td>Version");
        match = pregmatch(
          pattern : "\<td\>\<b\>([0-9\.]+)(-SNAPSHOT)?\</b\>\</td\>",
          string  : output
        );
        if (!empty_or_null(match)) version = match[1];
      }
    }

    installs++;
    if (!thorough_tests) break;
  }
}

if (installs == 0)
   audit(AUDIT_WEB_APP_NOT_INST, app, port);
    
if (empty_or_null(version)) version = UNKNOWN_VER;

register_install(
  vendor   : "Apache",
  product  : "ActiveMQ",
  app_name : app,
  port     : port,
  path     : "/",
  version  : version,
  cpe      : "cpe:/a:apache:activemq",
  webapp   : TRUE
);

report_installs(port: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

19 Apr 2024 00:00Current
5.6Medium risk
Vulners AI Score5.6
151