From 932ef25a87658e51716120c7f4f11980f12f654e Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Wed, 28 Aug 2013 09:28:26 -0600 Subject: [PATCH] 0.5 --- xep-0297.xml | 70 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/xep-0297.xml b/xep-0297.xml index 95d9ae8f..a4c16f10 100644 --- a/xep-0297.xml +++ b/xep-0297.xml @@ -23,6 +23,17 @@ &mwild; &ksmith; + &stpeter; + + 0.5 + 2013-06-05 + mw + +

Incorporated Last Call feedback, including; clarify that client handling of non-message stanzas, + add a disco feature, remove references to deferred XEPs, tighten up the schema to allow only stanzas + to be forwarded.

+
+
0.4 2012-07-05 @@ -67,7 +78,7 @@

Several properties are desirable when forwarding stanzas:

  • The original sender and receiver should be identified.
  • -
  • Extension payloads should be included (not only a message <body/>
  • +
  • Most extension payloads should be included (not only a message <body/>).
  • It should be possible to annotate the stanza (e.g. with a timestamp) without ambiguity as to the original stanza contents.
  • It should allow features such as encryption or signing of the original stanza to survive the forwarding.
@@ -132,13 +143,44 @@ + +

Clients that implement this specification to display simple forwarded messages (i.e. those not part of another extension) + SHOULD indicate their support via the 'urn:xmpp:forward:0' feature.

+ + +]]> + + +... + +... + +]]> +

Senders SHOULD NOT forward messages using this protocol to recipients that have not indicated support for it. However they may still + format the forward as plain text inside the <body> of a standard message stanza for compatibility with clients lacking support. + Such a plain text version SHOULD NOT be included in a stanza using this extension (e.g. as a 'fallback'), as receiving entities are + expected to display the <body> of a message as well as any forwarded stanza therein. +

+

Forwarding stanzas can reveal information about the original sender, including possible presence leaks as well as the stanza payloads themselves. Any extensions using this format must therefore consider the implications of this.

Forwarding can either be used as-is, or in the context of another specification, with different security considerations as described below.

-

Receipt of a forwarded stanza from a third-party does not guarantee that the original stanza was actually received, or that the content has not been modified, by the forwarder. Integrity of the original stanza can only be determined through digital signing mechanisms such as described in &xep0285; and &xep0290;.

+

Receipt of a forwarded stanza from a third-party does not guarantee that the original stanza was actually received, or that the content has not been modified, by the forwarder. Integrity of the original stanza can only be determined through cryptographic signatures for example, which are beyond the scope of this specification.

Considering the above an end-user client should take special care in its rendering of forwarded stanzas, such as forwarded messages, to ensure that the user cannot mistake it for a message received directly from the original sender.

An entity SHOULD NOT trust that forwards are genuine when receiving them unprovoked (i.e. outside the scope of another specification).

+

Forwarded stanzas MUST NOT be processed as if they were non-forwarded stanzas. Furthermore a client SHOULD ignore non-<message> + stanzas that are not embedded within another extension.

While security considerations are ultimately dependent upon the specifications using the format defined herein, forwarding introduces scope for stanza forgery such that authors of derivative specifications will need to address security considerations themselves. These need to cover which entities a client should accept forwards from, and which entities those are permitted to forward stanzas for. For example, a specification may choose to only trust forwards if they are received from the user's client, another client on the bare JID, or the user's server.

@@ -154,19 +196,35 @@ xmlns='urn:xmpp:forward:0' elementFormDefault='qualified'> + + + - + - + + + + + + + + + + + + - + ]]>
-

Thanks to Matt Miller and Florian Zeitz for feedback.

+

Thanks to Matt Miller, Florian Zeitz, Jefry Lagrange, Kim Alvefur and Kurt Zeilenga for their feedback.