1 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 |
Gentoo Linux Security Advisory GLSA 200911-06 |
3 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
4 |
http://security.gentoo.org/ |
5 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
6 |
|
7 |
Severity: High |
8 |
Title: PEAR Net_Traceroute: Command injection |
9 |
Date: November 26, 2009 |
10 |
Bugs: #294264 |
11 |
ID: 200911-06 |
12 |
|
13 |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
14 |
|
15 |
Synopsis |
16 |
======== |
17 |
|
18 |
An input sanitation error in PEAR Net_Traceroute might allow remote |
19 |
attackers to execute arbitrary commands. |
20 |
|
21 |
Background |
22 |
========== |
23 |
|
24 |
PEAR Net_Traceroute is an OS independent wrapper class for executing |
25 |
traceroute calls from PHP. |
26 |
|
27 |
Affected packages |
28 |
================= |
29 |
|
30 |
------------------------------------------------------------------- |
31 |
Package / Vulnerable / Unaffected |
32 |
------------------------------------------------------------------- |
33 |
1 dev-php/PEAR-Net_Traceroute < 0.21.2 >= 0.21.2 |
34 |
|
35 |
Description |
36 |
=========== |
37 |
|
38 |
Pasquale Imperato reported that the $host parameter to the traceroute() |
39 |
function in Traceroute.php is not properly sanitized before being |
40 |
passed to exec(). |
41 |
|
42 |
Impact |
43 |
====== |
44 |
|
45 |
A remote attacker could exploit this vulnerability when user input is |
46 |
passed directly to PEAR Net_Traceroute in a PHP script, possibly |
47 |
resulting in the remote execution of arbitrary shell commands with the |
48 |
privileges of the user running the affected PHP script. |
49 |
|
50 |
Workaround |
51 |
========== |
52 |
|
53 |
Ensure that all data that is passed to the traceroute() function is |
54 |
properly shell escaped (for instance using the escapeshellcmd() |
55 |
function). |
56 |
|
57 |
Resolution |
58 |
========== |
59 |
|
60 |
All PEAR Net_Traceroute users should upgrade to the latest version: |
61 |
|
62 |
# emerge --sync |
63 |
# emerge --ask --oneshot --verbose |
64 |
">=dev-php/PEAR-Net_Traceroute-0.21.2" |
65 |
|
66 |
References |
67 |
========== |
68 |
|
69 |
[ 1 ] CVE-2009-4025 |
70 |
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4025 |
71 |
|
72 |
Availability |
73 |
============ |
74 |
|
75 |
This GLSA and any updates to it are available for viewing at |
76 |
the Gentoo Security Website: |
77 |
|
78 |
http://security.gentoo.org/glsa/glsa-200911-06.xml |
79 |
|
80 |
Concerns? |
81 |
========= |
82 |
|
83 |
Security is a primary focus of Gentoo Linux and ensuring the |
84 |
confidentiality and security of our users machines is of utmost |
85 |
importance to us. Any security concerns should be addressed to |
86 |
security@g.o or alternatively, you may file a bug at |
87 |
https://bugs.gentoo.org. |
88 |
|
89 |
License |
90 |
======= |
91 |
|
92 |
Copyright 2009 Gentoo Foundation, Inc; referenced text |
93 |
belongs to its owner(s). |
94 |
|
95 |
The contents of this document are licensed under the |
96 |
Creative Commons - Attribution / Share Alike license. |
97 |
|
98 |
http://creativecommons.org/licenses/by-sa/2.5 |