PeerCast procConnectArgs() Function URL Handling Remote Overflow - Nessus

High   Plugin ID: 21041

This page contains detailed information about the PeerCast procConnectArgs() Function URL Handling 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: 21041
Name: PeerCast procConnectArgs() Function URL Handling Remote Overflow
Filename: peercast_01217.nasl
Vulnerability Published: 2006-03-09
This Plugin Published: 2006-03-10
Last Modification Time: 2018-11-15
Plugin Version: 1.20
Plugin Type: remote
Plugin Family: Peer-To-Peer File Sharing
Dependencies: peercast_installed.nasl
Required KB Items [?]: PeerCast/installed

Vulnerability Information


Severity: High
Vulnerability Published: 2006-03-09
Patch Published: N/A
CVE [?]: CVE-2006-1148
CPE [?]: N/A

Synopsis

The remote web server suffers from a buffer overflow vulnerability.

Description

The version of PeerCast installed on the remote host copies the supplied option string without limit into a finite-size buffer. An unauthenticated attacker can leverage this issue to crash the affected application and possibly to execute arbitrary code on the remote host subject to the privileges of the user running PeerCast.

Solution

Upgrade to PeerCast version 0.1217 or later.

Public Exploits


Target Network Port(s): 7144
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 PeerCast procConnectArgs() Function URL Handling Remote Overflow vulnerability:

  1. Metasploit: exploit/linux/http/peercast_url
    [PeerCast URL Handling Buffer Overflow]
  2. Metasploit: exploit/windows/http/peercast_url
    [PeerCast URL Handling Buffer Overflow]
  3. Exploit-DB: exploits/linux/remote/10027.rb
    [EDB-10027: PeerCast 0.1216 - Remote Stack Overflow (Metasploit)]
  4. Exploit-DB: exploits/windows_x86/remote/16786.rb
    [EDB-16786: PeerCast 0.1216 (Windows x86) - URL Handling Buffer Overflow (Metasploit)]
  5. Exploit-DB: exploits/linux/remote/16855.rb
    [EDB-16855: PeerCast 0.1216 (Linux) - URL Handling Buffer Overflow (Metasploit)]
  6. GitHub: https://github.com/mudongliang/LinuxFlaw/tree/master/CVE-2006-1148
    [CVE-2006-1148]

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 peercast_01217.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(21041);
  script_version("1.20");

  script_cve_id("CVE-2006-1148");
  script_bugtraq_id(17040);

  script_name(english:"PeerCast procConnectArgs() Function URL Handling Remote Overflow");
  script_summary(english:"Checks version of PeerCast web server");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web server suffers from a buffer overflow vulnerability." );
 script_set_attribute(attribute:"description", value:
"The version of PeerCast installed on the remote host copies the
supplied option string without limit into a finite-size buffer.  An
unauthenticated attacker can leverage this issue to crash the affected
application and possibly to execute arbitrary code on the remote host
subject to the privileges of the user running PeerCast." );
 script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/427160/30/0/threaded" );
 # http://web.archive.org/web/20070713004957/http://www.peercast.org/forum/viewtopic.php?t=3346
 script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ed1ade41" );
 script_set_attribute(attribute:"solution", value:
"Upgrade to PeerCast version 0.1217 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:'PeerCast URL Handling Buffer Overflow');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2006/03/10");
 script_set_attribute(attribute:"vuln_publication_date", value: "2006/03/09");
 script_cvs_date("Date: 2018/11/15 20:50:24");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Peer-To-Peer File Sharing");
  script_copyright(english:"This script is Copyright (C) 2006-2018 Tenable Network Security, Inc.");
  script_dependencies("peercast_installed.nasl");
  script_require_keys("PeerCast/installed");
  script_require_ports("Services/www", 7144);

  exit(0);
}


if (!get_kb_item("PeerCast/installed")) exit(0);

include("global_settings.inc");

list = get_kb_list("PeerCast/*/version");
if (isnull(list)) exit(0);

foreach key (keys(list))
{
  port = key - "PeerCast/" - "/version";
  ver = list[key];

  if (get_port_state(port))
  {
    # Check the version.
    vuln = FALSE;

    if (ver =~ "^[0-9]\.[0-9]+$")
    {
      iver = split(ver, sep:'.', keep:FALSE);
      for (i=0; i<max_index(iver); i++)
        iver[i] = int(iver[i]);

      if (iver[0] == 0 && iver[1] < 1218) vuln = TRUE;
    }
    else if (report_paranoia > 1) vuln = TRUE;

    if (vuln)
    {
     report = string(
        "According to its Server response header, the version of PeerCast on the\n",
        "remote host is :\n",
        "\n",
        "  ", ver, "\n"
      );
      security_hole(port:port, extra:report);
      break;
    }
  }
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/peercast_01217.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\peercast_01217.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/peercast_01217.nasl

Go back to menu.

How to Run


Here is how to run the PeerCast procConnectArgs() Function URL Handling 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 Peer-To-Peer File Sharing plugin family.
  6. On the right side table select PeerCast procConnectArgs() Function URL Handling Remote Overflow plugin ID 21041.
  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 peercast_01217.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 21124 - GLSA-200603-17 : PeerCast: Buffer overflow
  • 29726 - PeerCast servhs.cpp handshakeHTTP Function SOURCE Request Remote Overflow
  • 18417 - PeerCast URL Error Message Format String
  • 29808 - Debian DSA-1441-1 : peercast - buffer overflow
  • 32405 - Debian DSA-1583-1 : gnome-peercast - buffer overflow
  • 29770 - FreeBSD : peercast -- buffer overflow vulnerability (31435fbc-ae73-11dc-a5f9-001a4d49522b)
  • 18530 - GLSA-200506-15 : PeerCast: Format string vulnerability
  • 30139 - GLSA-200801-22 : PeerCast: Buffer overflow
  • 38986 - Apple iTunes < 8.2 itms: URI Handling Overflow (uncredentialed check)
  • 41061 - Apple iTunes < 9.0.1 PLS File Buffer Overflow (uncredentialed check)

Version


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

Go back to menu.