| Summary: | Local to local copy (and also remote to remote) uses shell expansion twice | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Tomas Mraz <t8m> | ||||||||||||||||
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||||||||||||
| Status: | CLOSED FIXED | ||||||||||||||||||
| Severity: | security | CC: | cjwatson, djm, vapier | ||||||||||||||||
| Priority: | P2 | ||||||||||||||||||
| Version: | 4.2p1 | ||||||||||||||||||
| Hardware: | All | ||||||||||||||||||
| OS: | Linux | ||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Tomas Mraz
2005-09-28 23:03:32 AEST
Created attachment 971 [details]
Proposed patch
This patch replaces system with fork+exec+waitpid.
Created attachment 1053 [details]
rework patch for OpenBSD, with djm.
Created attachment 1054 [details]
Same patch as #1053 for OpenSSH 4.2p1
Created attachment 1055 [details]
Regress test for this bug
Created attachment 1056 [details]
regress test for normal local/local copies
Add some regress tests for local -> local copies
Created attachment 1057 [details]
Updated patch for OpenBSD
Fix a compile problems (bad memset in sftp) and use vasprintf() instead of snprintf/xstrdup
There are two xfree(bp) calls left in your patch (lines 459 an 475 of scp.c) - they must be removed. Created attachment 1058 [details]
OpenBSD patch v.3
doh, yes. patch updated
Comment on attachment 1055 [details]
Regress test for this bug
scpclean should clean up *metachar* too i think
(In reply to comment #9) > scpclean should clean up *metachar* too i think Not necessary: it's created in a scratch directory that's deleted entirely by scpclean. Comment on attachment 1055 [details]
Regress test for this bug
oh yes, ok by me to commit after the fix is
fix and regress test committed, will be in 4.3 (real soon now) For the record, this was CVE-2006-0225. Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4. |