mirror of
https://github.com/moparisthebest/xeps
synced 2025-02-24 22:51:53 -05:00
XEP-0364: Retab
This commit is contained in:
parent
70561049c7
commit
cefba6e02c
103
xep-0364.xml
103
xep-0364.xml
@ -30,6 +30,17 @@
|
|||||||
<email>sam@samwhited.com</email>
|
<email>sam@samwhited.com</email>
|
||||||
<jid>sam@samwhited.com</jid>
|
<jid>sam@samwhited.com</jid>
|
||||||
</author>
|
</author>
|
||||||
|
<revision>
|
||||||
|
<version>0.2</version>
|
||||||
|
<date>2016-04-24</date>
|
||||||
|
<initials>ssw</initials>
|
||||||
|
<remark>
|
||||||
|
<p>
|
||||||
|
Remove RFC 2119 language other than [NOT] RECOMMENDED; add session
|
||||||
|
ending recommendations.
|
||||||
|
</p>
|
||||||
|
</remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.1</version>
|
<version>0.1</version>
|
||||||
<date>2015-08-27</date>
|
<date>2015-08-27</date>
|
||||||
@ -87,24 +98,25 @@
|
|||||||
<p>
|
<p>
|
||||||
OTR uses 128 bit AES symmetric-key encryption and the SHA-1 hash function.
|
OTR uses 128 bit AES symmetric-key encryption and the SHA-1 hash function.
|
||||||
An OTR session can be held only between two parties, meaning that OTR is
|
An OTR session can be held only between two parties, meaning that OTR is
|
||||||
incompatible with &xep0045;. It provides deniability in the form of
|
incompatible with &xep0045; and &xep0369;. It provides deniability in the
|
||||||
malleable encryption (a third party may generate fake messages after the
|
form of malleable encryption (a third party may generate fake messages
|
||||||
session has ended). This means that if you were not a part of the original
|
after the session has ended). This means that if you were not a part of
|
||||||
conversation, you cannot prove based on captured messages alone that a
|
the original conversation, you cannot prove, based on captured messages
|
||||||
message from the conversation was actually sent by a given party. Unlike
|
alone, that a message from the conversation was actually sent by a given
|
||||||
PGP, OTR also provides forward secrecy; even if a session is recorded and
|
party. Unlike PGP, OTR also provides forward secrecy; even if a session
|
||||||
the primary key is compromised at a later date, the OTR messages will not
|
is recorded and the primary key is compromised at a later date, the OTR
|
||||||
be able to be decrypted as each was encrypted with an ephemeral key
|
messages will not be able to be decrypted as each was encrypted with an
|
||||||
exchanged with Diffie-Hellman key exchange with a 1536 bit modulus.
|
ephemeral key exchanged via Diffie-Hellman key exchange with a 1536 bit
|
||||||
|
modulus.
|
||||||
</p>
|
</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Discovery'>
|
<section1 topic='Discovery'>
|
||||||
<p>
|
<p>
|
||||||
Clients that support the OTR protocol do not advertise it in any of the
|
Clients that support the OTR protocol do not advertise it in any of the
|
||||||
normal XMPP ways. Instead, OTR provides its own discovery mechanism. If a
|
normal XMPP ways. Instead, OTR provides its own discovery mechanism. If a
|
||||||
client wishes to indicate support for OTR they include a special whitespace
|
client wishes to indicate support for OTR they include a special
|
||||||
tag in their messages. This tag can appear anywhere in the body of the
|
whitespace tag in their messages. This tag can appear anywhere in the body
|
||||||
message stanza, but it is most often found at the end. The OTR tag
|
of the message stanza, but it is most often found at the end. The OTR tag
|
||||||
comprises the following bytes:
|
comprises the following bytes:
|
||||||
|
|
||||||
<example caption='OTR tag'>
|
<example caption='OTR tag'>
|
||||||
@ -133,11 +145,11 @@
|
|||||||
<p>
|
<p>
|
||||||
When a client sees this special string in the body of a message stanza it
|
When a client sees this special string in the body of a message stanza it
|
||||||
may choose to start an OTR session immediately, or merely indicate support
|
may choose to start an OTR session immediately, or merely indicate support
|
||||||
to the user and allow the user to manually start a session. This is done by
|
to the user and allow the user to manually start a session. This is done
|
||||||
sending a message stanza containing an OTR query message in the body which
|
by sending a message stanza containing an OTR query message in the body
|
||||||
indicates the supported versions of OTR. In XMPP these are most commonly
|
which indicates the supported versions of OTR. In XMPP these are most
|
||||||
version 2 and version 3, which would be indicated by a message stanza which
|
commonly version 2 and version 3, which would be indicated by a message
|
||||||
has a body that starts with the string:
|
stanza which has a body that starts with the string:
|
||||||
|
|
||||||
<example caption='OTR query'>
|
<example caption='OTR query'>
|
||||||
?OTR?v23?
|
?OTR?v23?
|
||||||
@ -161,16 +173,17 @@
|
|||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Routing'>
|
<section2 topic='Routing'>
|
||||||
<p>
|
<p>
|
||||||
XMPP is designed so that the client needs to know very little about where
|
XMPP is designed so that the client needs to know very little about
|
||||||
and how a message will be routed. Generally, clients are encouraged to
|
where and how a message will be routed. Generally, clients are
|
||||||
send messages to the bare JID and allow the server to route the messages
|
encouraged to send messages to the bare JID and allow the server to
|
||||||
as it sees fit. However, OTR requires that messages be sent to a
|
route the messages as it sees fit. However, OTR requires that messages
|
||||||
particular resource. Therefore clients SHOULD send OTR messages to a full
|
be sent to a particular resource. Therefore clients should send OTR
|
||||||
JID, possibly allowing the user to determine which resource they wish to
|
messages to a full JID, possibly allowing the user to determine which
|
||||||
start an encrypted session with. Furthermore, if a client receives a
|
resource they wish to start an encrypted session with. Furthermore, if a
|
||||||
request to start an OTR session in a carboned message (due to a server
|
client receives a request to start an OTR session in a carboned message
|
||||||
which does not support the aforementioned "private" directive, or a
|
(due to a server which does not support the aforementioned "private"
|
||||||
client which does not set it), it SHOULD be silently ignored.
|
directive, or a client which does not set it), it should be silently
|
||||||
|
ignored.
|
||||||
</p>
|
</p>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Processing Hints'>
|
<section2 topic='Processing Hints'>
|
||||||
@ -199,8 +212,7 @@
|
|||||||
majority of the body stripped out for readability):
|
majority of the body stripped out for readability):
|
||||||
|
|
||||||
<example caption='OTR message with processing hints'><![CDATA[
|
<example caption='OTR message with processing hints'><![CDATA[
|
||||||
<message
|
<message from='malvolio@stewardsguild.lit/countesshousehold'
|
||||||
from='malvolio@stewardsguild.lit/countesshousehold'
|
|
||||||
to='olivia@countess.lit/veiled'>
|
to='olivia@countess.lit/veiled'>
|
||||||
<body>?OTR?v23?...</body>
|
<body>?OTR?v23?...</body>
|
||||||
<no-copy xmlns="urn:xmpp:hints"/>
|
<no-copy xmlns="urn:xmpp:hints"/>
|
||||||
@ -213,21 +225,21 @@
|
|||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Use in XMPP URIs'>
|
<section1 topic='Use in XMPP URIs'>
|
||||||
<p>
|
<p>
|
||||||
&rfc5122; defines a Uniform Resource Identifier (URI) and Internationalized
|
&rfc5122; defines a Uniform Resource Identifier (URI) and
|
||||||
Resource Identifier (IRI) scheme for XMPP entities, and &xep0147; defines
|
Internationalized Resource Identifier (IRI) scheme for XMPP entities, and
|
||||||
various query components for use with XMPP URI's. When an entity has an
|
&xep0147; defines various query components for use with XMPP URI's. When
|
||||||
associated OTR fingerprint it's URI is often formed with "otr-fingerprint"
|
an entity has an associated OTR fingerprint it's URI is often formed with
|
||||||
in the query string. Eg.
|
"otr-fingerprint" in the query string. Eg.
|
||||||
|
|
||||||
<example caption='OTR Fingerprint'>
|
<example caption='OTR Fingerprint'>
|
||||||
xmpp:feste@allfools.lit?otr-fingerprint=AEA4D503298797D4A4FC823BC1D24524B4C54338
|
xmpp:feste@allfools.lit?otr-fingerprint=AEA4D503298797D4A4FC823BC1D24524B4C54338
|
||||||
</example>
|
</example>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The ®ISTRAR; maintains a registry of queries and key-value pairs for use
|
The ®ISTRAR; maintains a registry of queries and key-value pairs for
|
||||||
in XMPP URIs at &QUERYTYPES;. As of the date this document was authored,
|
use in XMPP URIs at &QUERYTYPES;. As of the date this document was
|
||||||
the 'otr-fingerprint' query string has not been formally defined and has
|
authored, the 'otr-fingerprint' query string has not been formally defined
|
||||||
therefore is not officially recognized by the registrar.
|
and has therefore is not officially recognized by the registrar.
|
||||||
</p>
|
</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Acknowledgements' anchor='acks'>
|
<section1 topic='Acknowledgements' anchor='acks'>
|
||||||
@ -250,21 +262,22 @@ xmpp:feste@allfools.lit?otr-fingerprint=AEA4D503298797D4A4FC823BC1D24524B4C54338
|
|||||||
<p>
|
<p>
|
||||||
While this document describes an existing protocol which is streamed over
|
While this document describes an existing protocol which is streamed over
|
||||||
XMPP and therefore does not introduce any new security concerns itself, it
|
XMPP and therefore does not introduce any new security concerns itself, it
|
||||||
is worth mentioning a few security issues with the underlying OTR protocol:
|
is worth mentioning a few security issues with the underlying OTR
|
||||||
|
protocol:
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Because Diffie-Hellman (D-H) key exchange is unauthenticated, the initial
|
Because Diffie-Hellman (D-H) key exchange is unauthenticated, the initial
|
||||||
D-H exchange which sets up the encrypted channel is vulnerable to a
|
D-H exchange which sets up the encrypted channel is vulnerable to a
|
||||||
man-in-the-middle attack. No sensitive information should be sent over the
|
man-in-the-middle attack. No sensitive information should be sent over the
|
||||||
encrypted channel until mutual authentication has been performed
|
encrypted channel until mutual authentication has been performed inside
|
||||||
inside the encrypted channel.
|
the encrypted channel.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
OTR makes use of the SHA-1 hash algorithm. While no practical attacks have
|
OTR makes use of the SHA-1 hash algorithm. While no practical attacks have
|
||||||
been observed in SHA-1 at the time of this writing, theoretical attacks
|
been observed in SHA-1 at the time of this writing, theoretical attacks
|
||||||
have been constructed, and attacks have been performed on hash functions
|
have been constructed, and attacks have been performed on hash functions
|
||||||
that are similar to SHA-1. One cryptographer estimated that the cost
|
that are similar to SHA-1. One cryptographer estimated that the cost of
|
||||||
of generating SHA-1 collisions was $2.77 million dollars in 2012, and would
|
generating SHA-1 collisions was $2.77 million dollars in 2012, and would
|
||||||
drop to $700,000 by 2015.
|
drop to $700,000 by 2015.
|
||||||
<note>
|
<note>
|
||||||
Bruce Schneier (2012-10-05). "When Will We See Collisions for SHA-1?"
|
Bruce Schneier (2012-10-05). "When Will We See Collisions for SHA-1?"
|
||||||
@ -272,8 +285,8 @@ xmpp:feste@allfools.lit?otr-fingerprint=AEA4D503298797D4A4FC823BC1D24524B4C54338
|
|||||||
https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html
|
https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html
|
||||||
</link>>
|
</link>>
|
||||||
</note>.
|
</note>.
|
||||||
This puts generating SHA-1 collisions well within the reach of governments,
|
This puts generating SHA-1 collisions well within the reach of
|
||||||
malicious organizations, and even well-funded individuals.
|
governments, malicious organizations, and even well-funded individuals.
|
||||||
</p>
|
</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='IANA Considerations' anchor='iana'>
|
<section1 topic='IANA Considerations' anchor='iana'>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user