Skip to content
Crypto Disclosed report Beginner

Default Nextcloud allows http federated shares

Nextcloud permits federated shares to be sent over plain HTTP by default, so data exchanged between servers is not protected by TLS. An attacker positioned on the network could intercept or alter that traffic.

rtod Follow

Originally disclosed on HackerOne

  • Disclosed after 8 days
  1. userA on serverA runs on http only
  2. userA sends a federated share to userB on serverB
  3. userB is a normal user so he has no clue that there is no secure transport used and accepts the share
  4. all the data written to and read from is now no longer protected by TLS

Impact

While maybe a bit far fetched. But this would allow for man in the middle attacks. Nextcloud just seems to allow plain http communication by default. It is in my opinion not sensible at all to expect end users to know the difference here.

I propose:

  1. Allow only https by default (certificates are easy and cheap these days)
  2. If it is for local debugging then only allow http when debugging
  3. If really needed for some edge case make this explicit opt in in config.php

The original report as published on HackerOne, by rtod. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the federated sharing feature accepts HTTP URLs for remote servers by default instead of requiring HTTPS.

Impact

An attacker who can intercept network traffic could read or modify federated share data, though the author notes this scenario may be far-fetched.

What the attacker needed

A Nextcloud server reachable over HTTP; a federated share between two servers; attacker on the network path

The fix

The default should require HTTPS for federated shares, with HTTP allowed only through an explicit opt-in configuration for debugging or edge cases.

How it was found

  1. Set up a user on a server that only serves HTTP.
  2. Send a federated share from that user to a user on another server.
  3. The receiving user accepts the share without being told the transport is insecure.
  4. Data is then exchanged without TLS protection.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When two Nextcloud servers share files, the software allows plain HTTP, which is unencrypted, without warning. Anyone who can watch the network path could read or change the shared data.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

More by rtod

View all

33 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.