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
70.3%
Sun Java Web Server is prone to a buffer overflow vulnerability.
# SPDX-FileCopyrightText: 2009 Greenbone AG
# 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-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.801146");
script_version("2024-02-15T05:05:39+0000");
script_tag(name:"last_modification", value:"2024-02-15 05:05:39 +0000 (Thu, 15 Feb 2024)");
script_tag(name:"creation_date", value:"2009-11-12 15:21:24 +0100 (Thu, 12 Nov 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-3878");
script_name("Sun Java System Web Server Buffer Overflow Vulnerability - Windows");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Greenbone AG");
script_family("Buffer overflow");
script_dependencies("smb_reg_service_pack.nasl");
script_require_ports(139, 445);
script_mandatory_keys("SMB/WindowsVersion");
script_xref(name:"URL", value:"http://intevydis.com/vd-list.shtml");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/36813");
script_xref(name:"URL", value:"http://www.intevydis.com/blog/?p=79");
script_xref(name:"URL", value:"http://secunia.com/advisories/37115");
script_xref(name:"URL", value:"http://www.vupen.com/english/advisories/2009/3024");
script_tag(name:"impact", value:"Successful exploitation will allow attackers to execute arbitrary
code in the context of an affected system.");
script_tag(name:"affected", value:"Sun Java System Web Server version 7.0 update 6 and prior on Windows.");
script_tag(name:"insight", value:"An unspecified error and can be exploited to cause a buffer overflow.");
script_tag(name:"solution", value:"Upgrade to version 7.0 update 7 or later.");
script_tag(name:"summary", value:"Sun Java Web Server is prone to a buffer overflow vulnerability.");
script_tag(name:"qod_type", value:"registry");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");
if( ! registry_key_exists( key:"SOFTWARE\Sun Microsystems\WebServer" ) ) exit( 0 );
jswsPath = registry_get_sz( key:"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Sun Java System Web Server", item:"UninstallString" );
if( ! jswsPath ) exit( 0 );
jswsPath = ereg_replace( pattern:'\"(.*)\"', replace:"\1", string:jswsPath );
jswsPath = jswsPath - "\bin\uninstall.exe" + "\README.TXT";
jswsVer = smb_read_file(fullpath:jswsPath, offset:0, count:150 );
if( ! jswsVer ) exit( 0 );
jswsVer = eregmatch( pattern:"Web Server ([0-9.]+)([ a-zA-z]+)?([0-9]+)?", string:jswsVer );
if( ! jswsVer[1] ) exit( 0 );
if( ! isnull( jswsVer[3] ) ) {
jswsVer = jswsVer[1] + "." + jswsVer[3];
} else {
jswsVer = jswsVer[1];
}
if( jswsVer =~ "^[0-9]" && version_is_less_equal( version:jswsVer, test_version:"7.0.6" ) ) {
report = report_fixed_ver( installed_version:jswsVer, fixed_version:"7.0.7", file_checked:jswsPath );
security_message( port:0, data:report );
exit( 0 );
}
exit( 99 );