Bug 158916 - CAN-2004-0175 malicious rsh server can cause rcp to write to arbitrary files
CAN-2004-0175 malicious rsh server can cause rcp to write to arbitrary files
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: rsh (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Karel Zak
Ben Levenson
: Security
Depends On:
  Show dependency treegraph
Reported: 2005-05-26 16:29 EDT by Josh Bressers
Modified: 2007-11-30 17:06 EST (History)
3 users (show)

See Also:
Fixed In Version: RHSA-2005-495
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-13 08:23:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Josh Bressers 2005-05-26 16:29:23 EDT
+++ This bug was initially created as a clone of Bug #120147 +++

Back in 2000 it was reported that a malicious ssh server could cause
scp to write to arbitrary files outside of the current directory. 

This is a valid behaviour of the rcp protocol.

The issue was rediscovered in Mar 2004 and discussed amongst OSS
vendors, with Markus Friedl from OpenBSD writing a proposed patch for
this issue but warned that it needed a lot of testing:
Comment 1 Josh Bressers 2005-05-26 16:30:35 EDT
My notes list this issue as affecting rsh only on RHEL2.1.  I'm not sure what
upstream has done to fix this issue.
Comment 2 Josh Bressers 2005-06-02 15:35:26 EDT
Ping on this issue
Comment 3 Karel Zak 2005-06-02 15:45:00 EDT
I have a patch that fix this problem (already included in RHEL3, RHEL4 and FCx).
I'm going to reease it for AS2.1 ASAP (probably next week).
Comment 4 Josh Bressers 2005-06-02 15:50:42 EDT

If you give me the n-v-r, I'd be more than happy to write the errata for you. 
Comment 5 Karel Zak 2005-06-06 05:10:18 EDT
Thanks Josh. It wasn't so big problem create new errata as copy from old one :-)

errata: RHSA-2005:495
package: rsh-0.17-18.AS21.4.
Comment 6 Josh Bressers 2005-06-13 08:23:19 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.