Joomla! Detection (HTTP)
🗓️ 30 Oct 2009 00:00:00Reported by Copyright (C) 2009 Angelo CompagnucciType
openvas🔗 plugins.openvas.org👁 21 Views
| Source | Link |
|---|---|
| joomla | www.joomla.org/ |
# SPDX-FileCopyrightText: 2009 Angelo Compagnucci
# SPDX-FileCopyrightText: Reworked, improved and extended detection code and pattern since 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-or-later
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.100330");
script_version("2026-04-30T06:27:06+0000");
script_tag(name:"last_modification", value:"2026-04-30 06:27:06 +0000 (Thu, 30 Apr 2026)");
script_tag(name:"creation_date", value:"2009-10-30 14:42:19 +0100 (Fri, 30 Oct 2009)");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_tag(name:"qod_type", value:"remote_banner");
script_name("Joomla! Detection (HTTP)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Angelo Compagnucci");
script_family("Product detection");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl",
"DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl",
"global_settings.nasl");
script_require_ports("Services/www", 443);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"summary", value:"HTTP based detection of Joomla!.");
script_xref(name:"URL", value:"https://www.joomla.org/");
exit(0);
}
include("cpe.inc");
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("list_array_func.inc");
include("port_service_func.inc");
port = http_get_port( default:443 );
if( ! http_can_host_php( port:port ) )
exit( 0 );
foreach dir( make_list_unique( "/", "/cms", "/joomla", http_cgi_dirs( port:port ) ) ) {
installed = FALSE;
install = dir;
if( dir == "/" )
dir = "";
url = dir + "/index.php";
buf = http_get_cache( item:url, port:port );
if( ! buf || "topic does not exist" >< buf || 'content="DokuWiki"' >< buf )
continue;
if( egrep( pattern:'.*content="joomla.*', string:buf ) ||
egrep( pattern:'.*content="Joomla.*', string:buf ) ||
egrep( pattern:'.*href="/administrator/templates.*', string:buf ) ||
egrep( pattern:'.*src="/media/system/js.*', string:buf ) ||
egrep( pattern:'.*src="/templates/system.*', string:buf ) ) {
installed = TRUE;
conclUrl = " " + http_report_vuln_url( port:port, url:url, url_only:TRUE );
} else {
url = dir + "/.htaccess";
buf = http_get_cache( item:url, port:port );
if( egrep( pattern:".*# @package Joomla.*", string:buf ) ) {
installed = TRUE;
conclUrl = " " + http_report_vuln_url( port:port, url:url, url_only:TRUE );
} else {
url = dir + "/templates/system/css/editor.css";
buf = http_get_cache( item:url, port:port );
if( egrep( pattern:".*JOOMLA.*", string: buf ) ) {
installed = TRUE;
conclUrl = " " + http_report_vuln_url( port:port, url:url, url_only:TRUE );
} else {
url = dir + "/includes/js/mambojavascript.js";
buf = http_get_cache( item:url, port:port );
if( egrep( pattern:".*@package Joomla.*", string:buf ) ) {
installed = TRUE;
conclUrl = " " +http_report_vuln_url( port:port, url:url, url_only:TRUE );
}
}
}
}
if( installed ) {
version = "unknown";
url = dir + "/administrator/";
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" )
language = eregmatch( string:buf, pattern:'lang="(..-..)"' );
# Always use en-GB as a default and fallback to the detected language later
default_lang = make_list( "en-GB" );
if( ! isnull( language[1] ) ) {
lang = substr( language[1], 0, 1 ) + "-" + toupper( substr( language[1], 3 ) );
langs = make_list( default_lang, lang );
} else {
langs = default_lang;
}
check_files = make_list( "install.xml", # For 4.x and later
lang + ".xml" ); # For 3.x and below
foreach check_file( check_files ) {
foreach lang( langs ) {
url = dir + "/administrator/language/" + lang + "/" + check_file;
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" ) {
ver = eregmatch( string:buf, pattern:"<version>([^<]+)</version>" );
if( ! isnull( ver[1] ) ) {
if( conclUrl )
conclUrl += '\n ' + http_report_vuln_url( url:url, port:port, url_only:TRUE );
version = ver[1];
concluded = ver[0];
break;
}
}
}
if( version != "unknown" )
break;
}
if( version == "unknown" ) {
url = dir + "/";
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" )
language = eregmatch( string:buf, pattern:'lang="(..-..)"' );
if( ! isnull( language[1] ) ) {
lang = substr( language[1], 0, 1 ) + "-" + toupper( substr( language[1], 3 ) );
langs = make_list( default_lang, lang );
} else {
langs = default_lang;
}
check_files = make_list( "install.xml", # For 4.x and later
lang + ".xml" ); # For 3.x and below
foreach check_file( check_files ) {
foreach lang( langs ) {
url = dir + "/language/" + lang + "/" + check_file;
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" ) {
ver = eregmatch( string:buf, pattern:"<version>([^<]+)</version>" );
if( ! isnull( ver[1] ) ) {
if( conclUrl )
conclUrl += '\n ' + http_report_vuln_url( url:url, port:port, url_only:TRUE );
version = ver[1];
concluded = ver[0];
break;
}
}
}
if( version != "unknown" )
break;
}
}
if( version == "unknown" ) {
url = dir + "/components/com_user/user.xml";
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" ) {
ver = eregmatch( string:buf, pattern:"<version>([^<]+)</version>" );
if( ! isnull( ver[1] ) ) {
if( conclUrl )
conclUrl += '\n ' + http_report_vuln_url( url:url, port:port, url_only:TRUE );
version = ver[1];
concluded = ver[0];
}
}
}
if( version == "unknown" ) {
url = dir + "/administrator/manifests/files/joomla.xml";
buf = http_get_cache( port:port, item:url );
# <version>3.10.12</version>
ver = eregmatch( pattern: "<version>([^<]+)</version>", string:buf );
if( ! isnull( ver[1] ) ) {
if( conclUrl )
conclUrl += '\n ' + http_report_vuln_url( url:url, port:port, url_only:TRUE );
version = ver[1];
concluded = ver[0];
}
}
if( version == "unknown" ) {
# This file version is not really reliable. On e.g. Joomla 4.0.3 this version is:
# <version>3.0.0</version>
url = dir + "/modules/mod_login/mod_login.xml";
buf = http_get_cache( item:url, port:port );
if( buf =~ "^HTTP/1\.[01] 200" ) {
# <version>3.0.0</version>
ver = eregmatch( string:buf, pattern:"<version>([^<]+)</version>" );
if( ! isnull( ver[1] ) ) {
if( conclUrl )
conclUrl += '\n ' + http_report_vuln_url( url:url, port:port, url_only:TRUE );
version = ver[1];
concluded = ver[0];
}
}
}
set_kb_item( name:"joomla/detected", value:TRUE );
set_kb_item( name:"joomla/http/detected", value:TRUE );
cpe = build_cpe( value:version, exp:"([0-9.]+)", base:"cpe:/a:joomla:joomla:" );
if( ! cpe )
cpe = "cpe:/a:joomla:joomla";
register_product( cpe:cpe, location:install, port:port, service:"www" );
log_message( data:build_detection_report( app:"Joomla!",
version:version,
install:install,
cpe:cpe,
concludedUrl:conclUrl,
concluded:concluded ),
port:port );
exit( 0 );
}
}
exit( 0 );
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
5.2Medium risk
Vulners AI Score5.2