Vulnerabilities > CVE-2011-4963 - Unspecified vulnerability in F5 Nginx

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
NONE
Availability impact
NONE
network
low complexity
f5
nessus

Summary

nginx/Windows 1.3.x before 1.3.1 and 1.2.x before 1.2.1 allows remote attackers to bypass intended access restrictions and access restricted files via (1) a trailing . (dot) or (2) certain "$index_allocation" sequences in a request.

Vulnerable Configurations

Part Description Count
Application
F5
120
OS
Microsoft
1

Nessus

NASL familyWeb Servers
NASL idNGINX_1_3_1.NASL
descriptionAccording to its Server response header, the installed version of nginx is 0.x greater than or equal to 0.7.52 or 1.x earlier than 1.2.1 / 1.3.1 and is, therefore, affected by an access restriction bypass vulnerability. By using a request with a specially crafted directory name, such as
last seen2020-05-09
modified2012-08-02
plugin id61394
published2012-08-02
reporterThis script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/61394
titlenginx on Windows Directory Aliases Access Restriction Bypass
code
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(61394);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/08");

  script_cve_id("CVE-2011-4963");
  script_bugtraq_id(55920);

  script_name(english:"nginx on Windows Directory Aliases Access Restriction Bypass");

  script_set_attribute(
    attribute:"synopsis", 
    value:
"The web server on the remote host may be affected by an access
restriction bypass vulnerability."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"According to its Server response header, the installed version of
nginx is 0.x greater than or equal to 0.7.52 or 1.x earlier than 1.2.1
/ 1.3.1 and is, therefore, affected by an access restriction bypass
vulnerability. 

By using a request with a specially crafted directory name, such as
'/directory::$index_allocation' in place of '/directory', an attacker
may be able to bypass access restrictions such as :

    location /directory/ {
        deny all;
    }

Note that this vulnerability only affects installs on Windows and that
Nessus has not tried to verify the underlying OS."
  );
  script_set_attribute(attribute:"see_also", value:"http://nginx.org/en/CHANGES-1.2");
  script_set_attribute(attribute:"see_also", value:"http://nginx.org/en/security_advisories.html");
  script_set_attribute(attribute:"solution", value:"Upgrade to version 1.2.1 / 1.3.1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2011-4963");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/06/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/06/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/02");

  script_set_attribute(attribute:"cpe", value:"cpe:/a:igor_sysoev:nginx");
  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"agent", value:"unix");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Web Servers");

  script_copyright(english:"This script is Copyright (C) 2012-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("nginx_detect.nasl", "nginx_nix_installed.nbin");
  script_require_keys("installed_sw/nginx"); 
  exit(0);
}

include('http.inc');
include('vcf.inc');

appname = 'nginx';
get_install_count(app_name:appname, exit_if_zero:TRUE);
app_info = vcf::combined_get_app_info(app:appname);

vcf::check_granularity(app_info:app_info, sig_segments:3);
# If the detection is only remote, Detection Method won't be set, and we should require paranoia
if (empty_or_null(app_info['Detection Method']) && report_paranoia < 2)
  audit(AUDIT_PARANOID);

constraints = [
  {'fixed_version' : '1.2.1', 'min_version' : '0.7.52'},
  {'fixed_version' : '1.3.1', 'min_version' : '1.3.0'}
];
vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);

Seebug

bulletinFamilyexploit
descriptionCVE ID: CVE-2011-4963 nginx是一款使用非常广泛的高性能Web服务器。 nginx允许远程攻击者通过请求内的“.”或某些“$index_allocation”序列,绕过目标访问限制或访问受限文件。 0 Nginx 1.2.x 厂商补丁: Nginx ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: http://nginx.net/
idSSV:60439
last seen2017-11-19
modified2012-10-16
published2012-10-16
reporterRoot
titlenginx "location" 受限制资源服务漏洞