Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-605

VirtualFileSystemFactory allows escaping from root

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0, 1.3.0
    • Windows, JDK 7

    Description

      Possibly Windows only.

      I start a SFTP server like this:
      sshd = SshServer.setUpDefaultServer();
      [...]
      sshd.setFileSystemFactory(new VirtualFileSystemFactory(myRootDir.getCanonicalPath()));
      [...]
      sshd.setSubsystemFactories(Arrays.<NamedFactory<Command>>asList(new SftpSubsystemFactory()));

      I connect to the server with FileZilla.
      Upon connexion, the files in myRooDir correctly appear under the server path '/'. But if I cd to '/c:/Windows/', the files in C:\Windows\ appear, escaping the VFS root.

      Attachments

        Activity

          People

            lgoldstein Lyor Goldstein
            damienb Damien B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: