P1 Vulnerability by Bypassing the membership payment page
The website enforced membership payment checks only on the client side, so an attacker could bypass the payment page and access membership features without paying.
Published on medium.com
Today I want to showcase one of the most recent vulnerabilities which is related to the enforcement of server-side security on the client-side and why this is bad.
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.
What the report shows
The report is a short write-up about a vulnerability that the author frames as a failure to enforce server-side security, with the check left on the client side instead. The target is anonymised: the website is called example.com and users register at my.example.com. The author's first step is simply to register an account on the sign-up page.
The text as published stops there. It does not describe the membership payment page, the request that was tampered with, the parameter that was changed, the response that proved the bypass, or any fix, severity rating or bounty. No HTTP requests, payloads or commands appear in the report, so none can be reproduced here. The only concrete facts are the anonymised hostnames and the stated theme: a membership payment flow whose enforcement the author says lives on the client side.
Root cause
The report frames the issue as a failure to enforce security on the server side, with the check left on the client side. It does not describe the mechanism. When the payment or membership state is derived from client-controlled data, a user can present themselves as a paying member without completing payment.
Impact
The report gives no evidence of what a bypassed membership unlocks, and it does not claim any wider compromise. Treat the impact as limited to what the membership itself grants until proven otherwise.
How this kind of bug works
Payment and subscription flows have two sides: what the browser shows and what the server believes. A correct design treats the server as the only source of truth for entitlement. The client may display a price, a plan or a success screen, but the server must independently confirm that a payment succeeded, for example through a verified payment-provider callback or a signed webhook, before it grants the membership.
The bug class appears when that boundary is crossed. Typical variants include a client-side redirect to a "thank you" page that the server never checks, a hidden or disabled form field carrying the plan or price that the server accepts as-is, an API call that marks an account as premium based on a request parameter, or a client-side feature flag that hides paid content while the server still serves it to anyone who asks. The common thread is that the attacker controls the input that decides entitlement.
Defences are straightforward in principle: server-side verification of payment status with the payment provider, entitlement stored and checked server-side on every request for paid resources, prices and plan identifiers resolved from server-side records rather than from the request, and idempotent, authenticated webhooks for payment confirmation.
How to test for it
- Map the flow. Register an account, walk through the membership purchase as a normal user, and record every request in the proxy history: plan selection, checkout initiation, the return or callback URL, and any request that follows payment.
- Identify where entitlement is set. Look for requests that change account state after payment, such as a profile update, a plan field, a status flag, or a call to an internal endpoint that marks the account as a member.
- Test client-side trust. Replay the post-payment request without completing payment, or with the payment step skipped. Change plan or price values to cheaper or free options and see whether the server accepts them. Remove or alter hidden fields and see whether the server still grants the membership.
- Test the return path. Request the success or callback URL directly, without a real payment, and check whether the account becomes a member. Try replaying a callback with modified parameters.
- Confirm server-side state. Do not rely on the UI. Re-request a paid resource or an account-status endpoint and check whether the server actually treats the account as entitled.
A positive result is a server response that grants membership or serves paid content without a verified payment. Common false positives are a success page that renders but grants nothing server-side, a cached response, or a feature that is genuinely free. Always confirm with a fresh request to a protected resource.
How it is fixed
Entitlement must be decided on the server. Confirm payments with the payment provider before granting access, store membership state server-side, and check it on every request for paid content. Never accept prices, plan identifiers or membership flags from the client. Protect payment callbacks with signatures and authentication, and make them idempotent. Treat the client purely as a display layer.
Hunting notes
This bug class hides in checkout and subscription flows, trial sign-ups, upgrade and downgrade paths, coupon and referral handling, and any feature gated by a plan. Recon signals include client-side redirects after payment, plan or price values visible in request bodies, feature flags in JavaScript, and endpoints that set account status. To get a report accepted, show the before and after server state with a protected resource, keep the proof minimal and reproducible, and state clearly what the bypass grants.
What happened, in plain words
This is a short write-up about a website that sells memberships. The author anonymises the target: the site is called example.com, and users sign up at my.example.com. The first step described is simply registering an account on the sign-up page.
The author frames the bug as a failure to enforce security on the server side, with the check left on the client side instead. In everyday terms: a website has two halves. The browser (the client) is the part you see and click. The server is the computer behind the site that stores accounts, money and content. A membership is a paid feature, so the server should be the one deciding whether you paid. If the browser decides instead, or if the server simply believes a value the browser sends, a user can present themselves as a paying member without paying.
The published text stops after the sign-up step. It does not show the membership payment page, the request that was changed, the field that was edited, the response that proved the bypass, or any fix, severity rating or bounty. No HTTP requests, payloads or commands appear in the report, so there is nothing to copy here. The concrete facts are the two anonymised hostnames and the stated theme: a membership payment flow whose enforcement the author says lives on the client side.
Why that matters
A membership is a business rule: pay, and you get access. When the decision about payment is made in the browser, the rule can be rewritten by whoever controls the browser. The report does not describe what the bypass grants. The report gives no evidence of what a bypassed membership unlocks and does not claim any wider compromise, so the impact should be treated as limited to whatever the membership itself grants.
In general, how this kind of bug works
Payment and subscription flows have two sides: what the browser shows and what the server believes. A correct design treats the server as the only source of truth. The client may display a price, a plan or a success screen, but the server must independently confirm that a payment succeeded, for example through a verified callback from the payment provider, before it grants the membership.
The bug class appears when that boundary is crossed. Typical variants include:
- A client-side redirect to a "thank you" page that the server never checks.
- A hidden or disabled form field carrying the plan or price that the server accepts as-is.
- An API call that marks an account as premium based on a request parameter.
- A client-side feature flag that hides paid content while the server still serves it to anyone who asks.
The common thread is that the attacker controls the input that decides entitlement. Entitlement means the right to use a paid feature.
Defences are straightforward in principle: verify payment status with the payment provider on the server, store and check entitlement on the server on every request for paid resources, resolve prices and plan identifiers from server-side records rather than from the request, and protect payment callbacks with signatures and authentication.
In general, how to test for it
- Map the flow. Register an account, walk through the membership purchase as a normal user, and record every request in a proxy. A proxy is a tool that sits between your browser and the site and lets you read and replay the traffic. Record plan selection, checkout initiation, the return or callback URL, and any request that follows payment.
- Identify where entitlement is set. Look for requests that change account state after payment, such as a profile update, a plan field, a status flag, or a call to an internal endpoint that marks the account as a member.
- Test client-side trust. Replay the post-payment request without completing payment, or with the payment step skipped. Change plan or price values to cheaper or free options and see whether the server accepts them. Remove or alter hidden fields and see whether the server still grants the membership.
- Test the return path. Request the success or callback URL directly, without a real payment, and check whether the account becomes a member. Try replaying a callback with modified parameters.
- Confirm server-side state. Do not rely on the UI. Re-request a paid resource or an account-status endpoint and check whether the server actually treats the account as entitled.
A positive result is a server response that grants membership or serves paid content without a verified payment. Common false positives are a success page that renders but grants nothing server-side, a cached response, or a feature that is genuinely free. Always confirm with a fresh request to a protected resource.
In general, how it is fixed
Entitlement must be decided on the server. Confirm payments with the payment provider before granting access, store membership state server-side, and check it on every request for paid content. Never accept prices, plan identifiers or membership flags from the client. Protect payment callbacks with signatures and authentication, and make them idempotent, meaning that receiving the same callback twice does not grant anything twice. Treat the client purely as a display layer.
In general, where to look
This bug class hides in checkout and subscription flows, trial sign-ups, upgrade and downgrade paths, coupon and referral handling, and any feature gated by a plan. Signals worth watching for include client-side redirects after payment, plan or price values visible in request bodies, feature flags in JavaScript, and endpoints that set account status. To get a report accepted, show the before and after server state with a protected resource, keep the proof minimal and reproducible, and state clearly what the bypass grants.
Glossary
- Client: the browser and the page it runs, the part of a website you see and interact with.
- Server: the computer behind a website that stores accounts, payments and content and answers requests.
- Server-side enforcement: making a security decision on the server, where the user cannot change it.
- Client-side check: a decision made in the browser, which the user can inspect and alter.
- Request: the message a browser sends to a server, for example asking for a page or submitting a form.
- Response: the message the server sends back.
- Endpoint: a specific address on a server that accepts requests, such as a login or status URL.
- Parameter: a named value sent with a request, such as a plan name or a price.
- Hidden field: a form value not shown on screen but still sent to the server, which a user can change.
- Proxy: a tool placed between browser and site that records, inspects and replays traffic.
- Replay: sending a captured request again, possibly with changes.
- Callback / webhook: a message a payment provider sends to the site to confirm what happened.
- Signature: a cryptographic value that lets the receiver check a message really came from the expected sender.
- Idempotent: safe to process more than once with the same result.
- Entitlement: the right to use a paid feature or content.
- Feature flag: a switch, often in JavaScript, that turns a feature on or off in the browser.
- Business-logic vulnerability: a flaw in the rules of a feature, such as payment or membership, rather than in low-level code.
- Access-control vulnerability: a flaw that lets someone reach something they are not allowed to use.
- False positive: a result that looks like a bug but is not one.
- Cache: a stored copy of a response that may be served again without asking the server.
- Anonymised: with identifying details replaced, here by
example.comandmy.example.com.