GLSA-200602-11 : OpenSSH, Dropbear: Insecure use of system() call

This script is Copyright (C) 2006-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200602-11
(OpenSSH, Dropbear: Insecure use of system() call)

To copy from a local filesystem to another local filesystem, scp
constructs a command line using 'cp' which is then executed via
system(). Josh Bressers discovered that special characters are not
escaped by scp, but are simply passed to the shell.

Impact :

By tricking other users or applications to use scp on maliciously
crafted filenames, a local attacker user can execute arbitrary commands
with the rights of the user running scp.

Workaround :

There is no known workaround at this time.

See also :

http://www.gentoo.org/security/en/glsa/glsa-200602-11.xml

Solution :

All OpenSSH users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=net-misc/openssh-4.2_p1-r1'
All Dropbear users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=net-misc/dropbear-0.47-r1'

Risk factor :

Medium / CVSS Base Score : 4.6
(CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 20953 (gentoo_GLSA-200602-11.nasl)

Bugtraq ID:

CVE ID: CVE-2006-0225