Sensitive Customer Data Exposure Through a Reservation XLSX Export
The reservation export endpoint accepted a restaurant identifier supplied by the user without checking that the authenticated user belonged to that restaurant. An attacker with a normal account could change the identifier and download another restaurant's reservation spreadsheet, including customer names, allergy details and internal notes.
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
While testing a restaurant reservation platform, I found an XLSX export feature that generated reservation data through this endpoint:
POST /api/v1/restaurants/<restaurant_id>/reservations/export

The interesting part was the restaurant_id.
Setup
I had an authenticated session on the platform, associated with my own restaurant. No special role, tooling or version information is given in the report beyond that: the test was carried out with a normal authenticated account and the same session throughout.
Finding it
I first exported my own restaurant's reservations successfully. That gave me a working request with a known-good identifier:
POST /api/v1/restaurants/<my_restaurant_id>/reservations/export
Because the restaurant identifier sits in the path and is fully user-controlled, the obvious question was whether the server checks that the authenticated user is actually allowed to export that particular restaurant. So I changed the ID to another valid restaurant identifier while keeping the same authenticated session:
POST /api/v1/restaurants/<another_restaurant_id>/reservations/export
The server accepted the request and generated an XLSX file for the other restaurant.
Exploitation
Step 1: export your own reservations
With my own restaurant's ID in the path, the export succeeded and returned a spreadsheet of my reservations. This established the normal behaviour of the feature and confirmed the request format.
Step 2: swap the identifier
I replaced <my_restaurant_id> with <another_restaurant_id>, a valid identifier belonging to a different restaurant, and sent the request with the same authenticated session:
POST /api/v1/restaurants/<another_restaurant_id>/reservations/export
No privilege escalation or authentication bypass was required: the only change was the object identifier in the path.
Step 3: read the exported file
The file contained reservation and customer information, including:
- Customer names
- Reservation notes
- Allergy information
- Internal restaurant notes
- Number of people
- Areas / tables
- Reservation status
Root cause
The issue was an IDOR / Broken Object-Level Authorization (BOLA): the server trusted the user-controlled restaurant_id without properly verifying whether the authenticated user was authorized to access that restaurant. The server trusted the user-controlled restaurant_id without properly verifying whether the authenticated user was authorized to access that restaurant.
Impact
An authenticated user could access another restaurant's reservation data through the export endpoint, potentially exposing sensitive customer and internal restaurant information. The data in the file includes customer names, reservation notes, allergy information, internal restaurant notes, party size, areas and tables, and reservation status.
The vulnerability was reported responsibly and was rewarded with CHF 3,000 ($3,660).
Fix
The report does not describe the fix that was applied.
Variants to test
- Other export and report endpoints. Look for endpoints that take an object identifier in the path or body and return a file or a bulk listing, such as exports of orders, invoices, bookings or customers. A positive result is a file containing records belonging to an object your account does not own.
- Identifier in the body instead of the path. Send the same request with the restaurant identifier moved into a JSON or form field. A positive result is the same cross-tenant data with the identifier supplied in the body.
- Nested identifiers. Where a path contains more than one object, for example a restaurant and a reservation, change each one independently. A positive result is any combination that returns data outside your account.
- Identifier formats. Try the neighbouring numeric values of your own identifier, and identifiers of objects you can see referenced elsewhere in the application. A positive result is a successful export for an object you do not control.
- Read versus write. Repeat the swap on endpoints that modify or delete objects, not only those that read them. A positive result is a state change on another tenant's object.
What happened, in plain words
A security researcher was testing a website used by restaurants to manage their bookings (reservations). The site had an XLSX export feature that generated reservation data.
The researcher noticed that when the site built that spreadsheet, it asked the server for it using a web address that contained a number identifying which restaurant's data should be included. That number is called the restaurant_id. The researcher tried changing that number to a different restaurant's number, while staying logged in to their own account. The server did not check whether the logged-in user was allowed to see that other restaurant's data. It simply produced the spreadsheet, full of another restaurant's customer details.
This kind of mistake has a name: an IDOR, short for Insecure Direct Object Reference. It means the website lets you refer to something (here, a restaurant) by an identifier you can freely change, and it forgets to check that the thing you are asking for actually belongs to you. The researcher reported it responsibly, and the company paid a reward of CHF 3,000 (about $3,660).
This article walks through the same story step by step, explaining every technical idea from scratch along the way.
Background ideas you need first
Before the steps make sense, here are a few everyday ideas.
A website is two programs talking. Your browser (Chrome, Firefox, Safari) is one program. The server, a computer somewhere else, is the other. Your browser asks questions and the server answers. When you click a button, your browser sends a request to the server and shows you the reply.
An API is a menu of requests a website offers. Think of a restaurant: you do not walk into the kitchen and cook; you order from a menu and the kitchen prepares it. An API (Application Programming Interface) is the menu of things a website's own pages, and sometimes other programs, are allowed to ask the server to do. Each item on the menu has an address, called an endpoint, and a method, such as GET (please give me something) or POST (please do something with the information I am sending).
A URL path is the part of a web address after the site name. In https://example.com/api/v1/restaurants/42/reservations/export, the path is /api/v1/restaurants/42/reservations/export. The 42 in the middle is a value placed inside the path, and the server reads it to decide what to do.
An identifier (ID) is a number or code that names one specific thing. Your customer number at a shop is an identifier. Restaurant 42 and restaurant 43 are two different restaurants, each with its own identifier. Identifiers are often simple, predictable numbers, which is exactly why they matter for security.
Being logged in means the server recognises you. When you log in, the server gives your browser a small piece of proof, often called a session cookie or a token. Your browser sends it back with every request, like a wristband at an event: the staff can see you are allowed in. This proves who you are. It does not, by itself, prove what you are allowed to touch.
Authentication versus authorisation. These two words sound alike but mean different things. Authentication is proving who you are (showing your wristband at the door). Authorisation is deciding what you may do once inside (your wristband might let you into the general area but not the VIP room). Many security bugs come from a site doing the first and forgetting the second.
An IDOR is when the site trusts an identifier you supply. Imagine a hotel where you tell the receptionist your room number and they hand you the key without checking it is your room. The room number is a direct reference to an object, you supplied it yourself, and nobody checked. That is an IDOR. The formal name is Broken Object-Level Authorization (BOLA): the site checks that you are logged in, but not that the specific object (here, a restaurant) belongs to you.
An XLSX file is a spreadsheet. It is the file type Excel saves. A website can generate one on demand, filled with rows of data, and send it to your browser as a download.
The feature and the endpoint
While testing a restaurant reservation platform, the researcher found an XLSX export feature that generated reservation data through this endpoint:
POST /api/v1/restaurants/<restaurant_id>/reservations/export

