MiniShare Webserver HTTP GET Request Remote Overflow - Nessus

High   Plugin ID: 18424

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

Plugin Overview


ID: 18424
Name: MiniShare Webserver HTTP GET Request Remote Overflow
Filename: minishare_overflow.nasl
Vulnerability Published: 2004-11-07
This Plugin Published: 2005-06-06
Last Modification Time: 2020-06-12
Plugin Version: 1.24
Plugin Type: remote
Plugin Family: Web Servers
Dependencies: find_service1.nasl, http_version.nasl, no404.nasl

Vulnerability Information


Severity: High
Vulnerability Published: 2004-11-07
Patch Published: N/A
CVE [?]: CVE-2004-2271
CPE [?]: N/A
Exploited by Malware: True

Synopsis

The remote web server is affected by a remote buffer overflow vulnerability.

Description

MiniShare 1.4.1 and prior versions are affected by a buffer overflow flaw. A remote attacker could execute arbitrary commands by sending a specially crafted file name in a the GET request.

Version 1.3.4 and below do not seem to be vulnerable.

Solution

Upgrade to MiniShare 1.4.2 or higher.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the MiniShare Webserver HTTP GET Request Remote Overflow vulnerability:

  1. Metasploit: exploit/windows/http/minishare_get_overflow
    [Minishare 1.4.1 Buffer Overflow]
  2. Exploit-DB: exploits/windows/remote/16754.rb
    [EDB-16754: MiniShare 1.4.1 - Remote Buffer Overflow (Metasploit)]
  3. Exploit-DB: exploits/windows/remote/45999.txt
    [EDB-45999: MiniShare 1.4.1 - 'HEAD/POST' Remote Buffer Overflow]
  4. GitHub: https://github.com/PercussiveElbow/CVE-2004-2271-MiniShare-1.4.1-Buffer-Overflow
    [CVE-2004-2271]
  5. GitHub: https://github.com/UCLM-ESI/ser.minishare
    [CVE-2004-2271]
  6. GitHub: https://github.com/richardsonjf/Buffer-Overflow-Minishare
    [CVE-2004-2271]
  7. GitHub: https://github.com/kkirsche/CVE-2004-2271
    [CVE-2004-2271: Minishare 1.4.1 Remote Buffer Overflow]
  8. GitHub: https://github.com/pwncone/CVE-2004-2271-MiniShare-1.4.1-BOF
    [CVE-2004-2271: A python implementation of CVE-2004-2271 targeting MiniShare 1.4.1.]
  9. GitHub: https://github.com/war4uthor/CVE-2004-2271
    [CVE-2004-2271: CVE-2004-2271 - Minishare 1.4.1 HTTP Server Remote Buffer Overflow Vulnerability. ...]

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:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)

Go back to menu.

Plugin Source


This is the minishare_overflow.nasl nessus plugin source code. This script is Copyright (C) 2005-2020 SensePost

#
# written by Gareth Phillips - SensePost PTY ltd (www.sensepost.com)
#
# Changes by Tenable:
# - detect title to prevent false positives
# - fix version detection
# - added CVE xrefs.
# - revised plugin title, changed family, update output formatting (8/18/09)



include("compat.inc");

