scponly SSH environment can be used to upload files and execute commands

scponly-ssh-env-upload (9913) The risk level is classified as MediumMedium Risk

Description:

scponly could allow a remote attacker with a valid account to upload files and execute commands on the system. A remote attacker could specify a custom path to scp executables in their $HOME/.ssh/environment directory and then upload a malicious script with the name "scp", which could then be used to execute commands on the system.


Consequences:

Gain Access

Remedy:

Upgrade to the latest version of scponly (2.4 or later), available from the scponly Web page. See References.

References:

  • BugTraq Mailing List, Mon Aug 19 2002 - 22:58:50 CDT : vulnerabilities in scponly .
  • scponly Web site: scponly.
  • BID-5526: SCPOnly SSH Environment Shell Escaping Vulnerability
  • CVE-2002-1469: 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.
  • OSVDB ID: 9564: scponly SSH Path Environment Subversion Privilege Escalation

Platforms Affected:

  • Joe Boyle scponly prior to 2.4

Reported:

Aug 19, 2002

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page