############################################################################## # # MPlayer 'stream_read' Function Remote Heap Based BOF Vulnerability # # Copyright: SecPod # # Date Written: 2008/10/01 # # Revision: 1.1 # # Log : ssharath # Issue #0297 # ------------------------------------------------------------------------ # This program was written by SecPod and is licensed under the GNU GPL # license. Please refer to the below link for details, # http://www.gnu.org/licenses/gpl.html # 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. # ------------------------------------------------------------------------ ############################################################################## if(description) { script_id(900146); script_bugtraq_id(31473); script_cve_id("CVE-2008-3827"); script_copyright(english:"Copyright (C) 2008 SecPod"); script_version("Revision: 1.1 "); script_category(ACT_GATHER_INFO); script_family(english:"Denial of Service"); script_name(english:"MPlayer 'stream_read' Function Remote Heap Based BOF Vulnerability"); script_summary(english:"Check for vulnerable version of MPlayer"); desc["english"] = " Overview : This host is installed with MPlayer, which is prone to remote heap Based BOF Vulnerability Vulnerability Insight: The flaw is exist due to error in function 'demux_real_fill_buffer()' in libmpdemux/demux_real.c which can be exploited to cause heap based buffer overflow through a specially crafted real media file. Impact: Execution of arbitrary code in the context of the application, and denial of service. Impact Level: Application Affected Software/OS : MPlayer versions 1.0rc2 and prior on all running platform. Fix : Patch is available in SVN repository, http://svn.mplayerhq.hu/mplayer/trunk/libmpdemux/demux_real.c?r1=27314&r2=27675 ***** NOTE : Ignore this warning, if above mentioned patch is already applied. ***** References : http://secunia.com/advisories/32045/ http://www.securityfocus.com/archive/1/496806 http://www.frsirt.com/english/advisories/2008/2703 http://www.ocert.org/advisories/ocert-2008-013.html CVSS Score : CVSS Base Score : 6.8 (AV:N/AC:M/Au:NR/C:P/I:P/A:P) CVSS Temporal Score : 5.3 Risk factor : High"; script_description(english:desc["english"]); script_dependencies("gather-package-list.nasl"); script_require_keys("ssh/login/uname"); exit(0); } include("ssh_func.inc"); if("Linux" >!< get_kb_item("ssh/login/uname")){ exit(0); } sock = ssh_login_or_reuse_connection(); if(!sock){ exit(0); } mplayerVer = ssh_cmd(socket:sock, cmd:"mplayer", timeout:timeout); ssh_close_connection(); if(!mplayerVer){ exit(0); } # grep for file version 1.0rc2 and prior if(egrep(pattern:"^MPlayer (0\..*|1\.(0(.*)))", string:mplayerVer)){ security_hole(0); }