Gentoo Archives: gentoo-announce

From: Robert Buchholz <rbu@g.o>
To: gentoo-announce@l.g.o
Cc: bugtraq@×××××××××××××.com, full-disclosure@××××××××××××××.uk, security-alerts@×××××××××××××.com
Subject: [gentoo-announce] [ GLSA 200801-11 ] CherryPy: Directory traversal vulnerability
Date: Sun, 27 Jan 2008 16:27:27
Message-Id: 200801271725.25025.rbu@gentoo.org
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 Gentoo Linux Security Advisory GLSA 200801-11
3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 http://security.gentoo.org/
5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6
7 Severity: Normal
8 Title: CherryPy: Directory traversal vulnerability
9 Date: January 27, 2008
10 Bugs: #204829
11 ID: 200801-11
12
13 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14
15 Synopsis
16 ========
17
18 CherryPy is vulnerable to a directory traversal that could allow
19 attackers to read and write arbitrary files.
20
21 Background
22 ==========
23
24 CherryPy is a Python-based, object-oriented web development framework.
25
26 Affected packages
27 =================
28
29 -------------------------------------------------------------------
30 Package / Vulnerable / Unaffected
31 -------------------------------------------------------------------
32 1 dev-python/cherrypy < 3.0.2-r1 *>= 2.2.1-r2
33 >= 3.0.2-r1
34
35 Description
36 ===========
37
38 CherryPy does not sanitize the session id, provided as a cookie value,
39 in the FileSession._get_file_path() function before using it as part of
40 the file name.
41
42 Impact
43 ======
44
45 A remote attacker could exploit this vulnerability to read and possibly
46 write arbitrary files on the web server, or to hijack valid sessions,
47 by providing a specially crafted session id. This only affects
48 applications using file-based sessions.
49
50 Workaround
51 ==========
52
53 Disable the "FileSession" functionality by using "PostgresqlSession" or
54 "RamSession" session management in your CherryPy application.
55
56 Resolution
57 ==========
58
59 All CherryPy 2.2 users should upgrade to the latest version:
60
61 # emerge --sync
62 # emerge --ask --oneshot --verbose ">=dev-python/cherrypy-2.2.1-r2"
63
64 All CherryPy 3.0 users should upgrade to the latest version:
65
66 # emerge --sync
67 # emerge --ask --oneshot --verbose ">=dev-python/cherrypy-3.0.2-r1"
68
69 References
70 ==========
71
72 [ 1 ] CVE-2008-0252
73 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0252
74
75 Availability
76 ============
77
78 This GLSA and any updates to it are available for viewing at
79 the Gentoo Security Website:
80
81 http://security.gentoo.org/glsa/glsa-200801-11.xml
82
83 Concerns?
84 =========
85
86 Security is a primary focus of Gentoo Linux and ensuring the
87 confidentiality and security of our users machines is of utmost
88 importance to us. Any security concerns should be addressed to
89 security@g.o or alternatively, you may file a bug at
90 http://bugs.gentoo.org.
91
92 License
93 =======
94
95 Copyright 2008 Gentoo Foundation, Inc; referenced text
96 belongs to its owner(s).
97
98 The contents of this document are licensed under the
99 Creative Commons - Attribution / Share Alike license.
100
101 http://creativecommons.org/licenses/by-sa/2.5

Attachments

File name MIME type
signature.asc application/pgp-signature