CWE-602Spend & resource abuseSeverity · Medium

Plan limits enforced in the browser

When plan limits are checked only in the interface, a direct API call skips them. Customers on a small plan can then use features and seats they never paid for.

At a glance

Controls
CWE-602 · A04:2021 Insecure Design
Typical severityMedium
ReferenceCWE-602
OWASP Top 10A04:2021 Insecure Design

What it is

The interface hides a button or shows an upgrade prompt when a limit is reached. The API behind it accepts the request anyway. The limit exists only as a display rule.

An attacker reads the browser traffic and replays the request directly, or edits a plan flag in the client. AI-assisted tools read front-end code and API specs quickly, so hidden endpoints and flags are easy to find.

Where it hides

What a reviewer can look for in the code and in the behaviour, before anyone proves it.

  • Invite-member and add-seat endpoints
  • Create-project or create-workspace endpoints
  • Export and bulk download features
  • Feature flags read from the client or a token claim the client can change

How MATT tests it

The proof runs against the deployed product, on every release, whoever wrote the code.

  1. 01Sign in with a test account on the lowest plan and reach a limit in the interface.
  2. 02Send the same request straight to the API with the test account's session.
  3. 03Confirm whether the server creates the extra seat, project or export.
The rule, in plain English

Plan limits must be enforced on the server.

Executable check

as test user on a plan with 3 seats and 3 used: POST /v1/members expect: 402 or 403 expect: member count stays at 3 as test user on a plan without export: GET /v1/exports/full expect: 402 or 403

Every rule MATT holds →

What the fix looks like

  1. 01

    Check plan entitlements in the server handler for every limited action.

  2. 02

    Read the plan from the server's own records on each request.

  3. 03

    Keep limit checks in one shared service so new endpoints inherit them.

  4. 04

    Count usage atomically so parallel requests cannot pass the limit together.

A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02