CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS
Percentile
94.0%
The remote host is running NOD32 Antivirus, from eset.
The installed version of NOD32 Antivirus is reportedly prone to a heap-based buffer overflow when processing ARJ archives with long filenames. An attacker may be able to exploit this issue to execute arbitrary code on the remote host.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description) {
script_id(19700);
script_version("1.17");
script_cvs_date("Date: 2018/11/15 20:50:27");
script_cve_id("CVE-2005-2903");
script_bugtraq_id(14773);
script_name(english:"NOD32 Antivirus ARJ Archive Filename Handling Overflow");
script_summary(english:"Checks for ARJ archive handling buffer overflow vulnerability in NOD32 Antivirus");
script_set_attribute(attribute:"synopsis", value:"The remote Windows application is prone to a buffer overflow attack.");
script_set_attribute(attribute:"description", value:
"The remote host is running NOD32 Antivirus, from eset.
The installed version of NOD32 Antivirus is reportedly prone to a
heap-based buffer overflow when processing ARJ archives with long
filenames. An attacker may be able to exploit this issue to execute
arbitrary code on the remote host.");
script_set_attribute(attribute:"see_also", value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2005-40/advisory/");
script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2005/Sep/153" );
script_set_attribute(attribute:"solution", value:
"Upgrade nod32.002 to version 1.034 build 1132 or later using the
online update process.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date", value:"2005/09/08");
script_set_attribute(attribute:"plugin_publication_date", value:"2005/09/14");
script_set_attribute(attribute:"plugin_type", value:"local");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2005-2018 Tenable Network Security, Inc.");
script_dependencies("nod32_installed.nasl", "smb_hotfixes.nasl");
script_require_keys("Antivirus/NOD32/installed", "SMB/Registry/Enumerated");
script_require_ports(139, 445);
exit(0);
}
#
include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
if (!get_kb_item("Antivirus/NOD32/installed")) exit(0, 'NOD32 is not installed.');
if (!get_kb_item("SMB/Registry/Enumerated")) exit(1, "KB 'SMB/Registry/Enumerated' not set to TRUE.");
port = kb_smb_transport();
login = kb_smb_login();
pass = kb_smb_password();
domain = kb_smb_domain();
# Connect to the remote registry.
if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');
rc = NetUseAdd(login:login, password:pass, domain:domain, share:"IPC$");
if (rc != 1)
{
NetUseDel();
audit(AUDIT_SHARE_FAIL,"IPC$");
}
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm)) {
NetUseDel();
audit(AUDIT_REG_FAIL);
}
# Get the software's installation directory from the registry.
key = "SOFTWARE\Eset\Nod\CurrentVersion\Info";
key_h = RegOpenKey(handle:hklm, key:key, mode:MAXIMUM_ALLOWED);
if (!isnull(key_h)) {
value = RegQueryValue(handle:key_h, item:"InstallDir");
if (!isnull(value)) dir = value[1];
RegCloseKey(handle:key_h);
}
RegCloseKey(handle:hklm);
NetUseDel(close:FALSE);
# If it's installed...
if (dir) {
# Read version / build info directly from the archive support module.
#
# nb: the registry does hold the module's build number in
# HKML\SOFTWARE\Eset\Nod\CurrentVersion\InstalledComponents\ArchivesBuild,
# but not its version number.
share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:dir);
rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if (rc != 1) {
NetUseDel();
audit(AUDIT_SHARE_FAIL,share);
}
file = ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1\nod32.002", string:dir);
fh = CreateFile(
file:file,
desired_access:GENERIC_READ,
file_attributes:FILE_ATTRIBUTE_NORMAL,
share_mode:FILE_SHARE_READ,
create_disposition:OPEN_EXISTING
);
if (!isnull(fh))
{
data = ReadFile(handle:fh, length:256, offset:0);
CloseFile(handle:fh);
if (data) {
ver = strstr(data, "version: ");
if (ver) {
ver = ver - "version: ";
ver = ver - strstr(ver, '\n');
ver = chomp(ver);
}
build = strstr(data, "build: ");
if (build) {
build = build - "build: ";
build = build - strstr(build, '\n');
build = chomp(build);
}
}
# There's a problem if it's earlier than version 1.034 build 1132.
if (
ver && build &&
(
ver =~ "^(0\.|1\.0([0-2]|3[0-3]))" ||
ver == "1.034" && int(build) < 1132
)
) {
security_hole(port);
}
}
}
# Clean up.
NetUseDel();