Bypass Plan Restriction & Get 350$ Bounty
The platform restricted code coverage insights to Team plan subscribers, but an attacker could bypass this by sending a crafted API request to update organisation settings and set a flag to true. This allowed unauthorised access to a premium feature without paying.
Published on medium.com
{{media:0}}
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 API endpoint for updating organisation settings did not verify that the user's subscription plan permitted enabling the code coverage feature, allowing the setting to be changed directly.
Impact
An attacker could gain unauthorised access to premium code coverage insights without subscribing to the required Team plan.
What the attacker needed
A free account; ability to send API requests
How it was found
- Send a PUT request to the organisation settings endpoint with the codecovAccess parameter set to true.
- The server accepts the change and enables code coverage insights without requiring the Team plan.
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.
The service offered a paid feature (code coverage insights) only to customers on a higher plan. However, the server did not properly check whether the person making a settings change was actually allowed to enable that feature. By sending a special request to change a setting, anyone could turn on the paid feature for free.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.