CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:C/I:C/A:C
AI Score
Confidence
Low
EPSS
Percentile
99.3%
Winamp is prone to a buffer overflow vulnerability.
# Copyright (C) 2009 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900552");
script_version("2022-05-09T13:48:18+0000");
script_tag(name:"last_modification", value:"2022-05-09 13:48:18 +0000 (Mon, 09 May 2022)");
script_tag(name:"creation_date", value:"2009-06-04 10:49:28 +0200 (Thu, 04 Jun 2009)");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2009-1831");
script_name("Winamp gen_ff.dll Buffer Overflow Vulnerability");
script_xref(name:"URL", value:"http://vrt-sourcefire.blogspot.com/2009/05/winamp-maki-parsing-vulnerability.html");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/35052");
script_tag(name:"qod_type", value:"executable_version");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
script_family("Buffer overflow");
script_dependencies("secpod_winamp_detect.nasl");
script_mandatory_keys("Winamp/Version");
script_require_ports(139, 445);
script_tag(name:"impact", value:"Attackers may leverage this issue by executing arbitrary codes in the
context of the affected application via specially crafted .maki files and can cause denial of service.");
script_tag(name:"affected", value:"Winamp version 5.55 and prior on Windows.");
script_tag(name:"insight", value:"The vulnerability exists in the gen_ff.dll file which is prone to integer
overflow due to an incorrect type cast error while processing malicious .maki file.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"solution", value:"Upgrade to the version 5.552.");
script_tag(name:"summary", value:"Winamp is prone to a buffer overflow vulnerability.");
exit(0);
}
include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
winampVer = get_kb_item("Winamp/Version");
if(!winampVer){
exit(0);
}
if(version_is_less_equal(version:winampVer, test_version:"5.5.5.2405"))
{
winPath = registry_get_sz(key:"SOFTWARE\Microsoft\Windows\CurrentVersion" +
"\App Paths\winamp.exe", item:"Path");
if(!winPath){
exit(0);
}
winPath = winPath + "\Plugins\gen_ff.dll";
share = ereg_replace(pattern:"([A-Z]):.*", replace:"\1$", string:winPath);
file = ereg_replace(pattern:"[A-Z]:(.*)", replace:"\1", string:winPath);
dllSize = get_file_size(share:share, file:file);
if(dllSize){
report = report_fixed_ver(installed_version:winampVer, vulnerable_range:"Less than or equal to 5.5.5.2405", install_path:winPath);
security_message(port: 0, data: report);
}
}