Lucene search
+L

Chargen Service Detection (TCP)

🗓️ 27 Aug 2020 00:00:00Reported by Copyright (C) 2020 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 31 Views

Chargen Service Detection (TCP) detection of unsecured and obsolete protoco

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-1999-0639
4 Feb 200005:00
cve
Cvelist
CVE-1999-0639
4 Feb 200005:00
cvelist
EUVD
EUVD-1999-0622
7 Oct 202500:30
euvd
NVD
CVE-1999-0639
1 Jan 199905:00
nvd
OpenVAS
Check for Chargen Service (TCP)
3 Nov 200500:00
openvas
OpenVAS
Check for Chargen Service (UDP)
3 Nov 200500:00
openvas
OpenVAS
Chargen Service Detection (UDP)
27 Aug 202000:00
openvas
Positive Technologies
PT-1999-1241 · Undefined · Undefined
1 Jan 199900:00
ptsecurity
RedhatCVE
CVE-1999-0639
7 Jan 202609:41
redhatcve
# SPDX-FileCopyrightText: 2020 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.108893");
  script_version("2023-09-12T05:05:19+0000");
  script_cve_id("CVE-1999-0639");
  script_tag(name:"last_modification", value:"2023-09-12 05:05:19 +0000 (Tue, 12 Sep 2023)");
  script_tag(name:"creation_date", value:"2020-08-27 13:32:10 +0000 (Thu, 27 Aug 2020)");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_tag(name:"cvss_base", value:"0.0");
  script_name("Chargen Service Detection (TCP)");
  script_category(ACT_GATHER_INFO);
  script_family("Service detection");
  script_copyright("Copyright (C) 2020 Greenbone AG");
  script_dependencies("find_service1.nasl", "find_service2.nasl");
  script_require_ports("Services/chargen", 19);

  script_tag(name:"summary", value:"TCP based detection of a 'chargen' service.");

  script_tag(name:"insight", value:"chargen service is an unsecured and obsolete protocol and it
  should be disabled. Historically it has been used to perform denial of service attacks. Ping and
  traceroute can be used to provide the same functionality.");

  script_tag(name:"qod_type", value:"remote_banner");

  exit(0);
}

include("host_details.inc");
include("port_service_func.inc");

port = service_get_port( default:19, proto:"chargen" );

# nb: From find_service1.nasl and find_service2.nasl
banner = get_kb_item( "chargen/tcp/" + port + "/banner" );
if( ! banner ) {
  soc = open_sock_tcp( port );
  if( ! soc )
    exit( 0 );

  banner = recv_line( socket:soc, length:1024 );
  close( soc );
}

if( ! banner )
  exit( 0 );

# nb: See also find_service1.nasl and find_service2.nasl
chargen_found = 0;
foreach chargen_pattern( make_list( '!"#$%&\'()*+,-./', "ABCDEFGHIJ", "abcdefg", "0123456789", ":;<=>?@", "KLMNOPQRSTUVWXYZ" ) ) {
  if( chargen_pattern >< banner )
    chargen_found++;
}

if( chargen_found > 2 ) {
  replace_kb_item( name:"chargen/tcp/" + port + "/banner", value:chomp( banner ) );
  set_kb_item( name:"chargen/tcp/detected", value:TRUE );
  set_kb_item( name:"chargen/tcp/" + port + "/detected", value:TRUE );
  service_register( port:port, proto:"chargen", message:"A chargen service seems to be running on this port." );
  log_message( port:port, data:"A chargen service seems to be running on this port." );
}

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

12 Sep 2023 00:00Current
7High risk
Vulners AI Score7
EPSS0.01316
31