nginx on Windows Directory Aliases Access Restriction Bypass

This script is Copyright (C) 2012-2014 Tenable Network Security, Inc.


Synopsis :

The web server on the remote host may be affected by an access
restriction bypass vulnerability.

Description :

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.

See also :

http://nginx.org/en/CHANGES-1.2
http://nginx.org/en/security_advisories.html

Solution :

Upgrade to version 1.2.1 / 1.3.1 or later.

Risk factor :

Medium / CVSS Base Score : 5.0
(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N)
CVSS Temporal Score : 4.1
(CVSS2#E:F/RL:OF/RC:C)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 61394 ()

Bugtraq ID: 55920

CVE ID: CVE-2011-4963