Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1570

remap doesn't reject request whose Host has extra characters after port (like "test.com:80xxx")

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 5.2.0
    • HTTP
    • None

    Description

      remap.config: map http://test.com http://1.1.1.1

      The request with Host: 'test.com:80xxx' or 'test.com:xxx' will get passed. Such host is not filtered strictly.

      Just report, didn't have big problem for me though.

      curl http://127.0.0.1:8080/ -H "Host: test.com:80xxx"
      or curl -x 127.0.0.1:8080 http://test.com:80xxx/ -v

      Attachments

        1. patch.diff
          3 kB
          Cynthia Gu
        2. patch.diff1
          3 kB
          Cynthia Gu
        3. patch.diff2
          4 kB
          Cynthia Gu
        4. patch.diff3
          4 kB
          Cynthia Gu
        5. ts-1570-amc.diff
          7 kB
          Alan M. Carroll
        6. ts-1570-cynthiagu.diff
          7 kB
          Cynthia Gu
        7. ts-1570-cynthiagu1.diff
          7 kB
          Cynthia Gu

        Activity

          People

            briang Brian Geffon
            conanmind Conan Wang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: