USN-9116-1: netkit-rsh vulnerabilities
It was discovered that the rcp client in rsh incorrectly handled filenames of . or empty filenames received from the server. If a user were tricked into connecting to a malicious rsh server, an attacker could possibly use this issue to modify the permissions of the target directory. (CVE-2019-7282)
It was discovered that the rcp client in rsh did not properly validate filenames received from the server. If a user were tricked into connecting to a malicious rsh server, an attacker could possibly use this issue to overwrite arbitrary files in the target directory. (CVE-2019-7283)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/netkit-rshto a version that resolves this vulnerability.Fixed in 0.17-15ubuntu0.16.04.1~esm1 - Upgrade
Upgrade
ubuntu/rsh-clientto a version that resolves this vulnerability.Fixed in 0.17-15ubuntu0.16.04.1~esm1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What must an attacker do to exploit these issues?
The attacker must operate or control a malicious rsh server and trick a user into connecting to it with the rcp client. The vulnerable behavior is triggered by filenames sent from that server.
What could exploitation allow on the client system?
A malicious server may cause permissions on the target directory to be modified using a dot or empty filename. It may also overwrite arbitrary files in the target directory by sending improperly validated filenames.
Which systems are exposed?
Systems using the rcp client provided by Ubuntu netkit-rsh or rsh-client are exposed when a user connects to an untrusted or malicious rsh server. The provided information does not indicate that merely running an rsh server is sufficient.