go/echoserver - Case 6.3.2 : Fail - 2 ms @ 2017-05-01T23:55:02.033Z
Case Description
Send invalid UTF-8 text message in fragments of 1 octet, resulting in frames ending on positions which are not code point ends.
MESSAGE:
cebae1bdb9cf83cebcceb5eda080656469746564
Case Expectation
The connection is failed immediately, since the payload is not valid UTF-8.
Case Outcome
Actual events match at least one expected.
Expected:
{'OK': []}
Observed:
[]
Case Closing Behavior
The connection was failed by the wrong endpoint (FAILED)
GET / HTTP/1.1 User-Agent: AutobahnTestSuite/0.7.6-0.10.9 Host: 127.0.0.1:9001 Upgrade: WebSocket Connection: Upgrade Pragma: no-cache Cache-Control: no-cache Sec-WebSocket-Key: DPIKGs4Kr6d3SkonQS3H7g== Sec-WebSocket-Version: 13
HTTP/1.1 101 Web Socket Protocol Handshake Server: go/echoserver Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Accept: HrIalNR8rmIZA3HPO4n/iZae+ic=
Key | Value | Description |
isServer | False | True, iff I (the fuzzer) am a server, and the peer is a client. |
closedByMe | True | True, iff I have initiated closing handshake (that is, did send close first). |
failedByMe | True | True, iff I have failed the WS connection (i.e. due to protocol error). Failing can be either by initiating closing handshake or brutal drop TCP. |
droppedByMe | True | True, iff I dropped the TCP connection. |
wasClean | False | True, iff full WebSocket closing handshake was performed (close frame sent and received) _and_ the server dropped the TCP (which is its responsibility). |
wasNotCleanReason | None | When wasClean == False, the reason what happened. |
wasServerConnectionDropTimeout | False | When we are a client, and we expected the server to drop the TCP, but that didn't happen in time, this gets True. |
wasOpenHandshakeTimeout | False | When performing the opening handshake, but the peer did not finish in time, this gets True. |
wasCloseHandshakeTimeout | False | When we initiated a closing handshake, but the peer did not respond in time, this gets True. |
localCloseCode | 1007 | The close code I sent in close frame (if any). |
localCloseReason | encountered invalid UTF-8 while processing text message at payload octet index 12 | The close reason I sent in close frame (if any). |
remoteCloseCode | None | The close code the peer sent me in close frame (if any). |
remoteCloseReason | None | The close reason the peer sent me in close frame (if any). |
Chop Size | Count | Octets |
9 | 1 | 9 |
23 | 1 | 23 |
30 | 1 | 30 |
162 | 1 | 162 |
Total | 4 | 224 |
Chop Size | Count | Octets |
6 | 1 | 6 |
7 | 20 | 140 |
89 | 1 | 89 |
240 | 1 | 240 |
Total | 23 | 475 |
Opcode | Count |
0 | 13 |
1 | 1 |
Total | 14 |
Opcode | Count |
0 | 20 |
1 | 1 |
8 | 1 |
Total | 22 |
000 TX OCTETS: 474554202f20485454502f312e310d0a557365722d4167656e743a204175746f6261686e5465737453756974652f302e372e
362d302e31302e390d0a486f7374 ...
001 RX OCTETS: 485454502f312e31203130312057656220536f636b65742050726f746f636f6c2048616e647368616b650d0a536572766572
3a20676f2f6563686f7365727665 ...
002 TX FRAME : OPCODE=1, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=bcedf626, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xce
003 TX OCTETS: 0181bcedf62672
004 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=127a8f8b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xba
005 TX OCTETS: 0081127a8f8ba8
006 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=a7cee21e, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xe1
007 TX OCTETS: 0081a7cee21e46
008 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=1c89d021, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xbd
009 TX OCTETS: 00811c89d021a1
010 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=50146066, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xb9
011 TX OCTETS: 008150146066e9
012 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=9b60146b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xcf
013 TX OCTETS: 00819b60146b54
014 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=5ac57f45, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0x83
015 TX OCTETS: 00815ac57f45d9
016 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=420320b5, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xce
017 TX OCTETS: 0081420320b58c
018 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=6f325b11, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xbc
019 TX OCTETS: 00816f325b11d3
020 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=231ad282, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xce
021 TX OCTETS: 0081231ad282ed
022 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=761c90ac, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xb5
023 TX OCTETS: 0081761c90acc3
024 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=ce505aa5, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xed
025 TX OCTETS: 0081ce505aa523
026 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=46564961, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0xa0
027 TX OCTETS: 008146564961e6
028 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=037b8136, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0x80
029 TX OCTETS: 0081037b813683
030 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=6c0aeb5a, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
e
031 TX OCTETS: 00816c0aeb5a09
032 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=fb1469ab, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
d
033 TX OCTETS: 0081fb1469ab9f
034 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=78fa8322, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
i
035 TX OCTETS: 008178fa832211
036 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=4336b769, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
t
037 TX OCTETS: 00814336b76937
038 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=2efd676e, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
e
039 TX OCTETS: 00812efd676e4b
040 TX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASK=ffc66f02, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
d
041 TX OCTETS: 0081ffc66f029b
042 TX FRAME : OPCODE=0, FIN=True, RSV=0, PAYLOAD-LEN=0, MASK=32c3ef5e, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
043 TX OCTETS: 808032c3ef5e
044 FAIL CONNECTION AFTER 1.000000 sec
045 RX OCTETS: 0101ce0001ba0001e1
046 RX FRAME : OPCODE=1, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xce
047 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xba
048 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xe1
049 RX OCTETS: 0001bd0001b90001cf0001830001ce0001bc0001ce0001b50001ed0001a0
050 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xbd
051 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xb9
052 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xcf
053 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0x83
054 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xce
055 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xbc
056 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xce
057 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xb5
058 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=1, MASKED=False, MASK=None
0xed
059 TX FRAME : OPCODE=8, FIN=True, RSV=0, PAYLOAD-LEN=83, MASK=9191b35b, PAYLOAD-REPEAT-LEN=None, CHOPSIZE=None, SYNC=False
0x03ef656e636f756e746572656420696e76616c6964205554462d38207768696c652070726f63657373696e672074657874
206d65737361676520617420706179 ...
060 TX OCTETS: 88d39191b35b927ed635f2fec635e5f4c13ef5b1da35e7f0df32f5b1e60fd7bc8b7be6f9da37f4b1c329fef2d628e2f8dd3c
b1e5d623e5b1de3ee2e2d23cf4b1 ...
061 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=0, MASKED=False, MASK=None
062 RX OCTETS: 0001800001650001640001690001740001650001648000
063 RX FRAME : OPCODE=0, FIN=False, RSV=0, PAYLOAD-LEN=0, MASKED=False, MASK=None
064 TCP DROPPED BY ME