Skip to content
IDOR Disclosed report Beginner

Authentication Bypass in Subscription Management Endpoint

The subscription management API endpoint lacked proper authentication and authorization checks, allowing an attacker to manipulate customer identifiers and access other users' billing information.

0hmz Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 3 days
  • Fixed in 4 days
  • Disclosed after 8 days

Summary by the program

A vulnerability was identified in the subscription management functionality that allows unauthorized access to customer billing information. The issue stems from insufficient authentication and authorization controls on an API endpoint, which could potentially be exploited to access sensitive customer data.

Technical Details:

The vulnerability affects the subscription management API endpoint Missing authentication requirements allow unauthorized access The issue is classified as an Insecure Direct Object Reference (IDOR) vulnerability Customer identifiers can be manipulated to access other users' data

Resolution:

The vulnerability has been promptly addressed and fixed by the development team.

The original report as published on HackerOne, by 0hmz. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What the report shows

The target is the subscription management functionality of lemlist, reached through the tweethunter.io asset. The report is short and is written as a summary by the program rather than as a step by step researcher narrative, so the exact requests the researcher sent are not published.

What the summary states is this:

  1. A vulnerability was identified in the subscription management functionality.
  2. The flaw allows unauthorised access to customer billing information.
  3. The cause is insufficient authentication and authorisation controls on an API endpoint.
  4. The issue is classified as an Insecure Direct Object Reference (IDOR).
  5. Customer identifiers can be manipulated to access other users' data.

The report does not name the endpoint path, the HTTP method, the parameter that carries the customer identifier, or the response body that was returned. It also does not include a reproduction sequence, so there is no request or payload to reproduce here.

The report states that the development team addressed and fixed the vulnerability. The report states that the development team addressed and fixed the vulnerability promptly. No bounty amount is given.

Root cause

The report points to two related mistakes on the same endpoint: authentication requirements were missing, and authorisation checks on the object being requested were absent or insufficient. In practice this means the endpoint accepted a request that identified a customer, and returned that customer's billing data without first establishing who was asking and without confirming that the caller was entitled to that particular customer record.

The report frames this as an IDOR, which is the object level half of the problem: the identifier supplied by the client is trusted as the key to the record. The summary mentions missing authentication requirements alongside the IDOR classification.

Impact

According to the report, an attacker could reach customer billing information belonging to other users by manipulating customer identifiers. The data is described as sensitive customer data. The report does not enumerate which fields were exposed, how many customers were affected, or whether the access was read only, so the practical scope beyond billing information should not be assumed.

How this kind of bug works

An IDOR appears when an application takes an identifier from the client, uses it to look up a record, and never checks that the record belongs to the caller. The identifier can live in the path, in a query string, in a JSON body, or in a header. The lookup succeeds because the identifier is valid; the failure is that validity was confused with entitlement.

Two conditions make it common. First, object identifiers are often sequential or otherwise guessable, so an attacker who can see one valid value can enumerate neighbours. Second, authorisation is frequently implemented in the wrong layer: a controller checks that a user is logged in, but the data access layer fetches by primary key with no tenant or owner predicate. When an endpoint is added later, for example for a billing integration or an internal tool, it may be mounted without the middleware that the rest of the application relies on, which is the pattern the report describes as missing authentication requirements.

The defences are straightforward in principle. Every request that touches a user owned object must resolve the caller's identity first, then scope the database query to that identity, for example by filtering on the owning account rather than fetching by identifier alone. Where an identifier must be shared, use an unguessable value and still verify ownership. Deny by default at the routing layer so that new endpoints inherit authentication unless explicitly exempted, and add automated tests that request another account's object and expect a rejection.

How to test for it

  1. Map the feature. Create two accounts on the target and exercise every part of the subscription and billing flow in both: viewing invoices, updating payment details, changing plans, cancelling. Record each request, paying attention to any value that looks like an account, customer, subscription or invoice identifier.
  2. Identify the identifier's location. Note whether it appears in the path, the query string, the body or a header, and whether it is numeric, a UUID, or an opaque string.
  3. Swap the identifier. With account A's session, replay the request using account B's identifier. Then repeat with no session at all, and with a session belonging to a third account that has no relationship to the object.
  4. Compare responses. A positive result is a response containing account B's data, or a state change applied to account B's object, while authenticated as A or as nobody. Status codes alone are unreliable; read the body.
  5. Test the edges. Try identifiers that do not exist, identifiers from a deleted account, and identifiers belonging to a different tenant in a multi tenant setup. Also try removing the identifier entirely to see whether the endpoint falls back to a default record.

