Skip to content
Business logic Write-up Beginner

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.

Abhi Sharma Follow

Published on medium.com

Bounty$350 View original

{{media:0}}

Abhi Sharma, on medium.com

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

  1. Send a PUT request to the organisation settings endpoint with the codecovAccess parameter set to true.
  2. 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.

More by Abhi Sharma

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.