nginx is prone to a buffer-overflow vulnerability because it fails to
perform adequate boundary checks on user-supplied data.
Attackers may leverage this issue to execute arbitrary code in the
context of the application. Failed attacks will cause denial-of-
service conditions.
nginx versions 1.1.3 through 1.1.18 and 1.0.7 through 1.0.14 are
vulnerable; other versions may also be affected.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_nginx_52999.nasl 6022 2017-04-25 12:51:04Z teissa $
#
# nginx 'ngx_http_mp4_module.c' Buffer Overflow Vulnerability
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2012 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_summary = "nginx is prone to a buffer-overflow vulnerability because it fails to
perform adequate boundary checks on user-supplied data.
Attackers may leverage this issue to execute arbitrary code in the
context of the application. Failed attacks will cause denial-of-
service conditions.
nginx versions 1.1.3 through 1.1.18 and 1.0.7 through 1.0.14 are
vulnerable; other versions may also be affected.";
tag_solution = "Updates are available. Please see the references for more information.";
if (description)
{
script_id(103470);
script_bugtraq_id(52999);
script_cve_id("CVE-2012-2089");
script_tag(name:"cvss_base", value:"5.1");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:P/I:P/A:P");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_version ("$Revision: 6022 $");
script_name("nginx 'ngx_http_mp4_module.c' Buffer Overflow Vulnerability");
script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/52999");
script_xref(name : "URL" , value : "http://nginx.org/en/security_advisories.html");
script_xref(name : "URL" , value : "http://nginx.org/");
script_tag(name:"last_modification", value:"$Date: 2017-04-25 14:51:04 +0200 (Tue, 25 Apr 2017) $");
script_tag(name:"creation_date", value:"2012-04-17 10:16:44 +0200 (Tue, 17 Apr 2012)");
script_category(ACT_GATHER_INFO);
script_family("Web Servers");
script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
script_dependencies("nginx_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("nginx/installed");
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("http_func.inc");
include("version_func.inc");
include("global_settings.inc");
port = get_http_port(default:80);
if(!get_port_state(port))exit(0);
if(!vers = get_kb_item(string("nginx/", port, "/version")))exit(0);
if(!isnull(vers) && vers >!< "unknown") {
if(vers =~ "1\.1") {
if(version_is_less(version:vers, test_version:"1.1.17")) {
security_message(port:port);
exit(0);
}
}
if(vers =~ "1\.0") {
if(version_is_less(version:vers, test_version:"1.0.14")) {
security_message(port:port);
exit(0);
}
}
}