mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 04:02:20 -05:00
Merge pull request #1314 from guusdk/xep0133_drop-password-retrieval
XEP-0133: Retract 'Get User Password' command
This commit is contained in:
commit
06c617c770
97
xep-0133.xml
97
xep-0133.xml
@ -13,6 +13,7 @@
|
|||||||
<status>Active</status>
|
<status>Active</status>
|
||||||
<type>Informational</type>
|
<type>Informational</type>
|
||||||
<sig>Standards</sig>
|
<sig>Standards</sig>
|
||||||
|
<approver>Council</approver>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<spec>RFC 6120</spec>
|
<spec>RFC 6120</spec>
|
||||||
<spec>XEP-0050</spec>
|
<spec>XEP-0050</spec>
|
||||||
@ -21,6 +22,12 @@
|
|||||||
<supersededby/>
|
<supersededby/>
|
||||||
<shortname>admin</shortname>
|
<shortname>admin</shortname>
|
||||||
&stpeter;
|
&stpeter;
|
||||||
|
<revision>
|
||||||
|
<version>1.3.0</version>
|
||||||
|
<date>2024-01-04</date>
|
||||||
|
<initials>gdk</initials>
|
||||||
|
<remark>Removed use case 'Get User Password', which violates best-practices with regard to security.</remark>
|
||||||
|
</revision>
|
||||||
<revision>
|
<revision>
|
||||||
<version>1.2</version>
|
<version>1.2</version>
|
||||||
<date>2017-07-15</date>
|
<date>2017-07-15</date>
|
||||||
@ -110,7 +117,7 @@
|
|||||||
<li>Disable User</li>
|
<li>Disable User</li>
|
||||||
<li>Re-Enable User</li>
|
<li>Re-Enable User</li>
|
||||||
<li>End User Session</li>
|
<li>End User Session</li>
|
||||||
<li>Get User Password</li>
|
<li>Get User Password (retracted)</li>
|
||||||
<li>Change User Password</li>
|
<li>Change User Password</li>
|
||||||
<li>Get User Roster</li>
|
<li>Get User Roster</li>
|
||||||
<li>Get User Last Login Time</li>
|
<li>Get User Last Login Time</li>
|
||||||
@ -539,92 +546,8 @@
|
|||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Get User Password' anchor='get-user-password'>
|
<section2 topic='Get User Password (retracted)' anchor='get-user-password'>
|
||||||
<p>An administrator may need to retrieve a user's password. The command node for this use case SHOULD be "http://jabber.org/protocol/admin#get-user-password".</p>
|
<p>Up to and including revision 1.2 of this XEP, this section defined a command that could be used to retrieve a user's password. This implies that the implementation stores plaintext passwords, a practise that is a well-documented vulnerability<note>OWASP: Password Plaintext Storage <<link url='https://owasp.org/www-community/vulnerabilities/Password_Plaintext_Storage'>https://owasp.org/www-community/vulnerabilities/Password_Plaintext_Storage</link>></note>. This command has therefore been retracted from this XEP. To retain section numbering, this text replaces the command definition that previously existed in this section.</p>
|
||||||
<p>A sample protocol flow for this use case is shown below.</p>
|
|
||||||
<example caption='Admin Requests to Get a User's Password'><![CDATA[
|
|
||||||
<iq from='bard@shakespeare.lit/globe'
|
|
||||||
id='get-user-password-1'
|
|
||||||
to='shakespeare.lit'
|
|
||||||
type='set'
|
|
||||||
xml:lang='en'>
|
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
|
||||||
action='execute'
|
|
||||||
node='http://jabber.org/protocol/admin#get-user-password'/>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
<p>Unless an error occurs (see the <link url='#errors'>Error Handling</link> section below), the service SHOULD return the appropriate form.</p>
|
|
||||||
<example caption='Service Returns Get User Password Form to Admin'><![CDATA[
|
|
||||||
<iq from='shakespeare.lit'
|
|
||||||
id='get-user-password-1'
|
|
||||||
to='bard@shakespeare.lit/globe'
|
|
||||||
type='result'
|
|
||||||
xml:lang='en'>
|
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
|
||||||
node='http://jabber.org/protocol/admin#get-user-password'
|
|
||||||
sessionid='get-user-password:20040408T0337Z'
|
|
||||||
status='executing'>
|
|
||||||
<x xmlns='jabber:x:data' type='form'>
|
|
||||||
<title>Getting a User's Password</title>
|
|
||||||
<instructions>Fill out this form to get a user's password.</instructions>
|
|
||||||
<field type='hidden' var='FORM_TYPE'>
|
|
||||||
<value>http://jabber.org/protocol/admin</value>
|
|
||||||
</field>
|
|
||||||
<field label='The Jabber ID for which to retrieve the password'
|
|
||||||
type='jid-single'
|
|
||||||
var='accountjid'>
|
|
||||||
<required/>
|
|
||||||
</field>
|
|
||||||
</x>
|
|
||||||
</command>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
<p>Note: If the entity is an end user, the JID SHOULD be of the form <user@host>, not <user@host/resource>.</p>
|
|
||||||
<example caption='Admin Submits Get User Password Form to Service'><![CDATA[
|
|
||||||
<iq from='bard@shakespeare.lit/globe'
|
|
||||||
id='get-user-password-2'
|
|
||||||
to='shakespeare.lit'
|
|
||||||
type='set'
|
|
||||||
xml:lang='en'>
|
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
|
||||||
node='http://jabber.org/protocol/admin#get-user-password'
|
|
||||||
sessionid='get-user-password:20040408T0337Z'>
|
|
||||||
<x xmlns='jabber:x:data' type='submit'>
|
|
||||||
<field type='hidden' var='FORM_TYPE'>
|
|
||||||
<value>http://jabber.org/protocol/admin</value>
|
|
||||||
</field>
|
|
||||||
<field var='accountjid'>
|
|
||||||
<value>juliet@shakespeare.lit</value>
|
|
||||||
</field>
|
|
||||||
</x>
|
|
||||||
</command>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
<p>Naturally, the data form included in the IQ result will include the user's password.</p>
|
|
||||||
<example caption='Service Informs Admin of Completion'><![CDATA[
|
|
||||||
<iq from='shakespeare.lit'
|
|
||||||
id='get-user-password-2'
|
|
||||||
to='bard@shakespeare.lit/globe'
|
|
||||||
type='result'
|
|
||||||
xml:lang='en'>
|
|
||||||
<command xmlns='http://jabber.org/protocol/commands'
|
|
||||||
node='http://jabber.org/protocol/admin#get-user-password'
|
|
||||||
sessionid='get-user-password:20040408T0337Z'
|
|
||||||
status='completed'>
|
|
||||||
<x xmlns='jabber:x:data' type='result'>
|
|
||||||
<field type='hidden' var='FORM_TYPE'>
|
|
||||||
<value>http://jabber.org/protocol/admin</value>
|
|
||||||
</field>
|
|
||||||
<field var='accountjid'>
|
|
||||||
<value>juliet@shakespeare.lit</value>
|
|
||||||
</field>
|
|
||||||
<field var='password'>
|
|
||||||
<value>R0m30</value>
|
|
||||||
</field>
|
|
||||||
</x>
|
|
||||||
</command>
|
|
||||||
</iq>
|
|
||||||
]]></example>
|
|
||||||
</section2>
|
</section2>
|
||||||
<section2 topic='Change User Password' anchor='change-user-password'>
|
<section2 topic='Change User Password' anchor='change-user-password'>
|
||||||
<p>An administrator may need to change a user's password. The command node for this use case SHOULD be "http://jabber.org/protocol/admin#change-user-password".</p>
|
<p>An administrator may need to change a user's password. The command node for this use case SHOULD be "http://jabber.org/protocol/admin#change-user-password".</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user