CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
NONE
Availability Impact
NONE
AV:N/AC:L/Au:N/C:P/I:N/A:N
AI Score
Confidence
Low
EPSS
Percentile
60.6%
Varnish is prone to Log Escape Sequence Injection 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.800447");
script_version("2023-07-28T16:09:07+0000");
script_tag(name:"last_modification", value:"2023-07-28 16:09:07 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2010-01-28 16:24:05 +0100 (Thu, 28 Jan 2010)");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_cve_id("CVE-2009-4488");
script_name("Varnish Log Escape Sequence Injection Vulnerability");
script_xref(name:"URL", value:"http://www.ush.it/team/ush/hack_httpd_escape/adv.txt");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/37713");
script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/archive/1/508830/100/0/threaded");
script_tag(name:"qod_type", value:"executable_version");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2010 Greenbone AG");
script_family("Web Servers");
script_dependencies("gb_varnish_detect.nasl");
script_mandatory_keys("Varnish/Ver");
script_tag(name:"affected", value:"Varnish version 2.0.6 and prior.");
script_tag(name:"insight", value:"The flaw exists when the Web Server is executed in foreground in a pty or
when the logfiles are viewed with tools like 'cat' or 'tail' injected control
characters reach the terminal and are executed.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Upgrade to Varnish version 2.1.2 or later.");
script_tag(name:"summary", value:"Varnish is prone to Log Escape Sequence Injection Vulnerability.");
script_tag(name:"impact", value:"Successful exploitation will let the attacker execute arbitrary commands in
a terminal.");
exit(0);
}
include("version_func.inc");
varVer = get_kb_item("Varnish/Ver");
if(!varVer)
exit(0);
if(version_is_less_equal(version:varVer, test_version:"2.0.6")){
report = report_fixed_ver(installed_version:varVer, vulnerable_range:"Less than or equal to 2.0.6");
security_message(port: 0, data: report);
}