Common false positives: the endpoint returns a generic success page with no real data; the data returned is public by design, such as plan pricing; the identifier is a signed or encrypted token that the server validates, so tampering produces a rejection rather than another user's record; or the response is cached from your own earlier request. Confirm by using a fresh session and a value you have never submitted before.

How it is fixed

Require authentication on the endpoint, ideally by mounting it behind the same middleware as the rest of the authenticated surface. Then enforce object level authorisation: resolve the caller from the session or token, load the object, and compare its owner or tenant against the caller before returning anything. Prefer scoping the query itself, so the database never returns a record the caller does not own. Return a generic not found or forbidden response rather than distinguishing between "does not exist" and "not yours". Finally, add regression tests that assert cross account access is refused, and audit other endpoints added around the same time for the same omission.

Hunting notes

This class concentrates in features that were bolted on: billing and subscription portals, invoice downloads, export jobs, notification preferences, team and seat management, and anything with a numeric or UUID identifier in the URL. Integrations and internal tooling are frequent offenders because they are often deployed on separate paths where the standard authentication middleware is not applied.

Useful recon signals include endpoints that return data for an identifier you supplied, API paths that differ in prefix from the main authenticated API, and JavaScript bundles that reference customer or subscription identifiers in client side calls. Comparing the response of an unauthenticated request against an authenticated one often reveals whether the endpoint is protected at all.

To make the report land, demonstrate cross account access with two accounts you control, show the exact request and the returned fields with other users' values redacted, and state clearly whether authentication was required. Avoid touching real customers beyond the minimum needed to prove the issue, and stop at the first confirmation.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

lemlist is the program named in this report. Part of running a service like that is managing subscriptions: who is on which plan, what they pay, and which card is on file. That subscription management feature is what this report is about, and it was reachable through the tweethunter.io asset.

A security researcher found that the part of the system responsible for subscriptions, an API endpoint, would hand over customer billing information to someone who should not have been able to see it. The report is written as a short summary by the program rather than as a step by step account from the researcher, so the exact requests that were sent are not published.

The summary states five things:

  1. A vulnerability was identified in the subscription management functionality.
  2. The flaw allows unauthorised access to customer billing information.
  3. The cause is insufficient authentication and authorisation controls on an API endpoint.
  4. The issue is classified as an Insecure Direct Object Reference (IDOR).
  5. Customer identifiers can be manipulated to access other users' data.

The report does not name the endpoint path, the HTTP method, the parameter that carries the customer identifier, or the response body that was returned. It also does not include a reproduction sequence, so there is no request or payload to reproduce here.

The report states that the development team addressed and fixed the vulnerability. The report states that the development team addressed and fixed the vulnerability promptly. No bounty amount is given.

The two mistakes behind it

The report points to two related mistakes on the same endpoint: authentication requirements were missing, and authorisation checks on the object being requested were absent or insufficient.

In practice this means the endpoint accepted a request that identified a customer, and returned that customer's billing data without first establishing who was asking and without confirming that the caller was entitled to that particular customer record.

The report frames this as an IDOR, which is the object level half of the problem: the identifier supplied by the client is trusted as the key to the record. The summary mentions missing authentication requirements alongside the IDOR classification.

What it meant

According to the report, an attacker could reach customer billing information belonging to other users by manipulating customer identifiers. The data is described as sensitive customer data. The report does not enumerate which fields were exposed, how many customers were affected, or whether the access was read only, so the practical scope beyond billing information should not be assumed.

In general, how this kind of bug works

An IDOR appears when an application takes an identifier from the client, uses it to look up a record, and never checks that the record belongs to the caller. The identifier can live in the path, in a query string, in a JSON body, or in a header. The lookup succeeds because the identifier is valid; the failure is that validity was confused with entitlement.

A useful comparison is a cloakroom. You hand in your coat and get a numbered ticket. If the attendant hands back whatever coat matches the number on your ticket without checking that the ticket is yours, then anyone who guesses a number walks away with someone else's coat. The number is a valid key to a real coat; it was never proof that the coat was yours.

Two conditions make this common. First, object identifiers are often sequential or otherwise guessable, so an attacker who can see one valid value can enumerate neighbours. Second, authorisation is frequently implemented in the wrong layer: a controller checks that a user is logged in, but the data access layer fetches by primary key with no tenant or owner predicate. When an endpoint is added later, for example for a billing integration or an internal tool, it may be mounted without the middleware that the rest of the application relies on, which is the pattern the report describes as missing authentication requirements.

