Skip to content

Commit d8292f0

Browse files
committed
Prevent a server from overwriting another server's account status
1 parent 30732a4 commit d8292f0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

proposals/3720-account-status.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ their users. To support this use case, homeservers must expose a
9999
`m.account_status` capability to tell clients whether they support retrieving
100100
account status via the client-side endpoint described above.
101101

102-
103102
## Alternatives
104103

105104
A previous version of this proposal used `GET` requests instead of `POST`.
@@ -108,12 +107,23 @@ changed to `POST` so user IDs don't leak into reverse proxy logs.
108107

109108
## Security considerations
110109

110+
### Allowing servers to refuse to share account statuses
111+
111112
Should a server administrator not want to disclose information about their users
112113
through the federation endpoint described above, they should use a reverse proxy
113114
or similar tool to prevent access to the endpoint. On top of this, homeserver
114115
implementations may implement measures to respond with a 403 status code and a
115116
`M_FORBIDDEN` error code in this case.
116117

118+
### Overwriting the statuses of another server's account
119+
120+
When processing the response from a request to the federation endpoint described
121+
in this proposal, homeservers implementations must verify that every account the
122+
remote homeserver has provided a status for belongs to the remote homeserver.
123+
For any account for which this isn't the case, the status provided by the remote
124+
homeserver must be ignored. This is to prevent mischievous homeservers from
125+
trying to overwrite the status of accounts that don't belong to them.
126+
117127
## Unstable prefixes
118128

119129
Until this proposal is stabilised in a new version of the Matrix specification,

0 commit comments

Comments
 (0)