Nextcloud · Report #1167817
Federated shares are not password protected
How it was found
Hi again,
So more from me. Bare with me because this is a highly theoretical issue. But I never the less thing it should be mitigated. Or at least disclosed.
Premissie:
- user1 on serverA has a federated share established with user2 on serverB
- the database (not the full system) of serverB is compromised
Now since federated shares are not created with a password which is stored encrypted in the database this means that an attacker to serverB obtains access to data on serverA directly.
Now I am aware that if serverB is fully compromised the password could also be decrypted using the server secret
Impact
Using federated sharing exposes the servers to a much larger attack service currently. Since an attacker on a different system can obtain access to data on your system as well. In some cases easier than to the target system.
I'd recommend to make sure that there is a password set that is stored encrypted. And that there is a way for admins to obtain a list of federated servers they need to notify in case they had a breach of their own system.