Bypassing a Desktop App’s Paywall Without Paying a Cent
The desktop app's subscription gate was enforced only in the frontend routing, while the backend onboarding procedure did not check entitlement. An attacker could invoke the onboarding procedures directly to reach the full inbox without a subscription.
Published on gauravkdeore.medium.com
Cybersecurity
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.
Context
The target is a commercial desktop application built on Electron, with a JavaScript renderer talking to its main process and backend over tRPC. The product gates its inbox behind a subscription: a new user signs in, connects a mailbox, and is sent to a plan selection screen before the inbox becomes available. The paid tier described in the write-up is Plus at $20/month with a 7-day trial, and a credit card is required to start it.
The researcher, Gaurav Kailas Deore, found that this gate was enforced only in the renderer's routing logic. The backend reported that enforcement was switched off, and the onboarding completion procedure did not check entitlement on its own. The result was full access to the inbox without a subscription or a trial. The company and application are redacted in the write-up.
Setup
The preconditions were modest:
- Install the desktop application (the installer is referred to as
[Redacted].exe). - Sign in with Google.
- Connect a mailbox.
No special account, role or paid plan was needed. The tools were the application itself, Chrome DevTools attached over the remote debugging protocol, and a small JavaScript proof of concept the researcher named full-bypass.js. The write-up does not give application or Electron versions.
Finding it
After connecting the mailbox, the application redirected to:
#/onboarding?entry=plan
and displayed the message that the free plan was not yet available in the user's region. Inspecting the billing.getCountryPolicy response showed:
{
"freePlan": "off",
"trial": "available"
}
Only the Plus plan was offered: $20/month, 7-day trial, credit card required. That prompted the central question: is the backend actually enforcing the subscription, or is the inbox merely hidden behind a client-side route?
To answer it, the researcher launched the application with remote debugging enabled:
[Redacted].exe --remote-debugging-port=9222
and attached DevTools to:
http://[redacted]:9222
This gave access to the renderer context, including window.electronTRPC, the IPC bridge the renderer uses to reach the Electron main process and the backend. Tracing the onboarding flow through that bridge exposed two responses that did not agree.
From auth.me:
{
"accessGranted": true,
"planRequired": true
}
From billing.getStatus:
{
"accessAllowed": true,
"enforcementEnabled": false,
"state": "free",
"subscription": null
}
The authentication response said a plan was required, while the billing service said enforcement was disabled. The frontend function OnboardingEntryState.resolve() trusted planRequired: true and redirected the user to the subscription screen, but the onboarding completion procedure did not independently enforce the same restriction. The paywall was a display decision, not an authorisation check.
Exploitation
Step 1: enumerate the onboarding procedures
Through the Electron IPC bridge the researcher identified the procedures involved in onboarding:
accountsV2.listonboarding.prepareLaunchonboarding.completeauth.markDesktopOnboardingCompletedonboarding.confirmArchiveSetup
These are the onboarding procedures the researcher found exposed through the Electron IPC bridge. Because they are reachable from the renderer context, they can be invoked directly, without the UI that normally sequences them.
Step 2: drive onboarding directly
The proof-of-concept script full-bypass.js completed onboarding without ever passing through the subscription screen. It performed five actions:
- Retrieve the active account.
- Prepare the onboarding session.
- Confirm the archive configuration.
- Complete onboarding through the application procedure.
- Update the desktop onboarding completion state.
The write-up does not include the script's source, so the exact payloads for each call are not shown here.
Step 3: observe the result
The application immediately opened the inbox at:
/workspace/ws-lu89vg32/inbox?tab=inbox
Checking billing.getStatus again still returned:
{
"state": "free",
"subscription": null
}
So this was not a subscription upgrade or a billing glitch: the account remained on the free state with no subscription, yet the full desktop inbox was reachable. The gap was in entitlement enforcement, not in the payment flow.
Step 4: make the bypass survive a restart
On restart, OnboardingEntryState.localEntry called isPlanRequired() again and sent the user back to the subscription screen. To test local persistence, the researcher turned to the compiled Electron resources, specifically:
resources/app.asar
Inside the archive, the relevant file was:
out/main/index-CyDOa0Tg.mjs
and the relevant function contained:
return store$9.get(planRequiredKeyForUser(userId), false);
For the local test, the return behaviour was changed to:
return false;
The replacement was padded so the patched region kept the original 50-byte length. The application did not effectively verify the modified ASAR payload at startup. After the change, launching the application normally opened the inbox instead of the subscription screen.
The researcher is explicit about the limit: the ASAR modification changed local routing behaviour only. It did not create a valid subscription and did not change the backend billing state.
Step 5: probe the regional policy mismatch
While looking at regional policy, the researcher found a second inconsistency. Normal navigation to:
#/onboarding?entry=plan
showed only the Plus subscription. Manually changing the URL hash to:
#/onboarding
rendered an Individual plan with a Free forever card and an active Continue button, despite the policy response saying:
{
"freePlan": "off"
}
Pressing Continue made the application attempt onboarding.prepareInbox. The request failed after roughly 10 seconds with:
Your inbox is not available yet. Please try again.
So the regional onboarding interface and the backend workflow disagreed with each other. The backend refused this path, which underlines the point: the frontend's behaviour tells you little about what the backend will authorise.
Root cause
Two issues combined.
Client-side access control. The frontend relied on OnboardingEntryState.resolve() to redirect users to the subscription screen. Client-side routing is not a security boundary: users can inspect and modify their local application environment, as the DevTools session and the ASAR patch both show.
Missing backend entitlement validation. The backend returned accessAllowed: true with enforcementEnabled: false, state: "free" and subscription: null, and onboarding.complete did not independently enforce the subscription requirement. With no active subscription, onboarding still completed and access was granted without satisfying the intended billing requirements.
The ASAR integrity gap is a contributing factor rather than the core flaw: the application did not effectively verify the packaged payload at startup, so the local routing change persisted. The ASAR patch only affected local routing; the backend billing state was unchanged.
Impact
An attacker with the desktop application installed could reach the full inbox without paying for Plus or activating the trial. The conditions were a signed-in account with a connected mailbox on the tested application. The account's billing state stays free with no subscription, so this is access to premium functionality, not a fraudulent subscription record. The write-up does not describe access to other users' data or any server-side compromise.
Fix
The researcher's recommendations, as given:
- Enforce subscription checks server-side: critical procedures must independently validate subscription and trial eligibility.
- Validate access during application bootstrap: the desktop application should perform authoritative entitlement checks before granting access to protected resources.
- Never trust client-side state: values such as
planRequired,accessGrantedandisPlanRequired()must not be treated as authoritative security controls. - Align regional billing policies: subscription availability, onboarding routes, free-plan eligibility and backend validation should follow consistent rules.
- Implement integrity checks: Electron applications should consider integrity verification for packaged resources as an additional defensive measure, though integrity checks cannot replace backend authorisation.
It records that the finding was acknowledged and a bounty awarded.
Variants to test
- Direct invocation of onboarding or checkout procedures. On another Electron app, attach DevTools to the renderer and call the exposed tRPC procedures that finish onboarding or provisioning directly, skipping the plan screen.
- Compare auth and billing responses. Look for a pair like
auth.meandbilling.getStatuswhere one says a plan is required and the other says enforcement is off. - Hash and route manipulation. Change the route hash to reach alternate onboarding or plan variants, as with
#/onboardingversus#/onboarding?entry=plan. - ASAR patching for persistence. Extract
resources/app.asar, locate the function that decides whether a plan is required, and patch its return value while keeping the byte length. - Regional policy consistency. Compare
billing.getCountryPolicyoutput with what the UI renders and what the backend accepts.
Disclosure timeline
| Date and time | Event |
|---|---|
| Nov 20, 2026, 10:00 PM | Vulnerability reported to security@[redacted]. |
| Nov 20, 2026, 10:09 PM | Acknowledgment received from the security team. |
| Nov 20, 2026, 11:00 PM | Follow-up details submitted covering the regional policy mismatch. |
| Nov 24, 2026 | Bounty payout confirmed. |
The bounty amount is shown in the write-up as $xxx and is not disclosed. The finding was acknowledged and a bounty awarded for the plan-gate bypass.
What happened, in plain words
A company sells a desktop program that manages your email inbox. You can install it for free, but to actually see your inbox you are supposed to pay for a subscription called Plus, which costs $20 a month and comes with a 7-day free trial. To start the trial you have to give a credit card.
A security researcher named Gaurav Kailas Deore installed the program, signed in, connected a mailbox, and was shown the payment screen like everyone else. Then he looked under the bonnet. He found that the program's own code was the only thing standing between him and the inbox: the screen that asks for money was just a page the program chose to show, and the company's servers, which are the part a user cannot edit, were not actually checking whether he had paid. By calling the program's internal functions directly, he got into the full inbox without a subscription and without starting a trial. He also edited one of the program's local files so that the trick survived a restart.
He reported it responsibly, the company acknowledged it, and he was paid a bounty. The company and the application are hidden in his write-up, so we do not know who they are.
A few words you will need before we start:
- Desktop application: a program you install on your own computer, as opposed to a website you open in a browser. Examples are Slack, Spotify or a mail client.
- Electron: a popular toolkit for building desktop applications using the same ingredients as a website (HTML, CSS and JavaScript). Many well-known desktop apps are Electron apps. The catch is that an Electron app contains a lot of readable, editable code on your own machine.
- Paywall: the screen or rule that stops you using a paid feature until you pay.
- Subscription: a recurring payment that unlocks a service, here $20 per month.
- Trial: a short free period (here 7 days) that normally turns into a paid subscription afterwards.
- Backend: the company's servers, where the real data lives and where the real decisions should be made. You cannot edit the backend from your laptop.
- Frontend: everything that runs on your own computer, the screens and buttons and the code behind them. You can edit the frontend.
- Entitlement: simply whether your account is allowed to use a feature. "Entitlement enforcement" means actually checking that permission before handing over the data.
The setup: stuck at "Choose Your Plan"
The researcher did what any new customer would do:
- He installed the desktop application. The installer is referred to in the write-up as
[Redacted].exe. - He signed in using Google, the usual "Sign in with Google" button.
- He connected a mailbox.
No special account, no employee access, no paid plan. Just a normal user.
Immediately after connecting the mailbox, the application sent him to this address inside the app:
#/onboarding?entry=plan
What is that? Desktop apps built with Electron often show screens using web-style addresses. The part after the # is a route: a label telling the app which screen to display. onboarding means the setup wizard, entry=plan means "you arrived here to pick a plan". Think of it like a page number in a book: the app reads the number and turns to that page.
The app displayed a message saying the free plan was not yet available in his region. That is a common commercial practice: the same product offers different plans in different countries.
To understand why, he looked at the answer the app received from one of its own requests, billing.getCountryPolicy. A request here is the app asking the company's server a question; the response is the server's answer. The response was:
{
"freePlan": "off",
"trial": "available"
}
Line by line:
- The outer braces
{ }wrap a bundle of named values, called JSON. JSON is just a text format for structured data, like a very tidy shopping list. "freePlan": "off"says the free plan is switched off for this country."trial": "available"says a trial can be started.
So the app offered only Plus: $20 per month, a 7-day trial, credit card required.
That raised the question that drives the whole story: is the company's server really checking that you paid, or is the app merely hiding the inbox behind a screen? Hiding something is not the same as locking it. A shop that puts the expensive watch behind a curtain has not locked the cabinet.
Digging into the Electron renderer
To answer that question, the researcher needed to see the app's insides. Electron apps are split into two parts:
- The main process, which does privileged things like reading files and starting windows.
- The renderer, which draws the screens. It is essentially a browser tab running the app's interface.
Because the renderer is a browser engine, you can attach the same developer tools that Chrome uses on websites, called Chrome DevTools. DevTools is the panel you open in a browser with F12: it shows the page's code, its network requests and its stored data. It is a legitimate, built-in tool, not a hacking program.
To allow DevTools to connect, he started the application with a special switch:
[Redacted].exe --remote-debugging-port=9222
Line by line:
[Redacted].exeis the application's program file on Windows.--remote-debugging-port=9222is an instruction, called a command-line flag, telling the app to open a small local doorway on port 9222. A port is a numbered channel on a computer, like an extension number on a phone system. Port 9222 is the conventional one for this kind of debugging.
He then connected DevTools to:
http://[redacted]:9222
Line by line:
http://is the ordinary web protocol.[redacted]is the special address that always means "this same computer". It is called localhost. Nothing left the machine.:9222is the port opened by the flag above.
This gave him access to the renderer's context: the live environment of the running app, including its variables and functions. Among them was:
window.electronTRPC
What is that? In a browser, window is the global object that holds everything the page can use. electronTRPC is an object the app placed there. tRPC is a framework that lets a frontend call functions on a backend almost as if they were local functions. The name stands for TypeScript Remote Procedure Call. "Remote procedure call" just means "run a function that lives somewhere else".
IPC stands for Inter-Process Communication: the way the renderer and the main process talk to each other inside one computer. So window.electronTRPC is the bridge the screens use to ask the main process, and through it the backend, to do things. Think of it as the waiter in a restaurant: you do not walk into the kitchen, you give your order to the waiter, and the waiter carries it back and forth.
While tracing the onboarding flow through that bridge, he noticed two answers that did not agree with each other.
From auth.me ("tell me about the signed-in user"):
{
"accessGranted": true,
"planRequired": true
}
Line by line:
"accessGranted": truesays access has been granted."planRequired": truesays a paid plan is required.
Those two lines contradict each other in spirit: you are allowed in, but you need a plan.
From billing.getStatus ("tell me the billing situation"):
{
"accessAllowed": true,
"enforcementEnabled": false,
"state": "free",
"subscription": null
}
Line by line:
"accessAllowed": truesays access is allowed."enforcementEnabled": falsesays the rule that would enforce payment is switched off. This is the key line."state": "free"says the account is on the free tier."subscription": nullsays there is no subscription at all.nullmeans "nothing".
So the login service said a plan was required, while the billing service said enforcement was disabled. The app's own code, a function called OnboardingEntryState.resolve(), believed the planRequired: true part and redirected the user to the subscription screen. But the procedure that actually finishes onboarding, onboarding.complete, did not check the same rule for itself.
A procedure in tRPC is simply a named function the frontend is allowed to call on the backend, such as billing.getStatus or onboarding.complete. The paywall was a display decision, not an authorisation check. Authorisation means deciding whether someone is allowed to do something; displaying a screen is not a decision, it is decoration.
The bypass: skipping checkout through tRPC
Now he looked at which procedures the app exposes through the Electron bridge during onboarding. He found these:
accountsV2.listonboarding.prepareLaunchonboarding.completeauth.markDesktopOnboardingCompletedonboarding.confirmArchiveSetup
These are the onboarding procedures the researcher found exposed through the Electron bridge. The important point is that they are reachable from the renderer, which means they can be called directly, without the screens that normally put them in order. If the waiter will take any order you shout, you do not need the menu.
He wrote a small proof-of-concept script, which he named full-bypass.js. A proof of concept (PoC) is a minimal demonstration that a flaw is real, not just theoretical. The script completed onboarding without ever passing through the subscription screen. It did five things:
- Retrieve the active account.
- Prepare the onboarding session.
- Confirm the archive configuration.
- Complete onboarding through the application procedure.
- Update the desktop onboarding completion state.
In plain terms: it asked "who am I?", set up the setup wizard, confirmed a setting, told the app "setup is finished", and recorded that the desktop setup was done. The write-up does not include the script's source, so the exact payloads for each call are not shown.
The result was immediate. The application opened the inbox at:
/workspace/ws-lu89vg32/inbox?tab=inbox
Line by line:
/workspace/ws-lu89vg32/is a folder path inside the app's own storage, where this workspace lives.inboxis the inbox screen.?tab=inboxis a parameter selecting the inbox tab. A parameter is an extra piece of information attached to an address, after the?.
Even more telling, checking billing.getStatus again still returned:
{
"state": "free",
"subscription": null
}
Line by line:
"state": "free"says the account is still on the free tier."subscription": nullsays there is still no subscription.
So this was not a subscription upgrade and not a billing glitch. The account stayed free with no subscription, yet the full desktop inbox was reachable. The gap was in entitlement enforcement, not in the payment flow. In other words, the door opened but the till never rang.
Making the bypass persistent: patching app.asar
There was one remaining problem. After restarting the application, a function called OnboardingEntryState.localEntry checked isPlanRequired() again and sent the user back to the subscription screen. The trick worked for one session only.
To test whether it could survive a restart, he turned to the application's compiled resources. Electron apps bundle their code into an archive file with the extension .asar. Think of an ASAR file as a sealed envelope full of the app's JavaScript: it is a single file, but inside it are many files. The relevant archive was:
resources/app.asar
Line by line:
resourcesis the folder next to the application's program file where packaged assets live.app.asaris the archive holding the app's code.
Inside the archive, the relevant file was:
out/main/index-CyDOa0Tg.mjs
Line by line:
out/main/is a folder for compiled output belonging to the main process.index-CyDOa0Tg.mjsis a JavaScript file. The random-looking part is a content hash, a short fingerprint of the file's contents, used to tell versions apart..mjsis a JavaScript module file.
Inside that file, the relevant function contained:
return store$9.get(planRequiredKeyForUser(userId), false);
Line by line:
returnmeans "hand back this value to whoever called me".store$9.get(...)reads a stored setting.store$9is the name of a storage object; the$9is just part of a generated name.planRequiredKeyForUser(userId)builds the name of the setting for this particular user, so each user has their own entry., falseis the default: if nothing is stored, assume "no plan required".
For the local test, he changed the return behaviour to:
return false;
Line by line:
return false;means "always answer no, a plan is not required", no matter what is stored.
One subtlety: the replacement was padded so the patched region kept the original 50-byte length. Why does that matter? A byte is a unit of digital storage; a short piece of text takes a certain number of bytes. If you delete characters, everything after them shifts, and some programs notice the shift. Keeping the same length avoids that. It is like replacing a word in a sentence with another word of exactly the same length so the layout does not move.
The application did not effectively verify the modified ASAR payload during startup. In other words, it never checked whether its own envelope had been opened and resealed. After the change, launching the application normally opened the inbox instead of the subscription screen.
The researcher is explicit about the limit: the ASAR modification changed local routing behaviour only. It did not create a valid subscription and did not change the backend billing state. He had made his own copy of the app skip a screen; he had not made the company believe he had paid.
The regional twist
While looking at the regional policy, he found a second inconsistency. Normal navigation to:
#/onboarding?entry=plan
showed only the Plus subscription. Manually changing the URL hash to:
#/onboarding
rendered an Individual plan with a Free forever card and an active Continue button, even though the policy response said:
{
"freePlan": "off"
}
Line by line:
So the interface offered a free plan that the policy said did not exist. The # part of the address is the hash, the fragment that tells a single-page app which screen to show. Changing it by hand is as easy as editing text in the address bar, and the app trusted it.
He pressed Continue. The application attempted to run a procedure called onboarding.prepareInbox. The request failed after roughly 10 seconds with:
Your inbox is not available yet. Please try again.
Line by line:
- This is the error message the app displayed when the backend refused the request.
So the regional onboarding interface and the backend workflow disagreed with each other. This time the backend said no, which underlines the point: the frontend's behaviour tells you very little about what the backend will authorise. A form on a website can look perfectly happy while the server behind it is rejecting every submission.
Root cause
Two issues combined.
Client-side access control. The frontend relied on OnboardingEntryState.resolve() to redirect users to the subscription screen. Client-side routing is not a security boundary: users can inspect and modify their local application environment, as the DevTools session and the ASAR patch both show. A security boundary is a line that an attacker cannot cross; a line drawn inside the attacker's own computer is not one.
Missing backend entitlement validation. The backend returned accessAllowed: true with enforcementEnabled: false, state: "free" and subscription: null, and onboarding.complete did not independently enforce the subscription requirement. With no active subscription, onboarding still completed and access was granted without satisfying the intended billing requirements.
The ASAR integrity gap is a contributing factor rather than the core flaw: the application did not effectively verify the packaged payload at startup, so the local routing change persisted. The ASAR patch only affected local routing; the backend billing state was unchanged.
Impact
An attacker with the desktop application installed could reach the full inbox without paying for Plus or activating the trial. The conditions were a signed-in account with a connected mailbox on the tested application. The account's billing state stays free with no subscription, so this is access to premium functionality, not a fraudulent subscription record. The write-up does not describe access to other users' data or any server-side compromise.
Fix
The researcher's recommendations, as given:
- Enforce subscription checks server-side: critical procedures must independently validate subscription and trial eligibility.
- Validate access during application bootstrap: the desktop application should perform authoritative entitlement checks before granting access to protected resources.
- Never trust client-side state: values such as
planRequired,accessGrantedandisPlanRequired()must not be treated as authoritative security controls. - Align regional billing policies: subscription availability, onboarding routes, free-plan eligibility and backend validation should follow consistent rules.
- Implement integrity checks: Electron applications should consider integrity verification for packaged resources as an additional defensive measure, though integrity checks cannot replace backend authorisation.
The write-up does not say which of these the vendor implemented. It records that the finding was acknowledged and a bounty awarded.
Variants to test
- Direct invocation of onboarding or checkout procedures. On another Electron app, attach DevTools to the renderer and call the exposed tRPC procedures that finish onboarding or provisioning directly, skipping the plan screen.
- Compare auth and billing responses. Look for a pair like
auth.meandbilling.getStatuswhere one says a plan is required and the other says enforcement is off. - Hash and route manipulation. Change the route hash to reach alternate onboarding or plan variants, as with
#/onboardingversus#/onboarding?entry=plan. - ASAR patching for persistence. Extract
resources/app.asar, locate the function that decides whether a plan is required, and patch its return value while keeping the byte length. - Regional policy consistency. Compare
billing.getCountryPolicyoutput with what the UI renders and what the backend accepts.
Disclosure timeline
| Date and time | Event |
|---|---|
| Nov 20, 2026, 10:00 PM | Vulnerability reported to security@[redacted]. |
| Nov 20, 2026, 10:09 PM | Acknowledgment received from the security team. |
| Nov 20, 2026, 11:00 PM | Follow-up details submitted covering the regional policy mismatch. |
| Nov 24, 2026 | Bounty payout confirmed. |
The bounty amount is shown in the write-up as $xxx and is not disclosed. The finding was acknowledged and a bounty awarded for the plan-gate bypass.
Glossary
- ASAR: Electron's archive format that bundles an app's files into a single
.asarfile. - Authorisation: deciding whether a user is allowed to perform an action or see data.
- Backend: the company's servers, where data lives and where security decisions should be made.
- Bounty: a reward paid by a company for a responsibly reported security flaw.
- Byte: a unit of digital storage; a short piece of text takes a certain number of bytes.
- Chrome DevTools: the developer panel built into Chrome and other Chromium-based browsers, showing code, network requests and stored data.
- Client-side: running on the user's own computer, as opposed to on the company's servers.
- Command-line flag: an extra instruction added after a program's name when starting it.
- Content hash: a short fingerprint of a file's contents, used to tell versions apart.
- Electron: a toolkit for building desktop apps with web technology (HTML, CSS, JavaScript).
- Entitlement: whether an account is allowed to use a particular feature.
- Frontend: the screens and code that run on the user's own computer.
- Hash (URL): the part of an address after
#, used by single-page apps to choose a screen. - IPC: Inter-Process Communication; how parts of one program talk to each other.
- JSON: a text format for structured data, made of names and values in braces.
- Localhost: the address
[redacted], meaning "this same computer". - Main process: the privileged part of an Electron app that handles files and windows.
- Parameter: an extra piece of information attached to an address, after the
?. - Paywall: the screen or rule that blocks a paid feature until payment.
- Port: a numbered channel on a computer, like an extension number on a phone system.
- Proof of concept (PoC): a minimal demonstration that a flaw is real.
- Procedure: in tRPC, a named function the frontend is allowed to call on the backend.
- Renderer: the part of an Electron app that draws the screens, essentially a browser tab.
- Request / response: a question sent to a server and the answer it sends back.
- Route: a label telling an app which screen to display.
- Security boundary: a line an attacker cannot cross; a line inside the attacker's own computer is not one.
- Subscription: a recurring payment that unlocks a service.
- Trial: a short free period that normally turns into a paid subscription.
- tRPC: a framework that lets a frontend call backend functions almost as if they were local.
- Vulnerability: a weakness in software that lets someone do something the owner did not intend.