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.
- Disclosed after 27 days
Greetings,
On drone : https://drone.nextcloud.com
We observe this :

I noticed that it's possible to alter the url to write what you want :
https://drone.nextcloud.com/rbcafe/settings/settings/badges

In fact it could be anything :

The default value of the url can be extracted with a google-dorking on drone.nextcloud.com : inurl:drone.nextcloud.com
- https://drone.nextcloud.com/nextcloud/updater
- https://drone.nextcloud.com/nextcloud/server/settings/badges
Using this we can find new data :
https://drone.nextcloud.com/nextcloud/server/

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

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
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
- Open the Drone instance without logging in.
- Change the repository name in the URL to arbitrary text.
- Observe the text appearing in the page.
- Use a search engine to find default repository paths.
- 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.