############################################################################## # # Red Hat local check # # Revision: # $Revision: 1.7 $ # # ------------------------------------------------------------------------ # # This program was written by StillSecure and is licensed under the GNU # GPL license. Please see below for details. This header contains # information regarding licensing terms under the GPL, and information # regarding obtaining source code from the Author. Consequently, pursuant # to section 3(c) of the GPL, you must accompany the information found in # this header with any distribution you make of this Program. # # Copyright (C) 2005. Latis Networks, Inc (d/b/a StillSecure) # Please see www.stillsecure.com/opensource and # www.stillsecure.com/policies/copyright.php for further information. # # ------------------------------------------------------------------------ # # Obtaining Source Code from StillSecure # # StillSecure delivers network security solutions that protect IT # business infrastructure. The integrated StillSecure suite provides # preventative defense, enables compliance with regulatory information # security policies, and actively blocks network attacks. StillSecure # manages and reduces risk from network attack and noncompliance for some # of the largest organizations in the healthcare, financial services, # government, and education sectors. # # VAM - vulnerability management platform # StillSecure VAM manages the vulnerability remediation process from # end-to-end, allowing you to quickly and systematically fix # vulnerabilities that expose your organization to attack. # # Border Guard - network intrusion detection/prevention # StillSecure Border Guard, named SC Magazine's best IPS of 2004, is a # network intrusion detection/prevention system (IDS/IPS) that identifies # and terminates viruses, worms, Trojans, port scans, and other malicious # traffic before they enter the network. # # Safe Access - endpoint policy compliance # Information Security's Hotpick in 2004, SillSecure Safe Access # protects the network by ensuring that endpoint devices are free from # threats and in compliance with IT security policies. # # StillSecure will offer, for three years from the date this program was # released, to give any third party, for a charge no more than # StillSecure's cost of physically performing source distribution, a # complete machine-readable copy of the corresponding source code, # distributed under the terms of the GPL, on a medium customarily used for # software interchange. # # ------------------------------------------------------------------------ # # About the license for this program: # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License v2 as published by the # Free Software Foundation. This program is distributed WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of # the GNU General Public License with this program; if not, go to # www.gnu.org/licenses/gpl.txt # # ------------------------------------------------------------------------ # # For further information regarding this program or to purchase any # StillSecure products please write to sales@stillsecure.com or call # (303) 381-3800. # # LOCAL_CHECK=YES ############################################################################## # The plugin text is copyright Red Hat, Inc. if ( ! defined_func("bn_random") ) exit(0); if(description) { script_id(401161); script_version ("$Revision: 1.7 $"); script_cve_id("CVE-2004-0600","CVE-2004-0686","CAN-2004-0600","CAN-2004-0686"); name["english"] = "RHEL3 : samba security update"; script_name(english:name["english"]); desc["english"] = ' Details Updated samba packages that fix buffer overflows, as well as other various bugs, are now available. Samba provides file and printer sharing services to SMB/CIFS clients. Evgeny Demidov discovered a flaw in the internal routine used by the Samba Web Administration Tool (SWAT) in Samba versions 3.0.2 through 3.0.4. When decoding base-64 data during HTTP basic authentication, an invalid base-64 character could cause a buffer overflow. If the SWAT administration service is enabled, this flaw could allow an attacker to execute arbitrary code. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2004-0600 to this issue. Additionally, the Samba team discovered a buffer overflow in the code used to support the mangling method = hash smb.conf option. Please be aware that the default setting for this parameter is mangling method = hash2 Description truncated, please see reference URL below for more information. Reference: http://rhn.redhat.com//errata/RHSA-2004-259.html Packages affected: Refer to vendor website for up to date details on packages affected. Solution: Before applying this update, make sure that all previously-released errata relevant to your system have been applied. Use Red Hat Network to download and update your packages. To launch the Red Hat Update Agent, use the following command: up2date For information on how to install packages manually, refer to the following Web page for the System Administration or Customization guide specific to your system: http://www.redhat.com/docs/manuals/enterprise/ Risk factor : High'; script_description(english:desc["english"]); summary["english"] = "RHEL3 : samba security update"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"Copyright (C) 2005-2006 StillSecure"); family["english"] = "Red Hat Local Security Checks"; script_family(english:family["english"]); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/RedHat/rpm-list"); exit(0); } include("rpm.inc"); if ( rpm_check(reference:"samba-3.0.4-6.3E", release:"RHEL3") ) { security_hole(0); exit(0); } if ( rpm_check(reference:"samba-client-3.0.4-6.3E", release:"RHEL3") ) { security_hole(0); exit(0); } if ( rpm_check(reference:"samba-common-3.0.4-6.3E", release:"RHEL3") ) { security_hole(0); exit(0); } if ( rpm_check(reference:"samba-swat-3.0.4-6.3E", release:"RHEL3") ) { security_hole(0); exit(0); } if ( rpm_exists(rpm:"samba-", release:"RHEL3") ) { set_kb_item(name:"CVE-2004-0600", value:TRUE); set_kb_item(name:"CVE-2004-0686", value:TRUE); set_kb_item(name:"CAN-2004-0600", value:TRUE); set_kb_item(name:"CAN-2004-0686", value:TRUE); exit(0); } set_kb_item(name:"RHSA-2004-259", value:TRUE);