$1,500 Bounty: Business Logic Flaw in Project Secrets Management
The platform's UI hid the secrets management section from Editor-level users and from free-tier projects, but the backend API did not enforce the same rules. An Editor on a free-tier project could send a crafted request directly to the secrets endpoint and create a secret that only Owners should be able to manage.
medium.com
Published on medium.com
Hi everyone, This time I want to share a Business Logic Vulnerability I found in a SaaS platform that allowed Editor-level users to bypass UI restrictions and directly add secrets to projects — something only Owners were supposed to do.
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 secrets API endpoint did not perform its own authorisation check and relied on the UI hiding the feature, so role and plan restrictions were never enforced server-side.
Impact
Editors could perform Owner-only actions and bypass free-tier limits, and a malicious editor could inject secrets that affect deployments, pipelines or configurations.
What the attacker needed
An Editor role on a project; the project is on a free-tier plan; ability to send requests directly to the API
The fix
The API should enforce the same role and plan restrictions as the UI, rejecting secret creation by Editors and on free-tier projects; the text says a fix was confirmed.
How it was found
- Create or access a free-tier project where you are assigned as an Editor.
- Observe that the Manage section is hidden in the UI.
- Intercept traffic with Burp Suite and send a crafted API request to the secrets endpoint.
- The server accepts the request and the secret is added.
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.
A website usually has two parts: the screens you click on (the UI) and the server behind it (the API). Here the screens correctly hid the secret-management area from lower-privileged users, but the server never checked who was asking, so anyone who sent the request by hand could still create secrets. This is a classic case of trusting the front end to enforce a rule that the back end must enforce itself.
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.