The host is running Pidgin, which is prone to integer
overflow vulnerability.
##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_pidgin_intgr_overflow_lin_900009.nasl 7823 2017-11-20 08:54:04Z cfischer $
# Description: Pidgin MSN SLP Message Integer Overflow Vulnerabilities (Linux)
#
# Authors:
# Chandan S <[email protected]>
#
# Copyright:
# Copyright (C) 2008 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# 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.
##############################################################################
tag_impact = "Remote attacker can execute arbitrary code by sending
specially crafted SLP message with the privilege of a user.
Impact Level : SYSTEM";
tag_solution = "Upgrade to Pidgin Version 2.4.3,
http://www.pidgin.im/download/";
tag_summary = "The host is running Pidgin, which is prone to integer
overflow vulnerability.";
tag_affected = "Pidgin Version prior to 2.4.3 on Linux (All).";
tag_insight = "The flaw is due to errors in the msn_slplink_process_msg
function in libpurple/protocols/msnp9/slplink.c and
libpurple/protocols/msn/slplink.c files, which fails to perform
adequate boundary checks on user-supplied data.";
if(description)
{
script_id(900009);
script_version("$Revision: 7823 $");
script_tag(name:"last_modification", value:"$Date: 2017-11-20 09:54:04 +0100 (Mon, 20 Nov 2017) $");
script_tag(name:"creation_date", value:"2008-08-22 10:29:01 +0200 (Fri, 22 Aug 2008)");
script_bugtraq_id(29956);
script_cve_id("CVE-2008-2927");
script_copyright("Copyright (C) 2008 SecPod");
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_category(ACT_GATHER_INFO);
script_tag(name:"qod_type", value:"executable_version");
script_family("General");
script_name("Pidgin MSN SLP Message Integer Overflow Vulnerabilities (Linux)");
script_dependencies("gather-package-list.nasl");
script_mandatory_keys("login/SSH/success");
script_exclude_keys("ssh/no_linux_shell");
script_tag(name : "affected" , value : tag_affected);
script_tag(name : "insight" , value : tag_insight);
script_tag(name : "summary" , value : tag_summary);
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "impact" , value : tag_impact);
script_xref(name : "URL" , value : "http://www.pidgin.im/news/security/?id=24");
exit(0);
}
include("ssh_func.inc");
foreach item (get_kb_list("ssh/login/rpms"))
{
if("pidgin~" >< item)
{
if(egrep(pattern:"^pidgin~([01]\..*|2\.([0-3](\..*)?|" +
"4(\.[0-2])?))($|[^.0-9])", string:item))
{
security_message(0);
exit(0);
}
}
}
sock = ssh_login_or_reuse_connection();
if(!sock){
exit(0);
}
pidginVer = ssh_cmd(socket:sock, cmd:"pidgin --version");
ssh_close_connection();
if(!pidginVer){
exit(0);
}
if(egrep(pattern:"Pidgin ([01]\..*|2\.([0-3](\..*)?|4(\.[0-2])?))($|[^.0-9])",
string:pidginVer)){
security_message(0);
}