Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-411

UrlValidator accepts ports above max limit of 16-bit unsigned integer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.6
    • Component/s: Routines
    • Labels:
      None

      Description

      Such a value http://host.organization.com:100000 is gladly accepted because the port ins never parsed and boundaries not checked.

      public static void main(String[] args) {
        UrlValidator validator = UrlValidator.getInstance();
        System.out.println(validator.isValid("http://host.organization.com:100000"));
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                michael-o Michael Osipov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: