# SPDX-FileCopyrightText: 2016 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:twonky:twonky_server";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.108007");
script_version("2025-11-25T05:40:35+0000");
script_tag(name:"last_modification", value:"2025-11-25 05:40:35 +0000 (Tue, 25 Nov 2025)");
script_tag(name:"creation_date", value:"2016-09-28 12:00:00 +0200 (Wed, 28 Sep 2016)");
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:"qod_type", value:"remote_vul");
script_tag(name:"solution_type", value:"Mitigation");
script_name("Twonky Server Unprotected Web Console (HTTP)");
# nb: No attacking request (just access a default page) so no ACT_ATTACK
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2016 Greenbone AG");
script_family("Default Accounts");
# nb: No need to disable via default_credentials/disable_default_account_checks or
# gb_default_credentials_options.nasl because this isn't doing any login (at least currently)...
script_dependencies("gb_twonky_server_http_detect.nasl");
script_mandatory_keys("twonky/server/http/detected");
script_require_ports("Services/www", 9000);
script_tag(name:"summary", value:"The remote Twonky Server web console is not protected by a
username and password.");
script_tag(name:"vuldetect", value:"Checks with a GET request if the URL /rpc/info_status is
protected by a username and password.");
script_tag(name:"impact", value:"Attackers can exploit this issue to obtain sensitive information
that may lead to further attacks or change the configuration of the device.");
script_tag(name:"affected", value:"All systems running Twonky Server.");
script_tag(name:"solution", value:"Set a username and password within the 'Advanced' settings of
this device.
Older versions of Twonky Server are not supporting the protection of the web console with a
username and password. Restrict access to such older devices.");
exit(0);
}
# nb: Don't exit via islocalhost() or the net_setting_is_* functions here as such a system should be
# definitely access protected.
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if( ! port = get_app_port( cpe:CPE, service:"www" ) )
exit( 0 );
if( ! dir = get_app_location( cpe:CPE, port:port ) )
exit( 0 );
host = http_host_name( dont_add_port:TRUE );
install = dir;
if( dir == "/" )
dir = "";
url = dir + "/rpc/info_status";
req = http_get( port:port, item:url );
res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
if( res =~ "^HTTP/1\.[01] 401" ) {
set_kb_item( name:"www/content/auth_required", value:TRUE );
set_kb_item( name:"www/" + host + "/" + port + "/content/auth_required", value:url );
}
if( res =~ "^HTTP/1\.[01] 200" && ( "serverkind|" >< res || "serverplatform|" >< res || "version|" >< res ) ) {
report = http_report_vuln_url( port:port, url:install );
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