jsip
  1. jsip
  2. JSIP-289

Get a parse exception when the request has a wide range of valid characters.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      289

      Description

      The INVITE request received has a wide range of valid characters.

      The message is showed below:
      !interesting-Method0123456789_*+`.%indeed'~ sip:1_unusual.URI~(to-be!sure)
      &isn't+it$/crazy?,/;;*:&it+has=1,weird!*pas$wo~d_too.(doesn't-it)@example.com
      SIP/2.0
      Via: SIP/2.0/TCP host1.example.com;branch=z9hG4bK-.!%66*_+`'~
      To: "BEL:\<hex>07</hex> NUL:\<hex>00</hex> DEL:\<hex>7F</hex>"
      <sip:1_unusual.URI~(to-be!sure)&isn't+it$/crazy?,/;;*@example.com>
      From: token1~` token2'+_ token3*%!.-
      <sip:mundane@example.com>;fromParam''~+*_!.-%
      = "<hex>D180D0B0D0B1D0BED182D0B0D18ED189D0B8D0B9</hex>";tag=_token~1'+`*%!-.
      Call-ID: intmeth.word%ZK-!.*_+'@word`~)(><:\/"][?}{
      CSeq: 139122385 !interesting-Method0123456789_*+`.%indeed'~
      Max-Forwards: 255
      extensionHeader-!.%*+_`'~: <hex>EFBBBFE5A4A7E5819CE99BBB</hex>
      Content-Length: 0

      The stack gets a parse exception:
      2010-06-12
      09:43:09,861|ERROR|UDPMessageChannelThread|com.polycom.proximo.jainsip.STACK| !
      interesting-Method0123456789_*+`.%%indeed'~
      sip:1_unusual.URI~(to-be!sure)&isn't+it$/crazy?,/;;* :&it+has=1,weird!
      *pas$wo~d_too.(doesn't-it) @example.com SIP/2.0
      Illegal character in hostname:_
      java.text.ParseException: !interesting-Method0123456789_*+`.%%
      indeed'~ sip:1_unusual.URI~(to-be!sure)
      &isn't+it$/crazy?,/;;* :&it+has=1,weird!*pas$wo~d_too.(doesn't-
      it) @example.com SIP/2.0
      Illegal character in hostname:_
      at gov.nist.core.HostNameParser.hostPort(HostNameParser.java:319)
      at gov.nist.javax.sip.parser.URLParser.sipURL(URLParser.java:644)
      at gov.nist.javax.sip.parser.URLParser.uriReference(URLParser.java:347)
      at gov.nist.javax.sip.parser.RequestLineParser.parse
      (RequestLineParser.java:60)
      at gov.nist.javax.sip.parser.StringMsgParser.processFirstLine
      (StringMsgParser.java:369)
      at gov.nist.javax.sip.parser.StringMsgParser.parseSIPMessage
      (StringMsgParser.java:190)
      at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket
      (UDPMessageChannel.java:335)
      at gov.nist.javax.sip.stack.UDPMessageChannel.run
      (UDPMessageChannel.java:295)
      at java.lang.Thread.run(Unknown Source)

      Reference:
      RFC4475 Section 3.1.1.2. Wide Range of Valid Characters

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            deruelle_jean
            Reporter:
            sophie0308
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: