Skip to content
Misconfiguration Write-up Beginner

Takeover fresh install nextcloud server admin.

The author found Nextcloud servers exposed on the internet that still showed the first-run installation page, which lets anyone set the administrator username and password. An attacker could therefore take full control of such a server by completing the setup themselves.

nanwinata Follow

Published on medium.com

In this write-up, I will share more about the scenario I created based on reviewing the fingerprint source code on the Nextcloud server’s GitHub repository.

nanwn, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the installation page remains reachable on servers that were never fully set up, so the setup step is not restricted to a trusted local operator.

Impact

An attacker could create the administrator account on an unconfigured instance and take over the server; the vendor treated the report as informative, so the exposure may persist.

What the attacker needed

Internet-exposed Nextcloud host; instance never finished setup; no authentication needed

How it was found

  1. Search Shodan using the Nextcloud favicon hash to find candidate hosts
  2. Save the search results page and extract the IP addresses from it
  3. Add a scheme to each address and run a script that fetches each host and looks for the setup page text
  4. Open the hosts that return the setup page
  5. Fill in an admin username and password and submit the install form

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 write-up has not been written yet. The Original tab links to the source.

When you install a web application for the first time, it usually shows a setup page where you choose the admin account. That page is meant to be used once and then disappear. If a server is left online without finishing setup, anyone who finds it can create the admin account and own the whole thing.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by nanwinata

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.