Debian DSA-587-1 : freeamp - buffer overflow - Nessus

Critical   Plugin ID: 15685

This page contains detailed information about the Debian DSA-587-1 : freeamp - 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: 15685
Name: Debian DSA-587-1 : freeamp - buffer overflow
Filename: debian_DSA-587.nasl
Vulnerability Published: 2004-09-24
This Plugin Published: 2004-11-10
Last Modification Time: 2021-01-04
Plugin Version: 1.20
Plugin Type: local
Plugin Family: Debian Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/Debian/dpkg-l, Host/Debian/release, Host/local_checks_enabled

Vulnerability Information


Severity: Critical
Vulnerability Published: 2004-09-24
Patch Published: 2004-11-08
CVE [?]: CVE-2004-0964
CPE [?]: cpe:/o:debian:debian_linux:3.0, p-cpe:/a:debian:debian_linux:freeamp

Synopsis

The remote Debian host is missing a security-related update.

Description

Luigi Auriemma discovered a buffer overflow condition in the playlist module of freeamp which could lead to arbitrary code execution. Recent versions of freeamp were renamed into zinf.

Solution

Upgrade the freeamp packages.

For the stable distribution (woody) this problem has been fixed in version 2.1.1.0-4woody2.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
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 Debian DSA-587-1 : freeamp - buffer overflow vulnerability:

  1. Metasploit: exploit/windows/fileformat/zinfaudioplayer221_pls
    [Zinf Audio Player 2.2.1 (PLS File) Stack Buffer Overflow]
  2. Exploit-DB: exploits/windows/local/16688.rb
    [EDB-16688: Zinf Audio Player 2.2.1 - '.pls' Local Stack Buffer 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:C/I:C/A:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:10.0 (High)

Go back to menu.

Plugin Source


This is the debian_DSA-587.nasl nessus plugin source code. This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300

#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Debian Security Advisory DSA-587. The text 
# itself is copyright (C) Software in the Public Interest, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(15685);
  script_version("1.20");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/04");

  script_cve_id("CVE-2004-0964");
  script_xref(name:"DSA", value:"587");

  script_name(english:"Debian DSA-587-1 : freeamp - buffer overflow");
  script_summary(english:"Checks dpkg output for the updated package");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Debian host is missing a security-related update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"Luigi Auriemma discovered a buffer overflow condition in the playlist
module of freeamp which could lead to arbitrary code execution. Recent
versions of freeamp were renamed into zinf."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.debian.org/security/2004/dsa-587"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Upgrade the freeamp packages.

For the stable distribution (woody) this problem has been fixed in
version 2.1.1.0-4woody2."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A: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:'Zinf Audio Player 2.2.1 (PLS File) Stack Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:freeamp");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.0");

  script_set_attribute(attribute:"patch_publication_date", value:"2004/11/08");
  script_set_attribute(attribute:"plugin_publication_date", value:"2004/11/10");
  script_set_attribute(attribute:"vuln_publication_date", value:"2004/09/24");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.");
  script_family(english:"Debian Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");

  exit(0);
}


include("audit.inc");
include("debian_package.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;
if (deb_check(release:"3.0", prefix:"freeamp", reference:"2.1.1.0-4woody2")) flag++;
if (deb_check(release:"3.0", prefix:"freeamp-doc", reference:"2.1.1.0-4woody2")) flag++;
if (deb_check(release:"3.0", prefix:"freeamp-extras", reference:"2.1.1.0-4woody2")) flag++;
if (deb_check(release:"3.0", prefix:"libfreeamp-alsa", reference:"2.1.1.0-4woody2")) flag++;
if (deb_check(release:"3.0", prefix:"libfreeamp-esound", reference:"2.1.1.0-4woody2")) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
  else security_hole(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");

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

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

Go back to menu.

How to Run


Here is how to run the Debian DSA-587-1 : freeamp - 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 Debian Local Security Checks plugin family.
  6. On the right side table select Debian DSA-587-1 : freeamp - buffer overflow plugin ID 15685.
  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 debian_DSA-587.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


DSA | Debian Security Advisory: See also: Similar and related Nessus plugins:
  • 156329 - Debian DLA-2853-1 : ruby2.3 - LTS security update
  • 156332 - Debian DLA-2854-1 : novnc - LTS security update
  • 156334 - Debian DLA-2860-1 : paramiko - LTS security update
  • 156336 - Debian DLA-2862-1 : python-gnupg - LTS security update
  • 156386 - Debian DLA-2865-1 : resiprocate - LTS security update
  • 156391 - Debian DLA-2866-1 : uw-imap - LTS security update
  • 156394 - Debian DLA-2868-1 : advancecomp - LTS security update
  • 156396 - Debian DLA-2852-1 : apache-log4j2 - LTS security update
  • 156449 - Debian DLA-2870-1 : apache-log4j2 - LTS security update
  • 156616 - Debian DSA-5039-1 : wordpress - security update
  • 15663 - Debian DSA-565-1 : sox - buffer overflow
  • 156691 - Debian DLA-2877-1 : gdal - LTS security update
  • 156763 - Debian DSA-5046-1 : chromium - security update
  • 156767 - Debian DSA-5048-1 : libreswan - security update
  • 156773 - Debian DLA-2886-1 : slurm-llnl - LTS security update
  • 156794 - Debian DLA-2888-1 : nvidia-graphics-drivers - LTS security update
  • 156818 - Debian DLA-2887-1 : lighttpd - LTS security update
  • 15687 - Debian DSA-589-1 : libgd1 - integer overflows
  • 15689 - Debian DSA-591-1 : libgd2 - integer overflows
  • 156950 - Debian DSA-5050-1 : linux - security update
  • 156965 - Debian DLA-2884-1 : wordpress - LTS security update
  • 157058 - Debian DLA-2897-1 : apr - LTS security update
  • 157248 - Debian DLA-2904-1 : expat - LTS security update
  • 157251 - Debian DSA-5058-1 : openjdk-17 - security update
  • 157256 - Debian DSA-5057-1 : openjdk-11 - security update
  • 157259 - Debian DSA-5059-1 : policykit-1 - security update
  • 157261 - Debian DLA-2905-1 : apache-log4j1.2 - LTS security update
  • 157262 - Debian DLA-2899-1 : policykit-1 - LTS security update
  • 157263 - Debian DSA-5055-1 : util-linux - security update
  • 157378 - Debian DSA-5066-1 : ruby2.5 - security update
  • 157380 - Debian DSA-5067-1 : ruby2.7 - security update
  • 157409 - Debian DLA-2914-1 : zabbix - LTS security update
  • 157901 - Debian DLA-2917-1 : openjdk-8 - LTS security update
  • 157908 - Debian DSA-5071-1 : samba - security update

Version


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

Go back to menu.