Mozilla Firefox Portable Detection (Windows SMB Login)
🗓️ 20 Apr 2018 00:00:00Reported by Copyright (C) 2018 Greenbone AGType
openvas🔗 plugins.openvas.org👁 91 Views
# SPDX-FileCopyrightText: 2018 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.108443");
script_version("2025-02-28T05:38:49+0000");
script_tag(name:"last_modification", value:"2025-02-28 05:38:49 +0000 (Fri, 28 Feb 2025)");
script_tag(name:"creation_date", value:"2018-04-20 11:47:59 +0200 (Fri, 20 Apr 2018)");
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_name("Mozilla Firefox Portable Detection (Windows SMB Login)");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2018 Greenbone AG");
script_family("Product detection");
# Firefox dependency was added so we don't detect a registry-based installation twice
script_dependencies("gb_firefox_detect_win.nasl", "lsc_options.nasl");
script_require_ports(139, 445);
script_mandatory_keys("win/lsc/search_portable_apps");
script_exclude_keys("win/lsc/disable_wmi_search", "win/lsc/disable_win_cmd_exec");
script_tag(name:"summary", value:"SMB login and WMI file search based detection of Mozilla Firefox
Portable.");
script_tag(name:"insight", value:"To enable the search for portable versions of this product you
need to 'Enable Detection of Portable Apps on Windows' in the 'Options for Local Security Checks'
(OID: 1.3.6.1.4.1.25623.1.0.100509) of your scan config.");
script_tag(name:"qod_type", value:"executable_version");
exit(0);
}
include("list_array_func.inc");
include("cpe.inc");
include("host_details.inc");
include("smb_nt.inc");
include("powershell_func.inc");
if( wmi_is_file_search_disabled() || is_win_cmd_exec_disabled() )
exit( 0 );
fileList = powershell_wmi_file_search_version_query( file_name:"firefox", file_extension:"exe" );
if( ! fileList || ! is_array( fileList ) )
exit( 0 );
# From gb_firefox_detect_win.nasl to avoid a doubled detection of a registry-based installation.
detectedList = get_kb_list( "Firefox/Win/InstallLocations" );
foreach filePath( keys( fileList ) ) {
# wmi_file_fileversion returns the .exe filename so we're stripping it away
# to keep the install location registration the same way like in gb_firefox_detect_win.nasl
location = filePath - "\firefox.exe";
if( detectedList && in_array( search:tolower( location ), array:detectedList ) )
continue; # We already have detected this installation...
vers = fileList[filePath];
# Version of the firefox.exe file is something like 59.0.3.6691, 59.0.0.6478 or 60.0.1.6710
# so we need to catch only the first three parts of the version.
if( vers && version = eregmatch( string:vers, pattern:"^([0-9]+\.[0-9]+\.[0-9]+)" ) ) {
set_kb_item( name:"Firefox/Win/InstallLocations", value:tolower( location ) );
set_kb_item( name:"Mozilla/Firefox_or_Seamonkey_or_Thunderbird/Installed", value:TRUE );
set_kb_item( name:"mozilla/firefox/windows/detected", value:TRUE );
set_kb_item( name:"mozilla/firefox/linux_windows/detected", value:TRUE );
set_kb_item( name:"mozilla/firefox/windows_macosx/detected", value:TRUE );
set_kb_item( name:"mozilla/firefox/windows_linux_macosx/detected", value:TRUE );
# The portableapps.com installer is putting the 32bit version in App\Firefox and the 64bit into App\Firefox64.
# This is the only way to differ between 32bit and 64bit as we can't differ between 32 and 64bit based on the file information.
if( "firefox64" >< location ) {
cpe = "cpe:/a:mozilla:firefox:x64:";
set_kb_item( name:"Firefox64/Win/Ver", value:version[1] );
} else {
cpe = "cpe:/a:mozilla:firefox:";
set_kb_item( name:"Firefox/Win/Ver", value:version[1] );
}
register_and_report_cpe( app:"Mozilla Firefox Portable", ver:version[1], concluded:vers, base:cpe, expr:"^([0-9.]+)", insloc:location, regPort:0, regService:"smb-login" );
}
}
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
28 Feb 2025 00:00Current
7.4High risk
Vulners AI Score7.4