Secunia Logo
Netsikker nu! 2008
 
OpenSSH scp Command Line Shell Command Injection
Secunia Advisory: SA18579
Release Date: 2006-01-24
Last Update: 2006-02-13
Popularity: 25,254 views

Critical:
Not critical
Impact: Privilege escalation
Where: Local system
Solution Status: Vendor Patch

Software:OpenSSH 3.x
OpenSSH 4.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-0225


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:
The weakness has been fixed in version 4.3p1.

Provided and/or discovered by:
Josh Bressers

Changelog:
2006-02-13: Updated "Solution" section.

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


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. phpBB Avatar Functions Information Disclosure and Deletion // 124 views
2. phpBB Avatar Script Insertion Vulnerability // 111 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 99 views
4. phpBB BBcode "url" Script Insertion Vulnerability // 79 views
5. ArticleBeach Script "page" File Inclusion Vulnerability // 63 views
6. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 34 views
7. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 28 views
8. CA ARCserve Backup Multiple Vulnerabilities // 25 views
9. phpBB reveals user IPs // 24 views
10. CUPS Multiple Vulnerabilities // 23 views