| Source | Link |
|---|---|
| microfocus | www.microfocus.com/products/groupwise/ |
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(38971);
script_version("1.15");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/10/10");
script_name(english:"Novell GroupWise Internet Agent Detection");
script_summary(english:"Checks to see if GWIA is installed");
script_set_attribute(attribute:"synopsis", value:"The remote Windows host contains an SMTP server.");
script_set_attribute(attribute:"description", value:
"Novell GroupWise Internet Agent (GWIA) is installed on the remote
host. GWIA is part of the GroupWise suite, and is used for sending and
receiving messages over the Internet.");
script_set_attribute(attribute:"see_also", value:"https://www.microfocus.com/products/groupwise/?utm_medium=301&utm_source=novell.com");
script_set_attribute(attribute:"solution", value:"n/a");
script_set_attribute(attribute:"risk_factor", value:"None");
script_set_attribute(attribute:"plugin_publication_date", value:"2009/06/01");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:novell:groupwise");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_set_attribute(attribute:"asset_inventory_category", value:"software_enumeration");
script_set_attribute(attribute:"agent", value:"windows");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2009-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_require_ports(139, 445);
script_dependencies("smb_hotfixes.nasl");
script_require_keys("SMB/Registry/Enumerated");
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");
include("audit.inc");
include("install_func.inc");
app = "Novell GroupWise Internet Agent";
if (!get_kb_item("SMB/Registry/Enumerated")) exit(0);
name = kb_smb_name();
port = kb_smb_transport();
#if (!get_port_state(port)) exit(0);
login = kb_smb_login();
pass = kb_smb_password();
domain = kb_smb_domain();
#soc = open_sock_tcp(port);
#if (!soc) exit(0);
#session_init(socket:soc, hostname:name);
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();
exit(0);
}
# Connect to remote registry.
hklm = RegConnectRegistry(hkey:HKEY_LOCAL_MACHINE);
if (isnull(hklm))
{
NetUseDel();
exit(0);
}
gwia_path = NULL;
gwia_key = "SYSTEM\CurrentControlSet\Services\GWIA";
gwia_key_h = RegOpenKey(handle:hklm, key:gwia_key, mode:MAXIMUM_ALLOWED);
if (!isnull(gwia_key_h))
{
item = RegQueryValue(handle:gwia_key_h, item:"ImagePath");
# Removes the enclosing quotes from the pathname
if (!isnull(item))
gwia_path = ereg_replace(pattern:'^"(.*)"$', replace:"\1", string:item[1]);
RegCloseKey (handle:gwia_key_h);
}
RegCloseKey(handle:hklm);
if (isnull(gwia_path))
{
NetUseDel();
exit(0);
}
# Determine its version from the executable itself.
share = ereg_replace(pattern:'^([A-Za-z]):.*', replace:"\1$", string:gwia_path);
exe = ereg_replace(pattern:'^[A-Za-z]:(.*)', replace:"\1", string:gwia_path);
NetUseDel(close:FALSE);
rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
if (rc != 1)
{
NetUseDel();
exit(1);
}
fh = CreateFile(
file:exe,
desired_access:GENERIC_READ,
file_attributes:FILE_ATTRIBUTE_NORMAL,
share_mode:FILE_SHARE_READ,
create_disposition:OPEN_EXISTING
);
filever = NULL;
if (!isnull(fh))
{
filever = GetFileVersion(handle:fh);
CloseFile(handle:fh);
}
NetUseDel();
if (isnull(filever)) exit(0);
version = filever[0] + "." + filever[1] + "." + filever[2] + "." + filever[3];
set_kb_item(name:"SMB/GWIA/Version", value:version);
set_kb_item(name:"SMB/GWIA/Path", value:gwia_path);
register_install(
app_name:app,
vendor : 'Novell',
product : 'Groupwise',
path:gwia_path,
version:version,
cpe: "cpe:/a:novell:groupwise");
report_installs(app_name:app, 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