Lucene search
K

Python Multiple Vulnerabilities (Linux)

🗓️ 22 Aug 2008 00:00:00Reported by Copyright (C) 2008 SecPodType 
openvas
 openvas
🔗 plugins.openvas.org👁 35 Views

Python Multiple Vulnerabilities on Linux, leading to arbitrary code execution and denial of servic

Related
Refs
Code
##############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_python_mult_vuln_lin_900106.nasl 7823 2017-11-20 08:54:04Z cfischer $
# Description: Python Multiple Vulnerabilities (Linux)
#
# Authors:
# Sharath 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 = "Successful exploitation could potentially causes attackers to
        execute arbitrary code or create a denial of service condition.
 Impact Level : Application";

tag_solution = "Fix is available in the SVN repository,
 http://svn.python.org";

tag_affected = "Python 2.5.2 and prior on Linux (All).";

tag_insight = "The flaws exist due to integer overflow in,
        - hashlib module, which can lead to an unreliable cryptographic digest 
          results.
        - the processing of unicode strings.
        - the PyOS_vsnprintf() function on architectures that do not have a 
          vsnprintf() function.
        - the PyOS_vsnprintf() function when passing zero-length strings can 
          lead to memory corruption.";


tag_summary = "The host is installed Python, which is prone to multiple vulnerabilities.

 This NVT has been replaced by NVT gb_CESA-2009_1176_python_centos5_i386.nasl
 (OID:1.3.6.1.4.1.25623.1.0.880881), gb_CESA-2009_1178_python_centos3_i386.nasl
 (OID:1.3.6.1.4.1.25623.1.0.880715).";

if(description)
{
 script_id(900106);
 script_version("$Revision: 7823 $");
 script_tag(name:"deprecated", value:TRUE);
 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(30491);
 script_cve_id("CVE-2008-2315", "CVE-2008-2316", "CVE-2008-3142",
		"CVE-2008-3143","CVE-2008-3144");
 script_copyright("Copyright (C) 2008 SecPod");
 script_tag(name:"cvss_base", value:"7.5");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_category(ACT_GATHER_INFO);
  script_tag(name:"qod_type", value:"executable_version");
 script_family("Buffer overflow");
 script_name("Python Multiple Vulnerabilities (Linux)");
 script_dependencies("gather-package-list.nasl");
 script_mandatory_keys("login/SSH/success");
 script_exclude_keys("ssh/no_linux_shell");

 script_xref(name : "URL" , value : "http://bugs.python.org/issue2588");
 script_xref(name : "URL" , value : "http://bugs.python.org/issue2589");
 script_xref(name : "URL" , value : "http://bugs.python.org/issue2620");
 script_tag(name : "summary" , value : tag_summary);
 script_tag(name : "insight" , value : tag_insight);
 script_tag(name : "affected" , value : tag_affected);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "impact" , value : tag_impact);
 exit(0);
}

exit(66); ## This NVT is deprecated as addressed in gb_CESA-2009_1176_python_centos5_i386.nasl
          ## gb_CESA-2009_1178_python_centos3_i386.nasl

 include("ssh_func.inc");

 foreach item (get_kb_list("ssh/login/rpms"))
 {
        if("python" >< item)
        {
                if(egrep(pattern:"python-.*~([01]\..*|2\.([0-4]\..*|5\.[0-2]))[^.0-9]",
			 string:item)){
                        security_message(0); 
                }
		exit(0);
        }
 }

 sock = ssh_login_or_reuse_connection();
 if(!sock){
        exit(0);
 }

 pyVer = ssh_cmd(socket:sock, cmd:"python -V");
 ssh_close_connection();

 if(!pyVer){
        exit(0);
 }

 if(egrep(pattern:"^Python ([01]\..*|2\.([0-4]\..*|5\.[0-2]))$", string:pyVer)){
        security_message(0);
 }

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation