1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="744.09448819"
height="1052.3622047"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.43+devel"
sodipodi:docbase="/home/trythil/src/inkscape-integrate/src/jabber_whiteboard/protocol"
sodipodi:docname="unsupported-protocol-u2c-01.svg">
<defs
id="defs4">
<marker
inkscape:stockid="Arrow1Lend"
orient="auto"
refY="0.0"
refX="0.0"
id="Arrow1Lend"
style="overflow:visible;">
<path
id="path2982"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;"
transform="scale(0.8) rotate(180)" />
</marker>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.86180109"
inkscape:cx="457.5365"
inkscape:cy="582.23099"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="1392"
inkscape:window-height="995"
inkscape:window-x="0"
inkscape:window-y="3"
showguides="true"
inkscape:guide-bbox="true" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="opacity:1;color:black;fill:black;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
id="rect1925"
width="16.409977"
height="833.62683"
x="96.818855"
y="90.737564"
ry="1.7290077" />
<text
xml:space="preserve"
style="font-size:28.80731773px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="68.790588"
y="77.251221"
id="text1929"><tspan
sodipodi:role="line"
id="tspan1931"
x="68.790588"
y="77.251221">Romeo</tspan></text>
<path
style="opacity:1;color:black;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:black;stroke-width:1.02934766px;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:url(#Arrow1Lend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
d="M 103.39752,133.41817 L 624.59663,181.72315"
id="path1937" />
<text
xml:space="preserve"
style="font-size:12.00000858px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="289.61508"
y="120.14616"
id="text2992"
transform="matrix(0.996475,8.38928e-2,-8.38928e-2,0.996475,0,0)"><tspan
sodipodi:role="line"
id="tspan2994"
x="289.61508"
y="120.14616">CHATROOM_SYNCHRONIZE_REQUEST</tspan></text>
<text
xml:space="preserve"
style="font-size:13.0673542px;font-style:normal;font-weight:normal;line-height:125%;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="5.7987185"
y="23.14624"
id="text2996"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan2998"
x="5.7987185"
y="23.14624"
style="font-size:18.44846344px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:Bitstream Vera Sans">Inkboard session: unsupported protocol version error signaling (user-to-chat)</tspan></text>
<rect
style="opacity:1;color:black;fill:black;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
id="rect3187"
width="16.409977"
height="833.62683"
x="634.81885"
y="90.737564"
ry="1.7290077" />
<text
xml:space="preserve"
style="font-size:28.80731773px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="614.79059"
y="77.251221"
id="text3189"><tspan
sodipodi:role="line"
id="tspan3191"
x="614.79059"
y="77.251221">Chat</tspan></text>
<path
style="opacity:1;color:black;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:black;stroke-width:1.02934766px;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:url(#Arrow1Lend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
d="M 632.52435,215.78213 L 116.58242,304.01936"
id="path3193" />
<text
xml:space="preserve"
style="font-size:12.00010681px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="236.66701"
y="306.09424"
id="text3195"
transform="matrix(0.988528,-0.151038,0.151038,0.988528,0,0)"><tspan
sodipodi:role="line"
id="tspan3197"
x="236.66701"
y="306.09424">UNSUPPORTED_PROTOCOL_VERSION</tspan></text>
<text
xml:space="preserve"
style="font-size:12px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="650.8866"
y="216.45934"
id="text3207"><tspan
sodipodi:role="line"
x="650.8866"
y="216.45934"
id="tspan3211">(from user Juliet)</tspan><tspan
sodipodi:role="line"
x="650.8866"
y="231.45934"
id="tspan3398" /><tspan
sodipodi:role="line"
x="650.8866"
y="246.45934"
id="tspan3400">Message MUST</tspan><tspan
sodipodi:role="line"
x="650.8866"
y="261.45934"
id="tspan3402">be sent with</tspan><tspan
sodipodi:role="line"
x="650.8866"
y="276.45934"
id="tspan3404">Alice's protocol</tspan><tspan
sodipodi:role="line"
x="650.8866"
y="291.45934"
id="tspan3406">revision.</tspan></text>
<text
xml:space="preserve"
style="font-size:12px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="117.19642"
y="319.97647"
id="text3142"><tspan
sodipodi:role="line"
id="tspan3144"
x="117.19642"
y="319.97647">Inkboard notifies Romeo that she is attempting</tspan><tspan
sodipodi:role="line"
x="117.19642"
y="334.97647"
id="tspan3146">to connect to a chatroom in which all clients</tspan><tspan
sodipodi:role="line"
x="117.19642"
y="349.97647"
id="tspan3150">are using a version of the Inkboard protocol</tspan><tspan
sodipodi:role="line"
x="117.19642"
y="364.97647"
id="tspan2177">that is incompatible with Romeo's client.</tspan></text>
<path
style="opacity:1;color:black;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:black;stroke-width:1.02934766px;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:url(#Arrow1Lend);stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
d="M 637.38647,342.15763 L 121.44454,430.39486"
id="path3152" />
<text
xml:space="preserve"
style="font-size:12.00020504px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="222.38684"
y="431.75641"
id="text3154"
transform="matrix(0.988528,-0.151038,0.151038,0.988528,0,0)"><tspan
sodipodi:role="line"
id="tspan3156"
x="222.38684"
y="431.75641">UNSUPPORTED_PROTOCOL_VERSION</tspan></text>
<text
xml:space="preserve"
style="font-size:12px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="467.10638"
y="388.63593"
id="text3158"><tspan
sodipodi:role="line"
id="tspan3160"
x="467.10638"
y="388.63593">Other notifications of </tspan><tspan
sodipodi:role="line"
x="467.10638"
y="403.63593"
id="tspan3162">incorrect protocol version</tspan><tspan
sodipodi:role="line"
x="467.10638"
y="418.63593"
id="tspan3166">from other chatroom users</tspan><tspan
sodipodi:role="line"
x="467.10638"
y="433.63593"
id="tspan3164">are ignored by Romeo.</tspan></text>
<text
xml:space="preserve"
style="font-size:12px;font-style:normal;font-weight:normal;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
x="153.1676"
y="578.93506"
id="text3168"><tspan
sodipodi:role="line"
x="153.1676"
y="578.93506"
id="tspan3172">NOTE: This scheme has at least one big flaw.</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="593.93506"
id="tspan3202">It allows for the creation of malicious agents that could be targeted to </tspan><tspan
sodipodi:role="line"
x="153.1676"
y="608.93506"
id="tspan3213">try to block a specific user by sending UNSUPPORTED_PROTOCOL_VERSION</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="623.93506"
id="tspan3215">messages.</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="638.93506"
id="tspan3217" /><tspan
sodipodi:role="line"
x="153.1676"
y="653.93506"
id="tspan3219">The ordering of messages is handled by the Jabber MUC server, so such an</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="668.93506"
id="tspan3221">attack will not always work, but the possibility of it working certainly</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="683.93506"
id="tspan3223">exists. A better way would be to encode the required protocol version(s)</tspan><tspan
sodipodi:role="line"
x="153.1676"
y="698.93506"
id="tspan3225">in the chatroom itself, but I haven't worked that out just yet.</tspan></text>
</g>
</svg>
|