HexBrain

Nextcloud · Report #1167817

Federated shares are not password protected

Informativestatus
mediumseverity
3upvotes
16 Jun 2021disclosed

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:

  1. user1 on serverA has a federated share established with user2 on serverB
  2. 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.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original