WinGate POST Request Buffer Overflow - Nessus

High   Plugin ID: 21674

This page contains detailed information about the WinGate POST Request Buffer Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 21674
Name: WinGate POST Request Buffer Overflow
Filename: wingate_613.nasl
Vulnerability Published: 2006-06-07
This Plugin Published: 2006-06-09
Last Modification Time: 2018-08-22
Plugin Version: 1.16
Plugin Type: remote
Plugin Family: Windows
Dependencies: http_version.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2006-06-07
Patch Published: N/A
CVE [?]: CVE-2006-2926
CPE [?]: N/A

Synopsis

The remote HTTP proxy server is prone to a buffer overflow attack.

Description

The remote host appears to be running WinGate Proxy Server, a Windows application for managing and securing Internet access.

According to its banner, the version of WinGate installed on the remote host is affected by a buffer overflow vulnerability in its HTTP proxy service. An attacker with access to use the proxy may be able to exploit this issue to execute arbitrary code on the remote host.

Note that by default the service operates with LOCAL SYSTEM privileges, which means that a successful attack may result in a complete compromise of the affected system.

Solution

Upgrade to WinGate 6.1.3 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the WinGate POST Request Buffer Overflow vulnerability:

  1. Metasploit: exploit/windows/proxy/qbik_wingate_wwwproxy
    [Qbik WinGate WWW Proxy Server URL Processing Overflow]
  2. Exploit-DB: exploits/windows/remote/16690.rb
    [EDB-16690: QBik WinGate WWW Proxy Server - URL Processing Overflow (Metasploit)]
  3. Immunity Canvas: CANVAS

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 wingate_613.nasl nessus plugin source code. This script is Copyright (C) 2006-2018 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security
#

include("compat.inc");

if (description)
{
  script_id(21674);
  script_version("1.16");

  script_cve_id("CVE-2006-2926");
  script_bugtraq_id(18312);

  script_name(english:"WinGate POST Request Buffer Overflow");
  script_summary(english:"Checks version number in WinGate's banner");

 script_set_attribute(attribute:"synopsis", value:
"The remote HTTP proxy server is prone to a buffer overflow attack." );
 script_set_attribute(attribute:"description", value:
"The remote host appears to be running WinGate Proxy Server, a Windows
application for managing and securing Internet access. 

According to its banner, the version of WinGate installed on the
remote host is affected by a buffer overflow vulnerability in its HTTP
proxy service.  An attacker with access to use the proxy may be able
to exploit this issue to execute arbitrary code on the remote host. 

Note that by default the service operates with LOCAL SYSTEM
privileges, which means that a successful attack may result in a
complete compromise of the affected system." );
 script_set_attribute(attribute:"see_also", value:"http://lists.grok.org.uk/pipermail/full-disclosure/2006-June/046646.html" );
 script_set_attribute(attribute:"see_also", value:"http://forums.qbik.com/viewtopic.php?t=4215" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to WinGate 6.1.3 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:"exploit_framework_core", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'Qbik WinGate WWW Proxy Server URL Processing Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
 script_set_attribute(attribute:"canvas_package", value:'CANVAS');
 script_set_attribute(attribute:"plugin_publication_date", value: "2006/06/09");
 script_set_attribute(attribute:"vuln_publication_date", value: "2006/06/07");
 script_cvs_date("Date: 2018/08/22 16:49:14");
 script_set_attribute(attribute:"plugin_type", value: "remote");
 script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

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

  script_dependencies("http_version.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);

# There's a problem if the banner is for WinGate < 6.1.3.
banner = get_http_banner(port:port, exit_on_fail: 1);
if (
  egrep(pattern:"^Server: +WinGate ([0-5]\.|6\.(0\.|1\.[0-2][^0-9]))", string:banner)
) 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/wingate_613.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\wingate_613.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/wingate_613.nasl

Go back to menu.

How to Run


Here is how to run the WinGate POST Request Buffer Overflow as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Windows plugin family.
  6. On the right side table select WinGate POST Request Buffer Overflow plugin ID 21674.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. 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 wingate_613.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a wingate_613.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - wingate_613.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 wingate_613.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 105154 - PuTTY < 0.67 PSCP Server Header Handling Stack Buffer Overflow
  • 11705 - LeapFTP < 2.7.4.x PASV Reply Remote Overflow
  • 122033 - Apache OpenOffice < 4.1.6 Virtual Table Arithmetic Overflow
  • 124062 - SolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow
  • 145534 - Python Buffer Overflow (CVE-2021-3177)
  • 15771 - Ipswitch IMail IMAP Service DELETE Command Remote Overflow
  • 15822 - SecureCRT SSH-1 Protocol Version String Remote Overflow
  • 17254 - RealPlayer Multiple Remote Overflows (2005-03-01)
  • 18041 - CA BrightStor ARCserve Backup Universal Agent Remote Overflow (QO66526)
  • 18551 - VERITAS Backup Exec Agent for Windows CONNECT_CLIENT_AUTH Remote Overflow
  • 19193 - MailEnable IMAP STATUS Command Remote Overflow
  • 19387 - CA BrightStor ARCserve Backup Agent for Windows Long String Overflow
  • 19553 - DameWare Mini Remote Control Pre-Authentication Remote Overflow
  • 19554 - DameWare Mini Remote Control Pre-Authentication Username Remote Overflow
  • 19783 - MailEnable IMAP Server W3C Logging Overflow
  • 20826 - Winamp < 5.13 Playlist Handling Multiple Overflows
  • 21141 - Rhapsody SWF File Handling Buffer Overflow
  • 21738 - Winamp < 5.24 in_midi.dll MIDI File Processing Overflow
  • 22127 - eIQnetworks Enterprise Security Analyzer Syslog Server Multiple Remote Overflows
  • 22129 - eIQnetworks Enterprise Security Analyzer EnterpriseSecurityAnalyzer.exe LICMGR_ADDLICENSE Command Remote Overflow
  • 22196 - eIQnetworks Enterprise Security Analyzer Monitoring.exe Multiple Command Overflow
  • 22253 - IBM eGatherer ActiveX RunEgatherer Function Overflow
  • 22510 - CA BrightStor ARCserve Backup for Windows Multiple Remote Buffer Overflows (QO81201)
  • 22511 - CA BrightStor ARCserve Backup DBASVR for Windows Multiple Remote Buffer Overflows
  • 23637 - Broadcom Wireless Driver (BCMWL5.SYS) Probe Response SSID Overflow
  • 23699 - Novell NetWare Client Print Provider (nwspool.dll) Multiple Function Overflow
  • 23735 - 3CTftpSvc Long Transport Mode Remote Overflow
  • 23783 - MailEnable IMAP Server Multiple Buffer Overflow Vulnerabilities (ME-10025)
  • 24013 - CA BrightStor ARCserve Backup Tape Engine Multiple Remote Overflows (QO84983)
  • 24236 - Symantec AntiVirus Management Interface Remote Overflow (SYM06-010)
  • 24268 - QuickTime RTSP URL Handler Buffer Overflow (Windows)
  • 24277 - WinProxy < 6.1r1c HTTP CONNECT Request Remote Overflow
  • 24683 - Trend Micro OfficeScan OfficeScanSetupINI.dll Remote Buffer Overflow
  • 24909 - TestDirector (TD) for Mercury Quality Center SPIDERLib.Loader ActiveX Control (Spider90.ocx) ProgColor Property Overflow

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file wingate_613.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.

Go back to menu.