WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities - Nessus
High Plugin ID: 20391This page contains detailed information about the WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 20391
Name: WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities
Filename: winproxy_http_61a.nasl
Vulnerability Published: 2006-01-05
This Plugin Published: 2006-01-10
Last Modification Time: 2018-08-06
Plugin Version: 1.19
Plugin Type: remote
Plugin Family: Firewalls
Dependencies:
find_service2.nasl, httpver.nasl
Vulnerability Information
Severity: High
Vulnerability Published: 2006-01-05
Patch Published: 2006-01-05
CVE [?]: CVE-2005-3187, CVE-2005-4085
CPE [?]: N/A
Synopsis
The remote web proxy server is affected by denial of service and buffer overflow vulnerabilities.
Description
The remote host is running WinProxy, a proxy server for Windows.
The installed version of WinProxy's HTTP proxy fails to handle long requests as well as requests with long Host headers. An attacker may be able to exploit these issues to crash the proxy or even execute arbitrary code on the affected host.
Solution
Upgrade to WinProxy version 6.1a or later.
Public Exploits
Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities vulnerability:
- Metasploit: exploit/windows/proxy/bluecoat_winproxy_host
[Blue Coat WinProxy Host Header Overflow] - Exploit-DB: exploits/windows/remote/16691.rb
[EDB-16691: Blue Coat WinProxy - Host Header Overflow (Metasploit)]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.2 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.2 (Medium) |
Go back to menu.
Plugin Source
This is the winproxy_http_61a.nasl nessus plugin source code. This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description) {
script_id(20391);
script_version("1.19");
script_cve_id("CVE-2005-3187", "CVE-2005-4085");
script_bugtraq_id(16147, 16148);
script_name(english:"WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities");
script_summary(english:"Checks for multiple vulnerabilities in WinProxy < 6.1a HTTP Proxy");
script_set_attribute(attribute:"synopsis", value:
"The remote web proxy server is affected by denial of service and
buffer overflow vulnerabilities." );
script_set_attribute(attribute:"description", value:
"The remote host is running WinProxy, a proxy server for Windows.
The installed version of WinProxy's HTTP proxy fails to handle long
requests as well as requests with long Host headers. An attacker may
be able to exploit these issues to crash the proxy or even execute
arbitrary code on the affected host." );
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?40f07cd6" );
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3a6c81a5" );
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?8c88612f" );
script_set_attribute(attribute:"solution", value:
"Upgrade to WinProxy version 6.1a or later." );
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'Blue Coat WinProxy Host Header Overflow');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2006/01/10");
script_set_attribute(attribute:"patch_publication_date", value: "2006/01/05");
script_set_attribute(attribute:"vuln_publication_date", value: "2006/01/05");
script_cvs_date("Date: 2018/08/06 14:03:14");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_DENIAL);
script_family(english:"Firewalls");
script_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.");
script_dependencies("find_service2.nasl", "httpver.nasl");
script_require_ports("Services/www", 80);
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:80, dont_break: 1);
# Make sure it looks like WinProxy.
help = get_kb_banner(port: port, type: "help");
if (help && "Proxy-agent: BlueCoat-WinProxy" >< help) {
# Flag it as a proxy.
register_service(port:port, ipproto:"tcp", proto:"http_proxy");
# Try to exploit it.
rq = http_mk_proxy_request(port: 80, item: "/", host: "127.0.0.1", method: "GET", scheme: "http", version: 10, add_headers: make_array("Host", crap(32800)));
w = http_send_recv_req(port: port, req: rq);
# If we didn't get anything, try resending the query.
w = http_send_recv3(port: port, item:"/", method:"GET");
# There's a problem if we didn't get a response the second time.
if (isnull(w)) security_hole(port);
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/winproxy_http_61a.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\winproxy_http_61a.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/winproxy_http_61a.nasl
Go back to menu.
How to Run
Here is how to run the WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Firewalls plugin family.
- On the right side table select WinProxy < 6.1a HTTP Proxy Multiple Vulnerabilities plugin ID 20391.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl winproxy_http_61a.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a winproxy_http_61a.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - winproxy_http_61a.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state winproxy_http_61a.nasl -t <IP/HOST>
Go back to menu.
References
BID | SecurityFocus Bugtraq ID: See also:
- https://www.tenable.com/plugins/nessus/20391
- http://www.nessus.org/u?3a6c81a5
- http://www.nessus.org/u?8c88612f
- http://www.nessus.org/u?40f07cd6
- https://vulners.com/nessus/WINPROXY_HTTP_61A.NASL
- 20393 - WinProxy < 6.1a Multiple Vulnerabilities (credentialed check)
- 24277 - WinProxy < 6.1r1c HTTP CONNECT Request Remote Overflow
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file winproxy_http_61a.nasl version 1.19. For more plugins, visit the Nessus Plugin Library.
Go back to menu.