Executive Summary
The Wish SSH server is vulnerable to path traversal attacks, allowing malicious clients to read, write, or create files outside the intended directory, with a high likelihood of exploitation and significant business impact due to potential data breaches and system compromises. Exploitation of this vulnerability could lead to unauthorized access to sensitive data and disruption of critical services. The severity of this issue necessitates immediate attention to prevent attacks.
Enhanced Description
The path traversal vulnerability in the Wish SSH server's SCP middleware can be considered a high-risk issue due to the potential for unauthorized data access and system compromise. The vulnerability is particularly concerning in environments where sensitive data is stored or where the SSH server has elevated privileges, as the breach of such a system could have severe consequences. Fortunately, the issue has been addressed in version 2.0.1 of the Wish SSH server, highlighting the importance of keeping software up-to-date to protect against known vulnerabilities.
Exploitation Context
A realistic exploitation scenario involves a malicious actor establishing an SCP connection to a vulnerable Wish SSH server and sending specifically crafted filenames to traverse the directory hierarchy, read sensitive files, or deploy malware. The motivation behind such an attack could range from data theft to the establishment of a persistent threat within the targeted network, leveraging the exploited SSH server as a stepping stone for further attacks.
Patch Priority
Recommended Actions
Suggested Tags
Confidence Assessment
The confidence in the severity ratings and exploitation likelihood is high, given the CVSS score of 9.6 and the detailed description of the vulnerability, which clearly outlines the potential for significant impact, including data breaches and system compromise, without requiring complex exploitation techniques.
Wish is an SSH server with defaults and a collection of middlewares. From version 2.0.0 to before version 2.0.1, the SCP middleware in charm.land/wish/v2 is vulnerable to path traversal attacks. A malicious SCP client can read arbitrary files from the server, write arbitrary files to the server, and create directories outside the configured root directory by sending crafted filenames containing ../ sequences over the SCP protocol. This issue has been patched in version 2.0.1.
32.3th percentile