My First Valid Bug: A Broken Object Level Authorization (BOLA) in Customer API
An authenticated API endpoint accepted a customer identifier from the URL without checking it belonged to the logged-in user. An attacker with any account could dismiss another customer's in-product popup notification.
Published on medium.com
Bug Bounty
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
This is the story of a first valid bug bounty report: a Broken Object Level Authorization (BOLA) vulnerability found on a public Vulnerability Disclosure Program (VDP) on HackerOne. The report does not name the program or the organisation behind it.
The affected feature is a family of authenticated API endpoints under the path /api/customer/{customerId}/generic-popup/.../dismiss-generic-popup. They let a logged-in landlord dismiss an in-product popup notification tied to their account. The customerId is taken from the URL path, so the client controls which customer object the operation is applied to.
Setup
The researcher used two separate accounts that they fully controlled, referred to as Account A and Account B. The only tooling mentioned is Burp Suite. No versions, headers, request bodies or authentication mechanism details are given in the report.
Finding it
While mapping out the application's authenticated API surface, the researcher came across the dismiss-generic-popup endpoint family. The customerId in the URL path stood out as exactly the kind of user-controlled identifier worth testing for object-level authorization flaws.
The question posed was simple: does the backend actually verify that the authenticated session's customerId matches the one in the URL, or does it just trust whatever ID is passed in? The working mindset throughout was that whenever an API endpoint takes a resource identifier from the client, a customerId, a userId, an orderId, authorization should be assumed broken until proven otherwise.
Exploitation
Step 1: capture a legitimate request as Account A
The researcher authenticated as Account A and captured a legitimate request to the dismiss-generic-popup endpoint using Account A's own customerId. The report does not reproduce the raw request.
Step 2: swap the identifier
Account A's customerId in the URL was replaced with Account B's customerId, while Account A's session and auth token were kept unchanged. The resulting path follows the same shape as the endpoint family:
/api/customer/{customerId}/generic-popup/.../dismiss-generic-popup
Only the path identifier changes; the request is still made in Account A's authenticated context.
Step 3: send the modified request
The server responded with 200 OK and the following body:
{"status":"ok"}
Account A had successfully written to Account B's customer object, despite having no relationship to or authorization over it.
Step 4: unauthenticated control
As a control, the same request was sent with no authentication at all. It correctly returned 403 Permission denied. This confirmed that the issue was not a broken auth check across the board: the endpoint does require authentication. The failure is specifically that authenticated users are not validated against the resource they are trying to modify.
The researcher classifies the issue as classic BOLA (CWE-639), sitting one layer beneath the more general IDOR category.
Root cause
The root cause is that customerId is never validated against the authenticated session anywhere in this endpoint family. The backend accepts the identifier from the URL path and applies the operation to that customer object without checking that it belongs to the caller.
The unauthenticated control returning 403 Permission denied shows that authentication is enforced, so the missing piece is object-level authorization on top of it. The report does not show the server-side code, so the exact location of the missing check is not stated.
Impact
For the specific endpoint tested, the direct impact was narrow: an attacker could force another user's in-product popup notification to be dismissed. No data was disclosed, and nothing beyond a UI notification flag was modified.
The researcher's larger point is that the finding is not really about one popup. Because customerId is never validated against the authenticated session anywhere in this endpoint family, this is an authorization pattern rather than a one-off bug, and patterns like this tend to repeat across every handler that shares the same /api/customer/{customerId}/ structure. If the same missing check exists on endpoints that read or write more sensitive customer data, the impact could scale from cosmetic to serious very quickly. This was flagged explicitly in the report so the security team could audit sibling endpoints, not just patch the one demonstrated.
Fix
The write-up asks the security team to audit sibling endpoints for the same missing check rather than patching only the demonstrated one.
Variants to test
What happened, in plain words
A security researcher spent months practising on training labs, online courses and public bug bounty programs without ever getting a finding accepted. Then they found their first valid bug: a Broken Object Level Authorization (BOLA) vulnerability in a customer API. They found it on a public Vulnerability Disclosure Program (VDP) hosted on HackerOne. The report does not name the program or the organisation behind it.
In plain terms: a website had a feature that lets a logged-in user dismiss a popup notification tied to their own account. The website decided which account to act on by reading a number (the customerId) straight out of the web address. The researcher proved that by changing that number to someone else's, one account could make a change on another account's data. The server said 200 OK and {"status":"ok"}, as if everything were fine.
The direct damage was small: the only thing that changed was a popup flag. But the same missing check probably exists on other endpoints that handle more sensitive data, which is why the researcher flagged it as a pattern rather than a one-off bug.
Background concepts, from zero
Before the story makes sense, here are the pieces it relies on.
A website and a server. When you use a website, your browser (the client) sends requests over the internet to a computer somewhere else (the server). The server does the work and sends back a response. A request is like posting a letter with an address and a question; the response is the reply.
An API. An API (Application Programming Interface) is the part of a website that programs talk to, rather than people clicking buttons. Modern websites are often built as a visual front end plus an API behind it: the page you see asks the API for data, and the API answers in a structured format. A useful comparison is a restaurant: the menu and the waiter are the API, the kitchen is the server, and you never walk into the kitchen yourself. You ask for something by name, and the waiter brings it.
An endpoint. An endpoint is one specific address inside an API that does one specific job, for example "dismiss a popup". Each endpoint has a URL, and some URLs contain placeholders that the caller fills in, such as a customer number.
Authentication. Authentication is proving who you are. On a website you normally do it by logging in with a username and password. Once you are logged in, the server needs a way to recognise you on every following request, because each request arrives separately.
A session and a token. After login, the server gives your browser a small piece of data, often stored in a cookie or sent as a token in a header, that acts like a wristband at an event. You show the wristband on every request and the server knows you already passed the entrance check. If you lose the wristband, or never had one, you are treated as a stranger. The report does not describe which mechanism this application used; it only says the researcher kept Account A's session and auth token while changing the identifier.
Authorization. Authentication answers "who are you?". Authorization answers "are you allowed to do this?". A logged-in user is authenticated, but they should still only be allowed to touch their own data. Authorization is the check that enforces that.
An identifier. An identifier (ID) is a label that points at one specific thing in a database, such as a customer, a user or an order. Websites often put identifiers in URLs, for example /customer/1234/..., so the server knows which record to work on.
BOLA (Broken Object Level Authorization). This is the flaw where the server checks that you are logged in, but not that the specific object you are asking about belongs to you. You are allowed into the building, but nobody checks whether the office you are unlocking is yours. BOLA is catalogued as CWE-639. It sits one layer beneath the broader category called IDOR (Insecure Direct Object Reference): IDOR is the general idea of a user being able to reach someone else's record by changing a reference, and BOLA is the specific case where the missing check is object-level authorization.
A VDP. A Vulnerability Disclosure Program is a scheme where an organisation invites people to report security problems to it. It is often run on a platform such as HackerOne. A bug bounty program usually pays money for findings; a VDP may not.
Burp Suite. A tool that sits between your browser and the website and lets you look at, pause and edit requests before they are sent. The researcher used it; no other tooling is mentioned.
HTTP status codes. Every response carries a three-digit number. 200 means the request succeeded. 403 means the server understood the request but refuses to allow it. These two numbers matter a lot later.
The feature that was tested
The affected feature is a family of endpoints that require you to be logged in, under this path:
/api/customer/{customerId}/generic-popup/.../dismiss-generic-popup
Line by line:
/api/says this is part of the application's API, the machine-facing side of the site.customer/says the thing being worked on is a customer record.{customerId}is a placeholder. The curly braces are not sent literally; the caller replaces them with an actual customer number. This is the crucial part: the number comes from the caller, not from the server's own knowledge of who is logged in.generic-popup/.../is the popup part of the path. The report shows it with an ellipsis, so the exact middle segments are not given.dismiss-generic-popupis the action: dismiss a popup notification.
These endpoints let a logged-in landlord dismiss an in-product popup notification tied to their account. In everyday terms: the site shows a little message box inside the product, and the user can click a button to make it go away. The site remembers that choice on the server, so the popup does not come back. Because the customer number is taken from the URL, the client controls which customer record the dismissal is applied to. That is the design decision that made the bug possible.
The mindset that found it
The researcher's approach was simple: whenever an API endpoint takes a resource identifier from the client, a customerId, a userId, an orderId, assume authorization is broken until proven otherwise. The comparison is a hotel clerk who asks for your room number and then hands over the key without checking the guest list. You do not assume the clerk checks; you test whether they do.
Finding it
While mapping out the application's authenticated API surface, the researcher came across the dismiss-generic-popup endpoint family. Mapping the surface means listing the endpoints the application offers once you are logged in, the way you might walk around a building writing down every door. The customerId in the URL path stood out as exactly the kind of user-controlled identifier worth testing for object-level authorization flaws.
The question posed was simple: does the backend actually verify that the authenticated session's customerId matches the one in the URL, or does it just trust whatever ID is passed in? The backend is the server-side code that does the real work. If it trusts the URL, then anyone logged in can name any customer number and the server will act on it.
Setting up the test
The researcher used two separate accounts that they fully controlled, called Account A and Account B. This is the safe and conclusive way to test: you never touch a real person's data, and you can see both sides of the result yourself. The only tool mentioned is Burp Suite. The report gives no versions, headers, request bodies or details of the authentication mechanism.
Step 1: capture a legitimate request as Account A
The researcher authenticated as Account A and captured a legitimate request to the dismiss-generic-popup endpoint using Account A's own customerId. Capturing means letting the request go through Burp Suite and keeping a copy of it.
Why this step: you need a known-good request first. It shows exactly what a normal, allowed action looks like, including the session token that proves you are Account A. Starting from something that works means any later change in behaviour comes from the one thing you altered, not from a mistake in how the request was built. The report does not reproduce the raw request.
Step 2: swap the identifier
Account A's customerId in the URL was replaced with Account B's customerId, while Account A's session and auth token were kept unchanged. The resulting path follows the same shape as the endpoint family:
/api/customer/{customerId}/generic-popup/.../dismiss-generic-popup
Line by line:
- The path is the same endpoint family as before; nothing about the action changes.
{customerId}is now filled with Account B's number instead of Account A's.- Everything else, including the wristband that identifies the caller as Account A, stays exactly as it was.
Why this step: this is the whole experiment. If the server is doing its job, it should notice that the wristband says Account A but the URL says Account B, and refuse. If it does not notice, the request will succeed. Only the path identifier changes; the request is still made in Account A's authenticated context.
Step 3: send the modified request
The server responded with 200 OK and the following body:
{"status":"ok"}
Line by line:
200 OKis the success code. The server did not refuse; it treated the request as valid.- The body is a small JSON object. JSON is a common text format for structured data, made of names and values in curly braces.
"status"is the name of the field, and"ok"is its value. In plain words, the server is saying "done".
Account A had successfully written to Account B's customer object, despite having no relationship to or authorization over it. Written means a value was changed and stored on the server, not just read. The popup flag on Account B's record was changed by a different account.
Step 4: the unauthenticated control
As a control, the same request was sent with no authentication at all. It correctly returned 403 Permission denied.
A control is a comparison test, like a scientist's placebo group. It answers a different question: is the endpoint simply open to everyone? The answer here is no. Without a wristband, the server refuses with 403, which means "understood, but not allowed".
This confirmed that the issue was not a broken auth check across the board: the endpoint does require authentication. The failure is specifically that authenticated users are not validated against the resource they are trying to modify. In other words, the door checks that you have a wristband, but not that the room is yours.
The researcher classifies the issue as classic BOLA (CWE-639), sitting one layer beneath the more general IDOR category.
Root cause
The root cause is that customerId is never validated against the authenticated session anywhere in this endpoint family. The backend accepts the identifier from the URL path and applies the operation to that customer object without checking that it belongs to the caller.
The unauthenticated control returning 403 Permission denied shows that authentication is enforced, so the missing piece is object-level authorization on top of it.
Impact
For the specific endpoint tested, the direct impact was narrow: an attacker could force another user's in-product popup notification to be dismissed. No data was disclosed, and nothing beyond a UI notification flag was modified. UI means the user interface, the visible part of the product; the flag is just the stored note that says "this popup was dismissed".
The researcher's larger point is that the finding is not really about one popup. Because customerId is never validated against the authenticated session anywhere in this endpoint family, this is an authorization pattern rather than a one-off bug, and patterns like this tend to repeat across every handler that shares the same /api/customer/{customerId}/ structure. A handler is the piece of server code that deals with one endpoint. If the same missing check exists on endpoints that read or write more sensitive customer data, the impact could scale from cosmetic to serious very quickly. This was flagged explicitly in the report so the security team could audit sibling endpoints, not just patch the one demonstrated. Sibling endpoints are the other endpoints in the same family, the ones sharing the same prefix.
Fix
The write-up asks the security team to audit sibling endpoints for the same missing check rather than patching only the demonstrated one. In everyday terms: before acting on a room number, check the guest list against the wristband, and check every door in the corridor, not just the one that was reported.
Variants to test
These are the same ideas generalised, so a beginner can repeat the method elsewhere.
The query string is the part of a URL after a question mark, where extra values are often passed.
Lessons learned
- You do not need a complex exploit chain to find real impact. This was a straightforward parameter swap between two accounts, no tooling beyond Burp Suite, no exotic technique. Authorization testing rewards patience and method more than cleverness.
- Low technical severity does not mean low-value reporting. Instead of stopping at "this popup can be dismissed by someone else", the researcher called out the systemic risk that the same broken check likely exists elsewhere in the API. That is the difference between a report that gets a quick nod and one that changes how a team audits their whole endpoint family.
- A clean, minimal PoC matters. A PoC, or proof of concept, is the smallest set of steps that shows the problem is real. Two accounts, one swapped ID, one screenshot of the 200 response versus the 403 unauthenticated control, that was enough to make the vulnerability undeniable to the triage team. Triage is the first review a report goes through.
Final thoughts
For a long time, the first valid bug felt further away than it actually was. Countless hours went into labs, courses and testing programs with nothing to show for it but "Informative" or "Not Applicable", the labels platforms use when a report is judged not to be a security issue. It is easy in those stretches to wonder if the breakthrough is ever coming.
It turned out the gap between "still trying" and "finally landed one" was smaller than it felt. The same fundamentals the researcher had been practising all along, methodically testing every user-controlled identifier and not overcomplicating the approach, were enough. If you are in that in-between stretch right now, you are closer than you think: keep testing every ID you see, and keep submitting.
Glossary
- API: the machine-facing part of a website that programs talk to, rather than people clicking buttons.
- Authentication: proving who you are, usually by logging in.
- Authorization: deciding whether an authenticated user is allowed to do a particular thing.
- Backend: the server-side code that does the real work behind a website.
- BOLA (Broken Object Level Authorization): a flaw where the server checks that you are logged in but not that the specific object you name belongs to you.
- Bug bounty program: a scheme where an organisation invites and often pays for security reports.
- Burp Suite: a tool that sits between your browser and a website so you can inspect and edit requests.
- Client: the program on your side, usually the browser, that sends requests.
- Control: a comparison test, such as sending the same request without credentials, to isolate what causes a result.
- Cookie: a small piece of data a website stores in your browser, often used to recognise you between requests.
- CWE-639: the catalogue entry for authorization bypass through a user-controlled key, the class this bug belongs to.
- Endpoint: one specific address inside an API that performs one specific job.
- Handler: the piece of server code that deals with one endpoint.
- HackerOne: a platform where organisations run bug bounty and vulnerability disclosure programs.
- HTTP status code: the three-digit number in every response, such as
200for success or403for refused. - Identifier (ID): a label that points at one specific record, such as a customer or an order.
- IDOR (Insecure Direct Object Reference): the general category of reaching someone else's record by changing a reference such as an ID.
- JSON: a common text format for structured data, made of names and values in curly braces.
- Path: the part of a URL after the site name, such as
/api/customer/.... - PoC (proof of concept): the smallest set of steps that demonstrates a problem is real.
- Query string: the part of a URL after a question mark, often used to pass extra values.
- Request: a message your browser sends to a server asking it to do something.
- Response: the server's reply to a request.
- Server: the computer that receives requests and sends back responses.
- Session: the state of being logged in, recognised by the server across separate requests.
- Sibling endpoints: other endpoints in the same family, sharing the same path prefix.
- Token: a piece of data, often sent with each request, that proves you are logged in, like a wristband at an event.
- Triage: the first review a security report goes through.
- UI (user interface): the visible part of a product that a person interacts with.
- VDP (Vulnerability Disclosure Program): a scheme where an organisation invites people to report security problems, often without a reward.
- Write: to change and store a value on the server, as opposed to only reading it.