Line by line, in plain words:
POSTis the method. It tells the server "I am sending you a request that will make you do something", here, build a file. It is not just asking to view a page./api/v1/is the start of the path.apisignals this is a programmatic endpoint, andv1is a version number, so the site can change things later without breaking older clients.restaurants/<restaurant_id>is the part that matters. The server expects a restaurant identifier in the place marked<restaurant_id>. The angle brackets are a placeholder: in a real request, an actual number or code sits there./reservations/exportsays what to do with that restaurant: take its reservations and export them.
The interesting part was the restaurant_id. The identifier of the restaurant whose data is to be exported is supplied by the client, meaning your browser, in the URL path, and the server uses it to decide which reservations to put into the file.
The setup
The researcher had an authenticated session on the platform, associated with their own restaurant. That means they had a normal account, logged in, with the usual proof (cookie or token) being sent with each request. No special role, tooling or version information is given in the report beyond that: the test was carried out with a normal authenticated account and the same session throughout.
Finding it
The researcher first exported their own restaurant's reservations successfully. That gave a working request with a known-good identifier:
POST /api/v1/restaurants/<my_restaurant_id>/reservations/export
Line by line:
POSTand the rest of the path are the same as before.<my_restaurant_id>is replaced by the identifier of the researcher's own restaurant, the one their account legitimately belongs to.
Why do this first? Because you cannot tell whether a strange result is a bug until you know what normal looks like. Exporting your own data proves the feature works, confirms the exact request format the server expects, and gives you a baseline to compare against. It is like checking that your own key opens your own door before trying it on another door.
Because the restaurant identifier sits in the path and is fully controlled by the user, the obvious question was whether the server checks that the authenticated user is actually allowed to export that particular restaurant. So the researcher changed the ID to another valid restaurant identifier while keeping the same authenticated session:
POST /api/v1/restaurants/<another_restaurant_id>/reservations/export
Line by line:
- Everything is identical to the working request except one thing:
<another_restaurant_id>is a valid identifier belonging to a different restaurant. - The session cookie or token sent along with the request is unchanged. The server still knows exactly who is asking. The only variable is which restaurant is named.
The server accepted the request and generated an XLSX file for the other restaurant. That is the bug: the server knew who was asking, but never checked whether that person was allowed to ask for that restaurant.
Exploitation, step by step
Step 1: export your own reservations
With the researcher's own restaurant ID in the path, the export succeeded and returned a spreadsheet of their reservations. This established the normal behaviour of the feature and confirmed the request format. In security testing terms, this is the control experiment: the result you expect, so that any difference later is meaningful.
Step 2: swap the identifier
The researcher replaced <my_restaurant_id> with <another_restaurant_id>, a valid identifier belonging to a different restaurant, and sent the request with the same authenticated session:
POST /api/v1/restaurants/<another_restaurant_id>/reservations/export
Line by line:
- The method, path structure and session are all unchanged.
- Only the identifier in the middle of the path differs. This is the entire attack: one value swapped.
No privilege escalation or authentication bypass was required: the researcher did not become an administrator, did not steal anyone's login, and did not break the login system. The only change was the object identifier in the path. That is what makes IDOR bugs so common and so easy to miss: the attacker uses the site exactly as designed, just with someone else's number.
Step 3: read the exported file
The file contained reservation and customer information, including:
- Customer names
- Reservation notes
- Allergy information
- Internal restaurant notes
- Number of people
- Areas / tables
- Reservation status
Why does this list matter? Because it shows the real-world harm. Allergy information is health-related data about private customers. Internal restaurant notes are not meant for outsiders. Names, party sizes, table assignments and statuses together describe who is coming, when and where. None of this should be visible to a competing restaurant or to any random account holder.
Root cause
The issue was an IDOR / Broken Object-Level Authorization (BOLA): the server trusted the user-controlled restaurant_id without properly verifying whether the authenticated user was authorized to access that restaurant. The server trusted the user-controlled restaurant_id without properly verifying whether the authenticated user was authorized to access that restaurant.
In everyday terms: the bouncer checked your wristband at the door (authentication), but nobody checked whether the room you walked into was yours (authorisation). The fix belongs on the server, because the browser can always be changed by the person using it. Anything the browser sends, including an identifier in a path, must be treated as untrusted.
Impact
An authenticated user could access another restaurant's reservation data through the export endpoint, potentially exposing sensitive customer and internal restaurant information. The data in the file includes customer names, reservation notes, allergy information, internal restaurant notes, party size, areas and tables, and reservation status.
The vulnerability was reported responsibly and was rewarded with CHF 3,000 ($3,660). Reporting responsibly means telling the company privately and giving them time to fix it, rather than publishing it or using it for harm.
Fix
The report does not describe the fix that was applied. In plain words, before the kitchen prepares the order, it should check that the person asking is actually sitting at that table.
Variants to test
Once you understand one IDOR, you can look for the same pattern elsewhere.
- Other export and report endpoints. Look for endpoints that take an object identifier in the path or body and return a file or a bulk listing, such as exports of orders, invoices, bookings or customers. A positive result is a file containing records belonging to an object your account does not own.
- Identifier in the body instead of the path. Send the same request with the restaurant identifier moved into a JSON or form field. A positive result is the same cross-tenant data with the identifier supplied in the body. "Cross-tenant" means data belonging to a different customer or organisation sharing the same platform.
- Nested identifiers. Where a path contains more than one object, for example a restaurant and a reservation, change each one independently. A positive result is any combination that returns data outside your account.
- Identifier formats. Try the neighbouring numeric values of your own identifier, and identifiers of objects you can see referenced elsewhere in the application. A positive result is a successful export for an object you do not control. Neighbouring values matter because identifiers are often sequential: if yours is 42, 41 and 43 may belong to someone else.
- Read versus write. Repeat the swap on endpoints that modify or delete objects, not only those that read them. A positive result is a state change on another tenant's object. Reading someone else's data is bad; changing or deleting it is worse.
Glossary
- API: the set of requests a website or service offers to programs, like a menu of things you can ask the server to do.
- Authentication: proving who you are, for example by logging in.
- Authorisation: deciding what a recognised user is allowed to do or see.
- BOLA (Broken Object-Level Authorization): a flaw where the site checks that you are logged in but not that the specific object you name belongs to you.
- Cookie / session token: a small piece of proof your browser stores after login and sends with each request so the server recognises you.
- Cross-tenant: involving data that belongs to a different customer or organisation on the same platform.
- Endpoint: a specific address and method on a server that performs one action, such as the export endpoint in this report.
- GET: an HTTP method used to ask the server to return something.
- HTTP method: the verb of a request, such as
GET(retrieve) orPOST(submit or act). - IDOR (Insecure Direct Object Reference): a flaw where the site lets you name an object by an identifier you control and does not check that it is yours.
- Identifier (ID): a number or code that names one specific thing, such as a restaurant.
- Path: the part of a web address after the site name, such as
/api/v1/restaurants/42/reservations/export. - POST: an HTTP method used to send data to the server so it performs an action.
- Privilege escalation: gaining more permissions than your account should have.
- Request: a message your browser sends to a server asking it to do something.
- Server: the remote computer that stores data and answers requests.
- Session: the period during which the server recognises you as logged in, tied to your cookie or token.
- URL: the full address of something on the web.
- XLSX: the spreadsheet file format used by Microsoft Excel.