if(description)
{
 script_id(18424);
 script_version ("1.24");
 script_cve_id("CVE-2004-2271");
 script_bugtraq_id (11620);

 script_name(english:"MiniShare Webserver HTTP GET Request Remote Overflow");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by a remote buffer overflow 
vulnerability." );
 script_set_attribute(attribute:"description", value:
"MiniShare 1.4.1 and prior versions are affected by a buffer overflow 
flaw. A remote attacker could execute arbitrary commands by sending a
specially crafted file name in a the GET request.

Version 1.3.4 and below do not seem to be vulnerable." );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2004/Nov/248" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to MiniShare 1.4.2 or higher." );
 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:H/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:"exploited_by_malware", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'Minishare 1.4.1 Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value: "2005/06/06");
 script_set_attribute(attribute:"vuln_publication_date", value: "2004/11/07");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 script_summary(english:"MiniShare webserver buffer overflows");
 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2005-2020 SensePost");
 script_family(english:"Web Servers");
 script_dependencie("http_version.nasl", "find_service1.nasl", "no404.nasl");
 script_require_ports("Services/www", 80);
 exit(0);
}

#
# Code Starts Here
#

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

port = get_http_port(default:80, embedded:TRUE);

if(get_port_state(port))
{
res = http_get_cache_ka(item:"/", port:port);
if( res == NULL ) exit(0);
if ("<title>MiniShare</title>" >!< res)
  exit (0);

if (egrep (string:res, pattern:'<p class="versioninfo"><a href="http://minishare\\.sourceforge\\.net/">MiniShare 1\\.(3\\.([4-9][^0-9]|[0-9][0-9])|4\\.[0-1][^0-9])'))
  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/minishare_overflow.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\minishare_overflow.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/minishare_overflow.nasl

Go back to menu.

How to Run


Here is how to run the MiniShare Webserver HTTP GET Request Remote 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 Web Servers plugin family.
  6. On the right side table select MiniShare Webserver HTTP GET Request Remote Overflow plugin ID 18424.
  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 minishare_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 31654 - Apache < 1.3.37 mod_rewrite LDAP Protocol URL Handling Overflow
  • 31655 - Apache < 2.0.59 mod_rewrite LDAP Protocol URL Handling Overflow
  • 31659 - Apache < 2.2.3 mod_rewrite LDAP Protocol URL Handling Overflow
  • 11030 - Apache Chunked Encoding Remote Overflow
  • 14771 - Apache <= 1.3.33 htpasswd Local Overflow
  • 10918 - Apache-SSL < 1.3.23+1.46 i2d_SSL_SESSION Function SSL Client Certificate Overflow
  • 17241 - BadBlue ext.dll mfcisapicommand Parameter Remote Overflow
  • 15774 - CCProxy Logging Compoent HTTP GET Request Remote Overflow
  • 22494 - ePolicy Orchestrator HTTP /spipe/pkg/ Source Header Remote Overflow
  • 11923 - Microsoft FrontPage Server Extensions (fp30reg.dll) Debug Function Remote Overflow (MS03-051 / 813360)
  • 144291 - IBM HTTP Server 7.0.0.0 < 7.0.0.33 / 8.0.0.0 < 8.0.0.9 / 8.5.0.0 < 8.5.5.2 Buffer Overflow (244199)
  • 25149 - IBM Tivoli Provisioning Manager OS Deployment Multiple Stack Overflows
  • 14843 - Icecast HTTP Header Processing Remote Overflow
  • 10657 - MS01-023: Microsoft IIS 5.0 Malformed HTTP Printer Request Header Remote Buffer Overflow (953155) (uncredentialed check)
  • 10116 - Microsoft IIS ISM.DLL HTR Request Remote Overflow
  • 11028 - Microsoft IIS .HTR Filter Multiple Overflows (MS02-028)
  • 11412 - Microsoft IIS WebDAV ntdll.dll Remote Overflow (MS03-007)
  • 11068 - iPlanet Chunked Encoding Processing Remote Overflow
  • 26057 - lighttpd mod_fastcgi HTTP Request Header Remote Overflow
  • 31786 - Apache mod_jk2 Host Header Multiple Fields Remote Overflow
  • 11809 - mod_mylo for Apache mylo_log Logging Function HTTP GET Overflow
  • 10888 - Apache mod_ssl i2d_SSL_SESSION Function SSL Client Certificate Overflow
  • 11161 - Microsoft Data Access Components RDS Data Stub Remote Overflow
  • 105359 - nginx < 1.13.3 Integer Overflow Vulnerability
  • 73519 - nginx < 1.4.7 / 1.5.12 SPDY Heap Buffer Overflow
  • 11664 - Microsoft Media Services ISAPI nsiislog.dll Multiple Overflows
  • 11183 - Null httpd Content-Length Header Handling Remote Overflow
  • 132726 - OpenSSL 1.0.2 < 1.0.2u Procedure Overflow Vulnerability
  • 132725 - OpenSSL 1.1.1 < 1.1.1e-dev Procedure Overflow Vulnerability
  • 54924 - IBM Tivoli Management Framework Endpoint addr URL Remote Buffer Overflow
  • 34781 - Oracle WebLogic Server mod_wl Invalid Parameter Remote Overflow (1150354)
  • 33932 - Oracle WebLogic Server mod_wl POST Request Remote Overflow
  • 35374 - Oracle WebLogic Server Plug-in Remote Overflow (1166189)
  • 10320 - Web Server Long URL Handling Remote Overflow DoS

Version


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

Go back to menu.