Page MenuHomePhabricator

Wikipedia server returns invalid response to POST /w/index.php?title=XXX&action=submit (some trailing trash)
Open, LowPublic

Description

While watching with wireshark the wire during wiki article change submission (POST request to en.wikipedia.org), I saw wireshark complain [Malformed Packet] on HTTP/1.1 302 Found response to POST.

Response is declared as being of text/html media type, however it contains trash (zero and random bytes) in the end.

See packet attached.

Event Timeline

Yuri271 raised the priority of this task from to Needs Triage.
Yuri271 updated the task description. (Show Details)
Yuri271 changed Security from none to None.
Yuri271 added a subscriber: Yuri271.

No way to attach anything here for some reason, here is the hex dump.
You can see that Content-Length is 20, and content is trash instead of text/html.

00000000  48 54 54 50 2f 31 2e 31  20 33 30 32 20 66 6f 72  |HTTP/1.1 302 for|
00000010  63 65 64 2e 33 30 32 0d  0a 53 65 72 76 65 72 3a  |ced.302..Server:|
00000020  20 41 70 61 63 68 65 0d  0a 58 2d 50 6f 77 65 72  | Apache..X-Power|
00000030  65 64 2d 42 79 3a 20 48  48 56 4d 2f 33 2e 33 2e  |ed-By: HHVM/3.3.|
00000040  31 0d 0a 45 78 70 69 72  65 73 3a 20 54 68 75 2c  |1..Expires: Thu,|
00000050  20 30 31 20 4a 61 6e 20  31 39 37 30 20 30 30 3a  | 01 Jan 1970 00:|
00000060  30 30 3a 30 30 20 47 4d  54 0d 0a 56 61 72 79 3a  |00:00 GMT..Vary:|
00000070  20 41 63 63 65 70 74 2d  45 6e 63 6f 64 69 6e 67  | Accept-Encoding|
00000080  2c 58 2d 46 6f 72 77 61  72 64 65 64 2d 50 72 6f  |,X-Forwarded-Pro|
00000090  74 6f 2c 43 6f 6f 6b 69  65 0d 0a 58 2d 43 6f 6e  |to,Cookie..X-Con|
000000a0  74 65 6e 74 2d 54 79 70  65 2d 4f 70 74 69 6f 6e  |tent-Type-Option|
000000b0  73 3a 20 6e 6f 73 6e 69  66 66 0d 0a 43 6f 6e 74  |s: nosniff..Cont|
000000c0  65 6e 74 2d 45 6e 63 6f  64 69 6e 67 3a 20 67 7a  |ent-Encoding: gz|
000000d0  69 70 0d 0a 53 65 74 2d  43 6f 6f 6b 69 65 3a 20  |ip..Set-Cookie: |
000000e0  65 6e 77 69 6b 69 50 6f  73 74 45 64 69 74 52 65  |enwikiPostEditRe|
000000f0  76 69 73 69 6f 6e 36 33  35 35 37 31 30 36 31 3d  |vision635571061=|
00000100  73 61 76 65 64 3b 20 65  78 70 69 72 65 73 3d 57  |saved; expires=W|
00000110  65 64 2c 20 32 36 2d 4e  6f 76 2d 32 30 31 34 20  |ed, 26-Nov-2014 |
00000120  32 32 3a 35 31 3a 34 33  20 47 4d 54 3b 20 4d 61  |22:51:43 GMT; Ma|
00000130  78 2d 41 67 65 3d 31 32  30 30 3b 20 70 61 74 68  |x-Age=1200; path|
00000140  3d 2f 0d 0a 4c 6f 63 61  74 69 6f 6e 3a 20 68 74  |=/..Location: ht|
00000150  74 70 3a 2f 2f 65 6e 2e  77 69 6b 69 70 65 64 69  |tp://en.wikipedi|
00000160  61 2e 6f 72 67 2f 77 69  6b 69 2f 43 6f 75 67 61  |a.org/wiki/Couga|
00000170  72 5f 54 6f 77 6e 0d 0a  43 6f 6e 74 65 6e 74 2d  |r_Town..Content-|
00000180  54 79 70 65 3a 20 74 65  78 74 2f 68 74 6d 6c 3b  |Type: text/html;|
00000190  20 63 68 61 72 73 65 74  3d 75 74 66 2d 38 0d 0a  | charset=utf-8..|
000001a0  58 2d 56 61 72 6e 69 73  68 3a 20 33 35 37 35 39  |X-Varnish: 35759|
000001b0  32 32 36 35 36 2c 20 32  34 38 39 31 32 37 32 36  |22656, 248912726|
000001c0  33 0d 0a 56 69 61 3a 20  31 2e 31 20 76 61 72 6e  |3..Via: 1.1 varn|
000001d0  69 73 68 2c 20 31 2e 31  20 76 61 72 6e 69 73 68  |ish, 1.1 varnish|
000001e0  0d 0a 43 6f 6e 74 65 6e  74 2d 4c 65 6e 67 74 68  |..Content-Length|
000001f0  3a 20 32 30 0d 0a 41 63  63 65 70 74 2d 52 61 6e  |: 20..Accept-Ran|
00000200  67 65 73 3a 20 62 79 74  65 73 0d 0a 44 61 74 65  |ges: bytes..Date|
00000210  3a 20 57 65 64 2c 20 32  36 20 4e 6f 76 20 32 30  |: Wed, 26 Nov 20|
00000220  31 34 20 32 32 3a 33 31  3a 34 33 20 47 4d 54 0d  |14 22:31:43 GMT.|
00000230  0a 41 67 65 3a 20 30 0d  0a 43 6f 6e 6e 65 63 74  |.Age: 0..Connect|
00000240  69 6f 6e 3a 20 6b 65 65  70 2d 61 6c 69 76 65 0d  |ion: keep-alive.|
00000250  0a 58 2d 43 61 63 68 65  3a 20 63 70 31 30 36 35  |.X-Cache: cp1065|
00000260  20 6d 69 73 73 20 28 30  29 2c 20 63 70 31 30 35  | miss (0), cp105|
00000270  35 20 66 72 6f 6e 74 65  6e 64 20 6d 69 73 73 20  |5 frontend miss |
00000280  28 30 29 0d 0a 43 61 63  68 65 2d 43 6f 6e 74 72  |(0)..Cache-Contr|
00000290  6f 6c 3a 20 70 72 69 76  61 74 65 2c 20 73 2d 6d  |ol: private, s-m|
000002a0  61 78 61 67 65 3d 30 2c  20 6d 61 78 2d 61 67 65  |axage=0, max-age|
000002b0  3d 30 2c 20 6d 75 73 74  2d 72 65 76 61 6c 69 64  |=0, must-revalid|
000002c0  61 74 65 0d 0a 58 2d 41  6e 61 6c 79 74 69 63 73  |ate..X-Analytics|
000002d0  3a 20 70 68 70 3d 68 68  76 6d 0d 0a 0d 0a 1f 8b  |: php=hhvm......|
000002e0  08 00 00 00 00 00 00 03  03 00 00 00 00 00 00 00  |................|
000002f0  00 00                                             |..|
000002f2
Aklapper added a subscriber: Aklapper.