FtpServer
  1. FtpServer
  2. FTPSERVER-341

Handling invalid port number from client

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.0.1, 1.0.2, 1.0.3
    • Fix Version/s: 1.0.4, 1.1.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows XP, JDK 1.6.0_10, Intel Xeon processor

      Description

      Some FTP clients occasionally sends a invalid PORT number (PORT 0,0,0,0,0,0) (Tested with Python Ftplib and Windows WinInet API). The FtpServer server accepts the port number and starts processing the following STOR command. It sends 150 response. But during the call to openConnection inside STOR.execute( ) an exception is caught and the server responds with code 425. It is causing the FTP client to hang. It will perhaps be bettter if the server detects invalid port number and reject the STOR request with response 451.

        Activity

        Hide
        Niklas Gustavsson added a comment -

        Fixed in rev 885367. We now return a 501 on the PORT command if the port number is invalid.

        Show
        Niklas Gustavsson added a comment - Fixed in rev 885367. We now return a 501 on the PORT command if the port number is invalid.

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            Satish Kaveti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development