Executive Summary



This Alert is flagged as TOP 25 Common Weakness Enumeration from CWE/SANS. For more information, you can read this.
Summary
Title CherryPy: Directory traversal vulnerability
Informations
Name GLSA-200801-11 First vendor Publication 2008-01-27
Vendor Gentoo Last vendor Modification 2008-01-27
Severity (Vendor) Normal Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Cvss Base Score 7.5 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Low
Cvss Expoit Score 10 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

CherryPy is vulnerable to a directory traversal that could allow attackers to read and write arbitrary files.

Background

CherryPy is a Python-based, object-oriented web development framework.

Description

CherryPy does not sanitize the session id, provided as a cookie value, in the FileSession._get_file_path() function before using it as part of the file name.

Impact

A remote attacker could exploit this vulnerability to read and possibly write arbitrary files on the web server, or to hijack valid sessions, by providing a specially crafted session id. This only affects applications using file-based sessions.

Workaround

Disable the "FileSession" functionality by using "PostgresqlSession" or
"RamSession" session management in your CherryPy application.

Resolution

All CherryPy 2.2 users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-python/cherrypy-2.2.1-r2"

All CherryPy 3.0 users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-python/cherrypy-3.0.2-r1"

References

[ 1 ] CVE-2008-0252 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0252

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200801-11.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200801-11.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE/SANS Top 25)

OVAL Definitions

Definition Id: oval:org.mitre.oval:def:18677
 
Oval ID: oval:org.mitre.oval:def:18677
Title: DSA-1481-1 python-cherrypy - missing input sanitising
Description: It was discovered that a directory traversal vulnerability in CherryPy, a pythonic, object-oriented web development framework, may lead to denial of service by deleting files through malicious session IDs in cookies.
Family: unix Class: patch
Reference(s): DSA-1481-1
CVE-2008-0252
Version: 7
Platform(s): Debian GNU/Linux 4.0
Product(s): python-cherrypy
Definition Synopsis:
Definition Id: oval:org.mitre.oval:def:7998
 
Oval ID: oval:org.mitre.oval:def:7998
Title: DSA-1481 python-cherrypy -- missing input sanitising
Description: It was discovered that a directory traversal vulnerability in CherryPy, a pythonic, object-oriented web development framework, may lead to denial of service by deleting files through malicious session IDs in cookies. The old stable distribution (sarge) doesn't contain python-cherrypy.
Family: unix Class: patch
Reference(s): DSA-1481
CVE-2008-0252
Version: 3
Platform(s): Debian GNU/Linux 4.0
Product(s): python-cherrypy
Definition Synopsis:

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 22

OpenVAS Exploits

Date Description
2009-02-17 Name : Fedora Update for python-cherrypy FEDORA-2008-0299
File : nvt/gb_fedora_2008_0299_python-cherrypy_fc8.nasl
2009-02-17 Name : Fedora Update for python-cherrypy FEDORA-2008-0333
File : nvt/gb_fedora_2008_0333_python-cherrypy_fc7.nasl
2008-09-24 Name : Gentoo Security Advisory GLSA 200801-11 (cherrypy)
File : nvt/glsa_200801_11.nasl
2008-02-05 Name : Debian Security Advisory DSA 1481-1 (python-cherrypy)
File : nvt/deb_1481_1.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
40202 CherryPy Session ID Directory Traversal

Nessus® Vulnerability Scanner

Date Description
2008-02-06 Name : The remote Debian host is missing a security-related update.
File : debian_DSA-1481.nasl - Type : ACT_GATHER_INFO
2008-01-29 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200801-11.nasl - Type : ACT_GATHER_INFO
2008-01-07 Name : The remote Fedora host is missing a security update.
File : fedora_2008-0299.nasl - Type : ACT_GATHER_INFO
2008-01-07 Name : The remote Fedora host is missing a security update.
File : fedora_2008-0333.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:35:29
  • Multiple Updates