mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
0.3
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@460 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
ecaaca5aed
commit
2dd9787bbf
58
xep-0161.xml
58
xep-0161.xml
@ -21,8 +21,14 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
<supersedes/>
|
<supersedes/>
|
||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>spimreport</shortname>
|
<shortname>NOT YET ASSIGNED</shortname>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
|
<revision>
|
||||||
|
<version>0.3</version>
|
||||||
|
<date>2007-01-31</date>
|
||||||
|
<initials>psa</initials>
|
||||||
|
<remark><p>Specified that client recipient should not send a report to the server of a suspected spimmer; modified XML namespace name to conform to XEP-0053 processes; corrected several examples.</p></remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>0.2</version>
|
<version>0.2</version>
|
||||||
<date>2006-09-21</date>
|
<date>2006-09-21</date>
|
||||||
@ -43,13 +49,13 @@
|
|||||||
</revision>
|
</revision>
|
||||||
</header>
|
</header>
|
||||||
<section1 topic='Introduction' anchor='intro'>
|
<section1 topic='Introduction' anchor='intro'>
|
||||||
<p>Unsolicited bulk email, commonly called "spam", is a widespread problem on today's email network. We want to make sure that unsolicited bulk instant messaging, commonly called "SPIM" (short for "spam over IM"), does not become a widespread problem on the XMPP instant messaging network. To that end, this document specifies a protocol for reporting particular instances of SPIM.</p>
|
<p>Unsolicited bulk email, commonly called "spam", is a widespread problem on today's email network. We want to make sure that unsolicited bulk instant messaging, commonly called "SPIM" (short for "spam over IM"), does not become a widespread problem on the XMPP instant messaging network. To that end, this document specifies an XMPP protocol extension for reporting particular instances of SPIM.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Protocol' anchor='proto'>
|
<section1 topic='Protocol' anchor='proto'>
|
||||||
<section2 topic='Reporting a SPIM Stanza' anchor='proto-stanza'>
|
<section2 topic='Reporting a SPIM Stanza' anchor='proto-stanza'>
|
||||||
<p>The protocol for SPIM reporting is quite simple: wrap the complete SPIM stanza in a <spim/> element qualified by the 'http://jabber.org/protocol/spimreport' namespace and send an IQ stanza of type "set" to the entity that shall receive the report. This protocol is intended to be used by recipients of SPIM stanzas and by other entities (e.g., servers or services) that wish to pass around SPIM reports. The following is an example:</p>
|
<p>The protocol for SPIM reporting is quite simple: wrap the complete SPIM stanza in a <spim/> element qualified by the 'http://www.xmpp.org/extensions/xep-0161.html#ns' namespace and send an IQ stanza of type "set" to the entity that shall receive the report. This protocol is intended to be used by recipients of SPIM stanzas and by other entities (e.g., servers or services) that wish to pass around SPIM reports. The following is an example:</p>
|
||||||
<example caption='Unsuspecting User Receives SPIM from Evil Bot'><![CDATA[
|
<example caption='Unsuspecting User Receives SPIM from Evil Bot'><![CDATA[
|
||||||
<presence from='makemoney@spimmersheaven.info/bot'
|
<presence from='makemoney@spimmersheaven.info'
|
||||||
to='unsuspectinguser@example.net'
|
to='unsuspectinguser@example.net'
|
||||||
type='subscribe'>
|
type='subscribe'>
|
||||||
<status>
|
<status>
|
||||||
@ -61,12 +67,12 @@
|
|||||||
</presence>
|
</presence>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Unsuspecting User Reports SPIM'><![CDATA[
|
<example caption='Unsuspecting User Reports SPIM'><![CDATA[
|
||||||
<iq from='unsuspectinguser@example.net'
|
<iq from='unsuspectinguser@example.net/foo'
|
||||||
to='example.net'
|
to='example.net'
|
||||||
type='set'
|
type='set'
|
||||||
id='report1'>
|
id='report1'>
|
||||||
<spim xmlns='http://jabber.org/protocol/spimreport'>
|
<spim xmlns='http://www.xmpp.org/extensions/xep-0161.html#ns'>
|
||||||
<presence from='makemoney@spimmersheaven.info/bot'
|
<presence from='makemoney@spimmersheaven.info'
|
||||||
to='unsuspectinguser@example.net'
|
to='unsuspectinguser@example.net'
|
||||||
type='subscribe'
|
type='subscribe'
|
||||||
xmlns='jabber:client'>
|
xmlns='jabber:client'>
|
||||||
@ -83,11 +89,11 @@
|
|||||||
<p>If the entity that receives the report does not support the SPIM Reporting protocol, it MUST return a &unavailable; error to the reporting entity:</p>
|
<p>If the entity that receives the report does not support the SPIM Reporting protocol, it MUST return a &unavailable; error to the reporting entity:</p>
|
||||||
<example caption='Service Unavailable'><![CDATA[
|
<example caption='Service Unavailable'><![CDATA[
|
||||||
<iq from='example.net'
|
<iq from='example.net'
|
||||||
to='unsuspectinguser@example.net'
|
to='unsuspectinguser@example.net/foo'
|
||||||
type='error'
|
type='error'
|
||||||
id='report1'>
|
id='report1'>
|
||||||
<spim xmlns='http://jabber.org/protocol/spimreport'>
|
<spim xmlns='http://www.xmpp.org/extensions/xep-0161.html#ns'>
|
||||||
<presence from='makemoney@spimmersheaven.info/bot'
|
<presence from='makemoney@spimmersheaven.info'
|
||||||
to='unsuspectinguser@example.net'
|
to='unsuspectinguser@example.net'
|
||||||
type='subscribe'
|
type='subscribe'
|
||||||
xmlns='jabber:client'>
|
xmlns='jabber:client'>
|
||||||
@ -113,13 +119,13 @@
|
|||||||
]]></example>
|
]]></example>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Reporting a Spimmer' anchor='proto-spimmer'>
|
<section2 topic='Reporting a Spimmer' anchor='proto-spimmer'>
|
||||||
<p>If an entity that processes SPIM reports determines that the suspected spimmer is indeed an actual spimmer, it SHOULD report its conclusions to appropriate other entities (e.g., the spimmer's server or dedicated SPIM reporting services). Here again, the protocol is quite simple: wrap the spimmer's JID in a <spimmer/> element qualified by the 'http://jabber.org/protocol/spimreport' namespace and send an IQ stanza of type "set" to the entity that shall receive the report. This protocol SHOULD NOT be used by recipients of SPIM stanzas. The following is an example:</p>
|
<p>If an entity that processes SPIM reports determines that the suspected spimmer is indeed an actual spimmer, it SHOULD report its conclusions to appropriate other entities (e.g., the spimmer's server or dedicated SPIM reporting services). Here again, the protocol is quite simple: wrap the spimmer's JID in a <spimmer/> element qualified by the 'http://www.xmpp.org/extensions/xep-0161.html#ns' namespace and send an IQ stanza of type "set" to the entity that shall receive the report. This protocol SHOULD NOT be used by recipients of SPIM stanzas. The following is an example:</p>
|
||||||
<example caption='Server Reports Spimmer'><![CDATA[
|
<example caption='Server Reports Spimmer'><![CDATA[
|
||||||
<iq from='example.net'
|
<iq from='example.net'
|
||||||
to='spim.xmpp.net'
|
to='spim.xmpp.net'
|
||||||
type='set'
|
type='set'
|
||||||
id='spimmer1'>
|
id='spimmer1'>
|
||||||
<spimmer xmlns='http://jabber.org/protocol/spimreport'>makemoney@spimmersheaven.info</spimmer>
|
<spimmer xmlns='http://www.xmpp.org/extensions/xep-0161.html#ns'>makemoney@spimmersheaven.info</spimmer>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
</section2>
|
</section2>
|
||||||
@ -128,22 +134,22 @@
|
|||||||
<p>The following rules and guidelines apply to the act of reporting SPIM.</p>
|
<p>The following rules and guidelines apply to the act of reporting SPIM.</p>
|
||||||
<ol start='1'>
|
<ol start='1'>
|
||||||
<li><p>The recipient SHOULD NOT report the SPIM stanza to a server or service until it determines that the server or service supports the SPIM Reporting protocol (see the <link url='#disco'>Discovering Support</link> section of this document).</p></li>
|
<li><p>The recipient SHOULD NOT report the SPIM stanza to a server or service until it determines that the server or service supports the SPIM Reporting protocol (see the <link url='#disco'>Discovering Support</link> section of this document).</p></li>
|
||||||
<li><p>If the recipient's home server (i.e., the server with which it has a registered account or other trust relationship) supports the SPIM Reporting protocol, the recipient SHOULD report the offending stanza to its own server only.</p></li>
|
<li><p>If the recipient's home server (i.e., the server with which it has a registered account or other trust relationship) supports the SPIM Reporting protocol, the recipient SHOULD report the offending stanza only to its own server.</p></li>
|
||||||
<li><p>If the recipient's home server does not support the SPIM Reporting protocol, the recipient SHOULD report the SPIM stanza to one or more dedicated SPIM reporting services if available.</p></li>
|
<li><p>If the recipient's home server does not support the SPIM Reporting protocol, the recipient SHOULD report the SPIM stanza to one or more dedicated SPIM reporting services if available.</p></li>
|
||||||
<li><p>The recipient MAY report the SPIM stanza to the suspected spimmer's server (but see the <link url='#security'>Security Considerations</link> section of this document).</p></li>
|
<li><p>The recipient SHOULD NOT report the SPIM stanza to the suspected spimmer's server.</p></li>
|
||||||
<li><p>The recipient SHOULD NOT report the SPIM stanza to the suspected spimmer.</p></li>
|
<li><p>The recipient SHOULD NOT report the SPIM stanza to the suspected spimmer.</p></li>
|
||||||
</ol>
|
</ol>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Processing SPIM Reports' anchor='processing'>
|
<section1 topic='Processing SPIM Reports' anchor='processing'>
|
||||||
<section2 topic='Initial Processing' anchor='processing-initial'>
|
<section2 topic='Initial Processing' anchor='processing-initial'>
|
||||||
<p>The following rules and guidelines apply to initial processing of a SPIM report.</p>
|
<p>The following rules and guidelines apply to initial processing of a SPIM report:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Before processing the report, the processor MAY respond to the report by sending a challenge to the sender (e.g., using &xep0158;) in order to make sure that the sender is not sending spurious reports or otherwise abusing the SPIM reporting system.</li>
|
<li>Before processing the report, the processor MAY respond to the report by sending a challenge to the sender (e.g., using &xep0158;) in order to make sure that the sender is not sending spurious reports or otherwise abusing the SPIM reporting system.</li>
|
||||||
<li>The processor MUST add the report to a list or database of pending SPIM reports.</li>
|
<li>The processor MUST add the report to a list or database of pending SPIM reports.</li>
|
||||||
<li>If the suspected spimmer is not already on the processor's list of known spimmers, the processor SHOULD use the report in determining whether the suspected spimmer is an actual spimmer (see next section).</li>
|
<li>If the suspected spimmer is not already on the processor's list of known spimmers, the processor SHOULD use the report in determining whether the suspected spimmer is an actual spimmer (see next section).</li>
|
||||||
<li>The processor MAY report the SPIM stanza to one or more dedicated SPIM reporting services if available.</li>
|
<li>The processor MAY report the SPIM stanza to one or more dedicated SPIM reporting services if available.</li>
|
||||||
<li>The processor MAY report the SPIM stanza to other servers it trusts.</li>
|
<li>The processor MAY report the SPIM stanza to other servers it trusts.</li>
|
||||||
<li>The processor MAY report the SPIM stanza to the suspected spimmer's server.</li>
|
<li>The processor MAY report the SPIM stanza to the suspected spimmer's server (if the server is otherwise trusted, i.e., is not considered a rogue server).</li>
|
||||||
<li>The processor SHOULD NOT report the SPIM stanza to the suspected spimmer.</li>
|
<li>The processor SHOULD NOT report the SPIM stanza to the suspected spimmer.</li>
|
||||||
</ol>
|
</ol>
|
||||||
</section2>
|
</section2>
|
||||||
@ -164,9 +170,9 @@
|
|||||||
</section2>
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Discovering Support' anchor='disco'>
|
<section1 topic='Discovering Support' anchor='disco'>
|
||||||
<p>In order to discover whether another entity supports SPIM reporting, &xep0030; SHOULD be used. If an entity supports SPIM reporting, it MUST return a feature of "http://jabber.org/protocol/spimreport" in responses to service discovery information requests, as shown in the following examples:</p>
|
<p>In order to discover whether another entity supports SPIM reporting, &xep0030; SHOULD be used. If an entity supports SPIM reporting, it MUST return a feature of "http://www.xmpp.org/extensions/xep-0161.html#ns" in responses to service discovery information requests, as shown in the following examples:</p>
|
||||||
<example caption='User Queries Server Regarding Protocol Support'><![CDATA[
|
<example caption='User Queries Server Regarding Protocol Support'><![CDATA[
|
||||||
<iq from='unsuspectinguser@example.net'
|
<iq from='unsuspectinguser@example.net/foo'
|
||||||
to='example.net'
|
to='example.net'
|
||||||
type='get'
|
type='get'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
@ -175,26 +181,28 @@
|
|||||||
]]></example>
|
]]></example>
|
||||||
<example caption='Server Replies Regarding Protocol Support'><![CDATA[
|
<example caption='Server Replies Regarding Protocol Support'><![CDATA[
|
||||||
<iq from='example.net'
|
<iq from='example.net'
|
||||||
to='unsuspectinguser@example.net'
|
to='unsuspectinguser@example.net/foo'
|
||||||
type='result'
|
type='result'
|
||||||
id='disco1'>
|
id='disco1'>
|
||||||
<query xmlns='http://jabber.org/protocol/disco#info'>
|
<query xmlns='http://jabber.org/protocol/disco#info'>
|
||||||
...
|
...
|
||||||
<feature var='http://jabber.org/protocol/spimreport'/>
|
<feature var='http://www.xmpp.org/extensions/xep-0161.html#ns'/>
|
||||||
...
|
...
|
||||||
</query>
|
</query>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='Security Considerations' anchor='security'>
|
<section1 topic='Security Considerations' anchor='security'>
|
||||||
<p>Not all reported SPIM is actual SPIM, and not all reported spimmers are actual spimmers. Processors must take care to ensure that processing of one or a few reports do not result in branding of a legitimate sender as a spimmer, since otherwise the sender could effectively be the subject of a denial of service attack.</p>
|
<p>Not all reported SPIM is actual SPIM, and not all reported spimmers are actual spimmers. Processors must take care to ensure that processing of one or a few reports does not result in branding of a legitimate sender as a spimmer, since otherwise the sender could effectively be the subject of a denial of service attack.</p>
|
||||||
<p>Client recipients are discouraged from sending SPIM reports to the servers of suspected spimmers, since the sending server itself could be a rogue domain that could send SPIM from any JID at that domain.</p>
|
<p>It is NOT RECOMMENDED for client recipients to send SPIM reports to the server of a suspected spimmer, since that server could be a rogue domain capable of sending SPIM from any JID at that domain.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='IANA Considerations' anchor='iana'>
|
<section1 topic='IANA Considerations' anchor='iana'>
|
||||||
<p>This document requires no interaction with &IANA;.</p>
|
<p>This document requires no interaction with &IANA;.</p>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
|
||||||
<p>The ®ISTRAR; shall add 'http://jabber.org/protocol/spimreport' to its registry of protocol namespaces.</p>
|
<section2 topic='Protocol Namespaces' anchor='ns'>
|
||||||
|
<p>Until this specification advances to a status of Draft, its associated namespace shall be "http://www.xmpp.org/extensions/xep-00161.html#ns"; upon advancement of this specification, the ®ISTRAR; shall issue a permanent namespace in accordance with the process defined in Section 4 of &xep0053;.</p>
|
||||||
|
</section2>
|
||||||
</section1>
|
</section1>
|
||||||
<section1 topic='XML Schema' anchor='schema'>
|
<section1 topic='XML Schema' anchor='schema'>
|
||||||
<code><![CDATA[
|
<code><![CDATA[
|
||||||
@ -202,8 +210,8 @@
|
|||||||
|
|
||||||
<xs:schema
|
<xs:schema
|
||||||
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
xmlns:xs='http://www.w3.org/2001/XMLSchema'
|
||||||
targetNamespace='http://jabber.org/protocol/spimreport'
|
targetNamespace='http://www.xmpp.org/extensions/xep-0161.html#ns'
|
||||||
xmlns='http://jabber.org/protocol/spimreport'
|
xmlns='http://www.xmpp.org/extensions/xep-0161.html#ns'
|
||||||
elementFormDefault='qualified'>
|
elementFormDefault='qualified'>
|
||||||
|
|
||||||
<xs:import
|
<xs:import
|
||||||
|
Loading…
Reference in New Issue
Block a user