SSH.NET 是一个用于 .NET 平台的 Secure Shell (SSH) 库。在 2025.1.0 及更早版本中,ScpClient.Download(string directoryName, DirectoryInfo directoryInfo) 方法信任远程 SCP 服务器返回的文件名和目录名,并将其与请求的本地目录路径直接拼接,而未进行路径遍历(containment validation)检查。这可能导致恶意的、已被攻陷的或处于中间人攻击位置的服务器,利用 “../” 序列或绝对路径,在客户端
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No comments yet