Lucene search
+L

Tofu Server Detection

🗓️ 19 Sep 2005 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 17 Views

The remote host is running a Tofu server, a network gaming engine. Ensure proper installation and adherence to security policy

Refs
Code
SourceLink
nessuswww.nessus.org/u
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include("compat.inc");

if (description) {
  script_id(19758);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_name(english:"Tofu Server Detection");

  script_set_attribute(attribute:"synopsis", value:
"A game server is installed on the remote host.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a Tofu server.  Tofu is a network gaming
engine. Make sure this service has been installed in accordance to your
security policy.");
  # http://web.archive.org/web/20070202185935/http://home.gna.org/oomadness/en/tofu/index.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2cfee080");
  script_set_attribute(attribute:"solution", value:
"If this service is not needed, disable it or filter incoming traffic
to this port.");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2005/09/19");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:amar_sagoo:tofu");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Service detection");

  script_copyright(english:"This script is Copyright (C) 2005-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_require_ports("Services/unknown", 6900);

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");


if (thorough_tests && ! get_kb_item("global_settings/disable_service_discovery")  ) {
  port = get_unknown_svc(6900);
  if ( ! port ) exit(0);
}
else port = 6900;
if (!get_port_state(port)) exit(0);


# Try to login to the Tofu server.
soc = open_sock_tcp(port);
if (!soc) exit(0);

pkt_login = raw_string(
  ">", 
  SCRIPT_NAME,
   "\n",
  "nessus",
  "\n"
);
c = string(strlen(pkt_login), ":", pkt_login, ",");
send(socket:soc, data:c);

s = recv(socket:soc, length:1024);
if (!strlen(s)) exit(0);


# There's a if it looks like we're logged in.
len = s - strstr(s, ":");
i = strlen(len);
j = i + int(len) + 1;
if (
  # it looks like a valid Tofu packet and ...
  (i > 0 && strlen(s) > i && strlen(s) > j &&  s[i] == ':' && j > i && s[j] == ',') && 
  # it looks like we're logged in.
  "_reconstructor" >< s
) {
  security_note(port);

  register_service(port:port, ipproto:"tcp", proto:"tofu");
}

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

11 Apr 2022 00:00Current
5.4Medium risk
Vulners AI Score5.4
17