Skip to content
Business logic Write-up Intermediate

How I Found 3 Logic Bugs by Thinking Like a Developer

A collaborator retained access to premium CRM features after the owner's paid subscription expired, and the backend continued to process premium CRM API requests even after the UI blocked them. Additionally, a server-side XSS filter that stripped input to an empty string allowed bypassing required-field validation, letting a collaborator create products with empty titles.

moatymohamed897 Follow

Published on medium.com

Most bug bounty hunters jump between programs, hunting whatever category they’re comfortable with. But with some coding experience,

Mohamed Abdelmoatie (3at3ot), 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 backend did not re-check subscription status on each request and did not validate the post-filter value of required fields.

Impact

A collaborator could continue using premium CRM features and data after the owner's subscription ended, and could also create products with empty titles by bypassing required-field validation.

What the attacker needed

A paid account with CRM access; a second trial account as collaborator; the owner's plan expires or is downgraded

The fix

The backend should re-check subscription status on every request and validate required fields after any input filtering.

How it was found

  1. Create an account with a personal paid plan that includes CRM access.
  2. Invite another user (a trial account) as a collaborator to your CRM.
  3. Let the personal paid plan expire or downgrade it to free.
  4. Log in as the collaborator (trial user).
  5. Observe that the collaborator still has access to the CRM and its data.

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.

When a paid plan ends, the system should stop giving access to paid features. Here, the server kept letting a collaborator use the paid CRM even after the owner's plan expired, and it also accepted saved requests that the interface no longer showed. Separately, a filter meant to remove dangerous code turned a product title into an empty value, which got around a rule that titles cannot be empty.

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 moatymohamed897

View all

1 more disclosed report, 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.