Skip to content
Info disclosure Disclosed report Beginner CVE-2023-28834

the complete server installation path is visible in cloud/user endpoint

The cloud/user endpoint returns the full local server path in the storageLocation field. An authenticated attacker could learn the server's filesystem layout, which may aid further attacks.

bohwaz Follow

Originally disclosed on HackerOne

  • Triaged in 9 days
  • Fixed in 5 months
  • Disclosed after 7 months

Summary by the program

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-5w64-6c42-rgcv

The report

https://github.com/nextcloud/server/issues/33883

When doing a GET request on /ocs/v1.php/cloud/user?format=json the server returns user data, including one containing the full local server path:

            "storageLocation": "/home/bohwaz/www/tmp/nextcloud/data/bohwaz",

This is not a big security issue (as you need to be logged-in to get that response), but this is data that an attacker shouldn't be able to know easily.

This happens on a brand new install after using the web installer.

Impact

Sensitive internal info

The original report as published on HackerOne, by bohwaz. 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

Impact

An authenticated user could learn the server's internal filesystem path, which may help in planning further attacks, though the report notes this is not a big security issue.

What the attacker needed

A valid user account

How it was found

  1. Log in to the Nextcloud instance.
  2. Send a GET request to the cloud/user endpoint with JSON format.
  3. Observe the storageLocation field containing the full local server path.

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 you log in to a web app, it sometimes sends back extra details about your account. Here, one of those details was the actual folder path on the server's hard drive, like showing someone the inside of your house. This is not dangerous on its own, but it gives an attacker a map of the server.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.