NetSight
medium5.9Public exploit code

CVE-2019-6111

An issue was discovered in OpenSSH 7.9.

Public exploit code

Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.

Impact

An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).

Affected products

VendorProductAffected versions
OpenbsdOpenssh
through 7.9
WinscpWinscp
through 5.1.3
CanonicalUbuntu Linux
Versions 14.04, 16.04, 18.04, 18.10
DebianDebian Linux
Versions 8.0, 9.0
RedhatEnterprise Linux
Versions 7.0, 8.0
RedhatEnterprise Linux Eus
Versions 8.1, 8.2, 8.4, 8.6
RedhatEnterprise Linux Server Aus
Versions 8.2, 8.4, 8.6
RedhatEnterprise Linux Server Tus
Versions 8.2, 8.4, 8.6
FedoraprojectFedora
Version 30
ApacheMina Sshd
Version 2.2.0
FreebsdFreebsd
before 12.0
Version 12.0
FujitsuM10-1 Firmware
before xcp2361
before xcp3070

Weakness classification

References