FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests