Description
scponly does not properly verify the path when finding the (1) scp or (2) sftp-server programs, which could allow remote authenticated users to bypass access controls by uploading malicious programs and modifying the PATH variable in $HOME/.ssh/environment to locate those programs.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- SCPOnly 2.3/2.4 - SSH Environment Shell Escaping EDB-21732 · local · Aug 20, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.sublimation.org/scponly/
- scponly-ssh-env-upload(9913) vdb-entry
- 20020820 vulnerabilities in scponly mailing-list
- 5526 vdb-entry