Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:11168
HistoryJan 24, 2006 - 12:00 a.m.

[SA18579] OpenSSH scp Command Line Shell Command Injection

2006-01-2400:00:00
vulners.com
12

TITLE:
OpenSSH scp Command Line Shell Command Injection

SECUNIA ADVISORY ID:
SA18579

VERIFY ADVISORY:
http://secunia.com/advisories/18579/

CRITICAL:
Not critical

IMPACT:
Privilege escalation

WHERE:
Local system

SOFTWARE:
OpenSSH 4.x
http://secunia.com/product/5653/
OpenSSH 3.x
http://secunia.com/product/101/

DESCRIPTION:
Josh Bressers has reported a weakness in OpenSSH, which potentially
can be exploited by malicious, local users to perform certain actions
with escalated privileges.

The weakness is caused due to the insecure use of the "system()"
function in scp when performing copy operations using filenames that
are supplied by the user from the command line. This can be exploited
to execute shell commands with privileges of the user running scp.

Successful exploitation requires that the user is e.g. tricked into
using scp to copy a file with a specially crafted filename.

The weakness has been confirmed in version 4.2p1. Other versions may
also be affected.

SOLUTION:
Do not use scp to copy files containing potentially malicious
filenames.

Some Linux vendors have issued updated packages.

PROVIDED AND/OR DISCOVERED BY:
Josh Bressers

ORIGINAL ADVISORY:
Red Hat Bugzilla:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174026


About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.

Subscribe:
http://secunia.com/secunia_security_advisories/

Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/

Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.