Deleted SKU Causes Crash in User Manage Subscriptions page.
The Discord client crashes when a user opens the Manage Subscriptions page if any product SKU tied to their subscriptions has been deleted by the developer. This prevents the user from managing or cancelling any of their other subscriptions, leaving them stuck in recurring payments.
Originally disclosed on Bugcrowd
- Accepted in 26 days
- Fixed in 5 months
- Disclosed after 7 months
Summary by NeverCookFirst
A reproducible client crash occurs when a Discord user attempts to manage their subscriptions via the User Settings interface after any associated product SKU has been deleted by the developer. This affects users who have purchased products from verified applications and prevents them from accessing or managing any of their other subscriptions, effectively locking them into recurring payments. The issue is triggered by the client attempting to load metadata for a deleted SKU, resulting in a complete client crash and restart. This presents a denial-of-service condition within a critical billing-related feature.
What the report shows
The target is the Discord client's User Settings interface, specifically the section where a user manages their subscriptions. The researcher, NeverCookFirst, reports a reproducible client crash that occurs when a user opens that interface after a developer has deleted a product SKU associated with one of the user's purchases.
The sequence described in the report is short:
- A user buys a product from a verified application, creating an association between their account and that product's SKU.
- The developer of the application deletes that SKU.
- The user opens User Settings and goes to the subscription management page.
- The client tries to load metadata for the deleted SKU, fails, and crashes completely, forcing a restart.
The report states that the crash prevents the affected user from accessing or managing any of their other subscriptions, not only the one tied to the deleted SKU. The researcher characterises this as a denial-of-service condition inside a billing-related feature, and notes that it can effectively lock a user into recurring payments because they cannot reach the interface needed to cancel or change them.
The report gives no HTTP requests, payloads, commands or code, and no reproduction steps beyond the description above. It does not name specific endpoints, parameters, headers, client versions or error output. The platform records the severity as critical and a bounty of 4,000 USD; the report text itself does not describe a fix.
Root cause
The report points to the client loading metadata for a SKU that no longer exists and not handling the resulting failure. In other words, the subscription management view assumes every SKU referenced by the user's purchases is still present on the server, and when that assumption breaks the client does not degrade gracefully: it crashes rather than skipping or flagging the missing entry. The report does not identify the code-level cause; it only says the client fails to handle loading metadata for a deleted SKU.
Impact
The impact described is availability, not confidentiality or integrity. An affected user cannot open the subscription management page at all, so they cannot view, change or cancel any subscription, including ones unrelated to the deleted SKU. Because the page is the route to stopping recurring payments, the researcher frames the consequence as users being locked into payments they may want to end. The trigger requires a developer to delete a SKU that a given user has purchased.
How this kind of bug works
This is a client-side robustness failure in a data-driven view. Modern clients render lists from server-supplied objects: a subscription record references a product or SKU identifier, and the client joins that identifier against a catalogue to display a name, price or icon. When the catalogue entry disappears, the join returns nothing. Code that dereferences the result without checking, or that lets the exception propagate out of the render path, turns a single missing record into a failure of the entire screen. In some client architectures an unhandled exception in a rendering or state-update path is fatal to the process, which is why the outcome is a crash and restart rather than a blank field.
The bug class is common wherever references outlive their targets: deleted products in billing and subscription views, removed users in comment threads, archived projects in dashboards, revoked keys in credential lists. The general defences are defensive lookups (treat a missing reference as a first-class state and render a placeholder), error boundaries or equivalent isolation so one component's failure does not take down the app, and server-side design that either keeps tombstones for deleted records or filters dangling references out of responses.
How to test for it
A general method for this class:
- Identify views that join user-owned records against a shared catalogue: subscription pages, order history, dashboards listing integrations, admin panels listing assigned resources.
- Create the reference yourself where the target allows it: purchase or subscribe to a product, install an integration, get assigned a resource.
- Remove the target of the reference through a channel you control, such as a developer or seller account deleting the product, or an owner deleting the shared resource.
- Reload the affected view as the referencing user and observe. A positive result is a crash, a hard error page, an infinite loading state, or a view that can no longer be used at all, not merely a missing label.
- Confirm reproducibility across a fresh session and, where relevant, across client restarts, and check whether the failure blocks unrelated records in the same view.
Common false positives: a single field rendering as blank or "unknown" is graceful degradation, not a bug worth reporting; a stale cache that clears on refresh; a failure that only occurs in one browser or client build without a clear cause; and states that require the victim to take an unusual action first. Describe requests in terms of the view being loaded and the state change being made; the point is the sequence, not a specific payload.
How it is fixed
Standard fixes for this class:
- Treat a missing catalogue entry as an expected state in the client and render a placeholder or hide the row.
- Wrap list rendering in an error boundary so one bad record cannot crash the whole view or the process.
- On the server, either retain tombstones for deleted SKUs so references still resolve, or omit or annotate dangling references in the response.
- Add regression tests that load the subscription view with a reference to a deleted record.
Hunting notes
These bugs hide in any feature that joins per-user data to a global catalogue, especially billing, entitlements and integrations, because deletion of catalogue entries is routine and rarely tested against existing references. Recon signals include multi-tenant or marketplace features where one party can delete objects another party references, APIs that return identifiers the client must resolve separately, and views that mix several record types in one screen.
What happened, in plain words
Discord is a chat application that runs on your computer and in a browser. Besides chatting, it lets developers sell products through verified applications, and users can subscribe to those products, which means paying a recurring amount, for example every month. The Discord client has a User Settings screen where you can see and manage the subscriptions you have bought.
NeverCookFirst found that this screen can crash the whole Discord client. The crash happens when a developer deletes a product (a "SKU", explained below) that a user has already bought. The next time that user opens the subscription management page, the client tries to look up information about the deleted product, cannot find it, and shuts down completely, forcing a restart.
The sequence in the report is short:
- A user buys a product from a verified application. This links the user's account to that product's SKU.
- The developer of the application deletes that SKU.
- The user opens User Settings and goes to the subscription management page.
- The client tries to load information about the deleted SKU, fails, and crashes completely, forcing a restart.
The important part is that the crash does not only hide the one broken subscription. It takes down the whole page, so the affected user cannot see, change or cancel any of their other subscriptions either. The researcher calls this a denial-of-service condition inside a billing feature: the service (the subscription page) is made unavailable, not stolen from or altered. Because that page is the only route to stopping recurring payments, the user is effectively locked into payments they may want to end.
The report contains no HTTP requests, payloads, commands or code, and no reproduction steps beyond the description above. It does not name specific endpoints, parameters, headers, client versions or error messages. The platform records the severity as critical and a bounty of 4,000 USD. The report text itself does not describe a fix.
Why it happens
The report points to the client loading information about a SKU that no longer exists and not handling the failure. In plain terms, the subscription page assumes that every product referenced by a user's purchases is still present on the server. When that assumption breaks, the client does not skip the missing entry or show a placeholder: it crashes.
The report does not identify the code-level cause; it only says the client fails to handle loading information about a deleted SKU. So one unresolvable reference takes down the entire view. A useful comparison is a printed price list where one item has been removed: a careful shop assistant crosses that line out and carries on, while a careless one drops the whole folder and stops serving customers.
What the impact is
The impact described is availability, not confidentiality or integrity. An affected user cannot open the subscription management page at all, so they cannot view, change or cancel any subscription, including ones unrelated to the deleted SKU. Because the page is the route to stopping recurring payments, the researcher frames the consequence as users being locked into payments they may want to end.
The trigger requires a developer to delete a SKU that a given user has purchased.
In general, how this kind of bug works
This is a client-side robustness failure in a view built from data. Modern clients draw lists from objects supplied by a server: a subscription record points to a product or SKU identifier, and the client looks that identifier up in a catalogue to display a name, price or icon. When the catalogue entry disappears, the lookup returns nothing. Code that uses the result without checking, or that lets the error escape the drawing code, turns a single missing record into a failure of the whole screen. In some client designs an unhandled error in a rendering or state-update path is fatal to the process, which is why the outcome is a crash and restart rather than a blank field.
The bug class is common wherever references outlive their targets: deleted products in billing and subscription views, removed users in comment threads, archived projects in dashboards, revoked keys in credential lists. The general defences are defensive lookups (treat a missing reference as a normal state and render a placeholder), error boundaries or equivalent isolation so one component's failure does not take down the app, and server-side design that either keeps tombstones for deleted records or filters dangling references out of responses.
In general, how to test for it
A general method for this class:
- Identify views that join user-owned records against a shared catalogue: subscription pages, order history, dashboards listing integrations, admin panels listing assigned resources.
- Create the reference yourself where the target allows it: purchase or subscribe to a product, install an integration, get assigned a resource.
- Remove the target of the reference through a channel you control, such as a developer or seller account deleting the product, or an owner deleting the shared resource.
- Reload the affected view as the referencing user and observe. A positive result is a crash, a hard error page, an infinite loading state, or a view that can no longer be used at all, not merely a missing label.
- Confirm reproducibility across a fresh session and, where relevant, across client restarts, and check whether the failure blocks unrelated records in the same view.
Common false positives: a single field rendering as blank or "unknown" is graceful degradation, not a bug worth reporting; a stale cache that clears on refresh; a failure that only occurs in one browser or client build without a clear cause; and states that require the victim to take an unusual action first. Describe requests in terms of the view being loaded and the state change being made; the point is the sequence, not a specific payload.
In general, how it is fixed
Standard fixes for this class:
- Treat a missing catalogue entry as an expected state in the client and render a placeholder or hide the row.
- Wrap list rendering in an error boundary so one bad record cannot crash the whole view or the process.
- On the server, either retain tombstones for deleted SKUs so references still resolve, or omit or annotate dangling references in the response.
- Add regression tests that load the subscription view with a reference to a deleted record.
In general, where these bugs hide
These bugs hide in any feature that joins per-user data to a global catalogue, especially billing, entitlements and integrations, because deletion of catalogue entries is routine and rarely tested against existing references. Signals worth watching for include multi-tenant or marketplace features where one party can delete objects another party references, APIs that return identifiers the client must resolve separately, and views that mix several record types in one screen.
Glossary
- Client: the application installed on a user's device, here the Discord app, as opposed to the servers it talks to.
- Server: the remote computer that stores data and answers the client's requests.
- SKU: stock keeping unit, an identifier for a specific sellable product or version of it.
- Subscription: a recurring payment that keeps access to a product active until it is cancelled.
- Verified application: an application on the platform that has gone through the platform's verification process and can sell products.
- Metadata: descriptive information about an item, such as its name, price or icon.
- Denial-of-service (DoS): making a service unavailable to its users, for example by crashing it, rather than stealing or altering data.
- Availability: one of the three classic security goals; it means the service works when legitimate users need it.
- Confidentiality: keeping data secret from people who should not see it.
- Integrity: keeping data correct and unaltered by unauthorised parties.
- Client-side: happening in the application on the user's device rather than on the server.
- Robustness failure: a program breaking when it meets unexpected but legitimate input or state.
- Reference: a pointer from one record to another, such as a subscription pointing to a product identifier.
- Catalogue: the shared list of products the client looks identifiers up in.
- Null or not-found check: code that asks "did this lookup return nothing?" and handles that case instead of assuming success.
- Error boundary: a safety wrapper around part of a user interface so that a failure in one part does not bring down the whole screen or process.
- Exception: an error raised while a program runs; if nothing catches it, it can stop the program.
- Graceful degradation: when something is missing, the app shows a placeholder or skips it and keeps working.
- Tombstone: a marker left behind for a deleted record so that references to it can still be resolved.
- Dangling reference: a pointer to something that no longer exists.
- Regression test: an automated test that checks a fixed bug stays fixed.
- Reproduction steps: the exact sequence someone follows to make a bug happen again.
- Endpoint: a specific address on a server that the client sends requests to.
- Payload: the data sent in a request or delivered in a response.
- Header: extra information attached to an HTTP request or response, such as content type.
- HTTP request: a message a client sends to a server asking for something, such as a page or data.
- Bounty: a payment made by a company to a researcher who reports a valid security issue.
- Severity: a rating of how serious a bug is, here recorded as critical.
- False positive: a finding that looks like a bug but is not one in practice.