Skip to content
Access control Disclosed report Beginner

Drone Nextcloud

A Drone CI instance served repository pages to unauthenticated visitors, and the URL path could be replaced with arbitrary text reflected in the page.

rbcafe Follow

Originally disclosed on HackerOne

  • Disclosed after 27 days

Greetings,

On drone : https://drone.nextcloud.com

We observe this :

nc_d_0.png
nc_d_0.png From the original on HackerOne

I noticed that it's possible to alter the url to write what you want :

https://drone.nextcloud.com/rbcafe/settings/settings/badges

nc_d_1.png
nc_d_1.png From the original on HackerOne

In fact it could be anything :

https://drone.nextcloud.com/lonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnlonnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn/settings/settings/badges

nc_d_2.png
nc_d_2.png From the original on HackerOne

The default value of the url can be extracted with a google-dorking on drone.nextcloud.com : inurl:drone.nextcloud.com

Using this we can find new data :

https://drone.nextcloud.com/nextcloud/server/

nc_d_3.png
nc_d_3.png From the original on HackerOne

https://drone.nextcloud.com/nextcloud/server/4182/1

nc_d_4.png
nc_d_4.png From the original on HackerOne

Buttons Follow and restart are fully clickable, but there is no purpose because, I'm not logged In. Regarding the screenshot in the first observation (F152818), pages should be blocked and remains protected if the login is not valid. The paths should also remains protected from indexation.

Best regards @Rbcafe

The original report as published on HackerOne, by rbcafe. 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 application did not check authentication before serving repository and build pages, and it reflected the URL path into the page without validation.

Impact

An unauthenticated visitor could view repository pages and alter the URL path text shown; action buttons had no effect because they were not logged in.

What the attacker needed

No account needed

The fix

Pages and paths should require a valid login and should not be indexed by search engines.

How it was found

  1. Open the Drone instance without logging in.
  2. Change the repository name in the URL to arbitrary text.
  3. Observe the text appearing in the page.
  4. Use a search engine to find default repository paths.
  5. Open a repository page while logged out.

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.

A build server called Drone shows pages for code repositories. Here anyone could open those pages without an account, and part of the web address was shown on the page.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by rbcafe

View all

11 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.