The defences are straightforward in principle. Every request that touches a user owned object must resolve the caller's identity first, then scope the database query to that identity, for example by filtering on the owning account rather than fetching by identifier alone. Where an identifier must be shared, use an unguessable value and still verify ownership. Deny by default at the routing layer so that new endpoints inherit authentication unless explicitly exempted, and add automated tests that request another account's object and expect a rejection.

How to test for it

  1. Map the feature. Create two accounts on the target and exercise every part of the subscription and billing flow in both: viewing invoices, updating payment details, changing plans, cancelling. Record each request, paying attention to any value that looks like an account, customer, subscription or invoice identifier.
  2. Identify the identifier's location. Note whether it appears in the path, the query string, the body or a header, and whether it is numeric, a UUID, or an opaque string.
  3. Swap the identifier. With account A's session, replay the request using account B's identifier. Then repeat with no session at all, and with a session belonging to a third account that has no relationship to the object.
  4. Compare responses. A positive result is a response containing account B's data, or a state change applied to account B's object, while authenticated as A or as nobody. Status codes alone are unreliable; read the body.
  5. Test the edges. Try identifiers that do not exist, identifiers from a deleted account, and identifiers belonging to a different tenant in a multi tenant setup. Also try removing the identifier entirely to see whether the endpoint falls back to a default record.

Common false positives: the endpoint returns a generic success page with no real data; the data returned is public by design, such as plan pricing; the identifier is a signed or encrypted token that the server validates, so tampering produces a rejection rather than another user's record; or the response is cached from your own earlier request. Confirm by using a fresh session and a value you have never submitted before.

How it is fixed

Require authentication on the endpoint, ideally by mounting it behind the same middleware as the rest of the authenticated surface. Then enforce object level authorisation: resolve the caller from the session or token, load the object, and compare its owner or tenant against the caller before returning anything. Prefer scoping the query itself, so the database never returns a record the caller does not own. Return a generic not found or forbidden response rather than distinguishing between "does not exist" and "not yours". Finally, add regression tests that assert cross account access is refused, and audit other endpoints added around the same time for the same omission.

Where to look

This class concentrates in features that were bolted on: billing and subscription portals, invoice downloads, export jobs, notification preferences, team and seat management, and anything with a numeric or UUID identifier in the URL. Integrations and internal tooling are frequent offenders because they are often deployed on separate paths where the standard authentication middleware is not applied.

Useful recon signals include endpoints that return data for an identifier you supplied, API paths that differ in prefix from the main authenticated API, and JavaScript bundles that reference customer or subscription identifiers in client side calls. Comparing the response of an unauthenticated request against an authenticated one often reveals whether the endpoint is protected at all.

To make the report land, demonstrate cross account access with two accounts you control, show the exact request and the returned fields with other users' values redacted, and state clearly whether authentication was required. Avoid touching real customers beyond the minimum needed to prove the issue, and stop at the first confirmation.

Glossary

  • API endpoint: a specific address on a server that a program can send a request to, in order to read or change data.
  • Authentication: proving who you are, for example by logging in with a password or presenting a session cookie.
  • Authorisation: deciding what an already identified user is allowed to do or see.
  • Billing information: data about how a customer pays, such as plan and payment details.
  • Cookie: a small piece of data a website stores in your browser and sends back with each request, often used to keep you logged in.
  • Critical severity: the highest rating a program typically assigns to a finding, used for issues with severe consequences.
  • Customer identifier: a value that names a particular customer record, such as a number or a long random string.
  • Data access layer: the part of an application that talks to the database and fetches records.
  • Deny by default: a design where access is refused unless it has been explicitly allowed.
  • IDOR (Insecure Direct Object Reference): a bug where an application uses an identifier supplied by the client to fetch a record without checking that the client is allowed to see that record.
  • Middleware: code that runs on every request before it reaches the main handler, often used to check login state.
  • Multi tenant: a setup where one application serves many separate organisations, each of which must only see its own data.
  • Primary key: the unique value that identifies a row in a database table.
  • Query string: the part of a URL after the question mark, carrying values such as identifiers.
  • Regression test: an automated test that checks a fixed bug stays fixed.
  • Request: a message a browser or program sends to a server asking for something.
  • Response: the message the server sends back, containing data or a status code.
  • Session: the server's record of a logged in user, usually referenced by a cookie or token.
  • Status code: a number in a response, such as 200 or 403, indicating broadly what happened.
  • Token: a value used in place of a password to prove identity, often sent in a header.
  • UUID: a long, practically unique identifier, usually written as groups of hexadecimal characters.
  • Vulnerability: a weakness in software that can be used to make it behave in ways its owners did not intend.

More from lemlist

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.