0
Federated share OCS responses include the share's refresh_token
Source: nextcloud/server#67537 · opened by @susnux
Description
ExternalShare::jsonSerialize() includes the refresh_token (the OCM shared secret used to access the remote share):
This array is returned by the remote shares OCS endpoints (RemoteController::getShares(), getShare() and the pending shares list), so the long-lived secret ends up in the browser of the recipient although no UI needs it. It is only returned to the share's recipient, so this is hardening rather than a vulnerability.
_Found by code reading._
Proposal
Drop refresh_token from the serialized data returned to clients (and from the Files_SharingRemoteShare response definition / OpenAPI), keeping it only for internal use.
ExternalShare::jsonSerialize() includes the refresh_token (the OCM shared secret used to access the remote share):
This array is returned by the remote shares OCS endpoints (RemoteController::getShares(), getShare() and the pending shares list), so the long-lived secret ends up in the browser of the recipient although no UI needs it. It is only returned to the share's recipient, so this is hardening rather than a vulnerability.
_Found by code reading._
Proposal
Drop refresh_token from the serialized data returned to clients (and from the Files_SharingRemoteShare response definition / OpenAPI), keeping it only for internal use.
No pledges yet. Be the first to back this.
Comments
Similar requests
Mirror federated storage locally [$20]
36 votes · 0 comments
Comments within a federated share should be made visible to all federated parties
6 votes · 0 comments
Support ETags for /ocs/v2.php/cloud/users/{userId} endpoint (or all ocs endpoints?)
1 vote · 0 comments
Federated avatars
2 votes · 0 comments
Update caches for federated shares in cron
0 votes · 0 comments
No comments yet.