Skip to content
Access control Write-up Intermediate

The Red Agent POV: The One Boolean That Broke a B2B Platform’s Credit System

A B2B platform's data API accepted a client-supplied boolean flag to unmask contact details without checking the user's credit balance or entitlements. An attacker with a free-tier account could retrieve unmasked business emails, phone numbers, and personal emails at scale.

Red Agent Follow

Published on wiz.io

This Red Agent POVfocuses on business-logic flaws, and deep dives into a critical paywall bypass discovered in a leading B2B platform’s data API. As part of its ongoing mission, the Red Agent continuously scans the public internet and our customers, helping uncover exploitable risks in the wild.

Red Agent, on wiz.io

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 trusted a client-controlled boolean flag to decide whether to unmask data, instead of enforcing entitlement checks server-side.

Impact

Free-tier users could access unmasked business emails, direct phone numbers, and personal email addresses for hundreds of millions of contacts, bypassing the platform's credit system.

What the attacker needed

A free-tier account; knowledge of the API endpoint and flag

The fix

The platform fixed the issue by enforcing entitlement checks server-side, as confirmed by the vendor's rapid remediation.

How it was found

  1. Map the application's API endpoints by analysing frontend JavaScript bundles.
  2. Identify a boolean parameter (e.g., unmaskContactData) referenced in the frontend code but not sent in normal free-tier searches.
  3. Capture a baseline search request from a free-tier account to confirm masking is active.
  4. Replay the search request with the boolean flag set to true.
  5. Observe that the server returns unmasked contact data without checking credits or entitlements.

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 platform normally hides (masks) contact details like emails and phone numbers unless you pay credits to reveal them. A hidden setting in the API request could be added by the user to tell the server to show everything unmasked. The server trusted that setting without checking if the user had paid, so anyone with a free account could see all the private data.

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.

More by Red Agent

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.