How My Very First Bug Bounty Finding Leaked 12,000+ Enterprise Product Records
A Laravel backend API allowed anyone to register an account without email verification and receive a valid bearer token. That token gave full read and write access to the entire product catalogue, exposing over 12,000 enterprise product records across five countries.
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 was a web application reached through a subdomain found while enumerating subdomains for a bug bounty program. The researcher refers to the domain as content-craft.redacted-target.com. The application runs on Laravel, and behind the frontend sits a JSON API with endpoints such as /api/register and /api/products.
The /api/products endpoint serves the organisation's enterprise product catalogue: product titles, vendor part numbers and localised specifications in Danish, Swedish, English, Finnish and Norwegian. The catalogue is paginated at 50 items per page.
What made the target interesting was the frontend. Loading the domain in a browser showed a generic landing page reading "Site Under Maintenance". The backend API, however, was fully active.
Setup
The researcher used a browser and its developer tools to intercept requests, plus curl to replay and modify them. No special account, role or invitation was needed: the only precondition was the ability to reach the registration endpoint and create an account.
Finding it
The starting point was a quiet late-night recon session. While enumerating subdomains, the researcher came across the domain above and loaded it. The "Site Under Maintenance" page is the kind of thing that makes many people close the tab, but the working assumption was that a maintenance page on the frontend says nothing about the state of the backend APIs behind it.
Opening the developer tools and intercepting a few requests confirmed this: the application was running on Laravel and the backend API endpoints were completely active. The next step was to test the standard authentication workflows, starting with the registration endpoint at /api/register.
Exploitation
Step 1: Register an account without verification
Modern applications usually require email verification, a CAPTCHA or an invite code before an account becomes usable. The researcher sent a simple registration request, half expecting it to fail:
The body sends a name, an email address and a password together with a confirmation field, c_password. The server responded immediately with a 200 OK and a valid Bearer token:
{
"success": true,
"data": {
"token": "REDACTED_BEARER_TOKEN",
"name": "Test User"
},
"message": "User registered successfully"
}
No email verification, no admin approval: a brand-new, valid authentication token was issued in less than two seconds.
Step 2: Read the product catalogue
With a token in hand, the question was what an authenticated "regular" user could actually do. The researcher attached the bearer token to a GET request against the internal product catalogue endpoint:
The response was a body of JSON data containing product titles, vendor part numbers and localised specs in Danish, Swedish, English, Finnish and Norwegian.
Step 3: Measure the size of the exposure
The API was paginated, returning 50 items per page. To see how far the data went, the researcher pushed the page parameter:
Page 244 returned the final 35 items. The arithmetic gives 243 pages of 50 items plus 35, so 12,185 products in total. An arbitrary user on the internet had full visibility over the entire enterprise inventory catalogue.
Step 4: Prove write access without causing damage
Reading the data was bad enough, but the next question was whether a standard user could modify or delete records. To prove business impact without breaking anything, the researcher picked a single test product ID and sent a minor PUT update changing its title to SECURITY-RESEARCH-TEST:
The response came back instantly with "message": "Product updated successfully". The researcher then sent another PUT request to revert the title to its original state, after taking a screenshot.
Root cause
The report attributes the flaw to CWE-862, Missing Authorization. The registration endpoint issued a fully valid token without any verification step, and the product endpoints accepted that token and returned or modified catalogue records. The maintenance page on the frontend provided no protection because the API behind it remained reachable and active.
Impact
An arbitrary user on the internet could register an account and obtain full read and write access to over 12,000 enterprise product records across 5 countries. The data exposed included product titles, vendor part numbers and localised specifications in Danish, Swedish, English, Finnish and Norwegian.
On the write side, the researcher notes that a malicious actor could write a simple script to overwrite or wipe all 12,000+ records in a matter of minutes, completely sabotaging the platform's product management pipeline. The proof of concept itself was limited to a single record, changed and then reverted.
Fix
The report does not describe what was changed after disclosure.
Variants to test
- Maintenance pages with live APIs. Load a domain showing a maintenance or placeholder page, open the developer tools and watch for API calls that still return data. A positive result is a JSON response from an endpoint the frontend no longer exposes.
- Registration without verification. Send a registration request and check whether a usable token comes back before any email confirmation, CAPTCHA or invite step. A positive result is a
200with a token in the response body. - Object-level authorisation on list endpoints. With a low-privilege token, request a collection endpoint such as a product catalogue and check whether the response contains records the account should not see. A positive result is data belonging to another tenant, region or role.
- Pagination as a volume check. Push the
pageparameter until the last page returns fewer than the page size, then multiply to estimate the total. A positive result is a large total reachable with an ordinary account. - Write access from a standard account. On a record you are permitted to touch, send a PUT with a harmless field change and check the response. A positive result is a success message confirming the modification, which you then revert.
What happened, in plain words
A security researcher was looking for bugs in a company's website, as part of a bug bounty programme. A bug bounty programme is an arrangement where a company invites outside people to look for security problems in its systems and pays them for reporting what they find, instead of punishing them. This was the researcher's very first real finding.
Late one night, while mapping out the company's subdomains, the researcher found a page that said "Site Under Maintenance". Most people would close the tab at that point. The researcher did not, because a maintenance notice on a web page tells you nothing about the computer systems sitting behind it. Those systems, called APIs, were still running and still answering requests.
Using only a browser and a command-line tool called curl, the researcher created an account on the site. The site let the account through with no email confirmation, no CAPTCHA and no invite code, and handed back a token: a short string that proves who you are on later requests. With that token, the researcher could read the company's entire product catalogue: 12,185 records, spread over 5 countries. Then the researcher changed the title of one single product to prove that writing was possible too, and changed it back straight away.
The underlying problem has a name: CWE-862, Missing Authorization. In plain terms, the system checked that you were logged in, but never checked whether you were allowed to do what you were asking. The researcher says this was his first bounty.
The setup: what tools were used, and why
The researcher worked with two things:
- A browser. Every computer has one. Besides showing pages, browsers contain developer tools, a built-in panel (usually opened with F12 or a right-click and "Inspect") that shows every request the page makes to the server behind it. Think of it as being able to watch the waiter carry orders between your table and the kitchen, instead of only seeing the plate arrive.
curl. A small command-line program that sends a single web request and prints the reply as text. Where a browser hides the raw reply behind a rendered page,curlshows you exactly what the server sent back. It is the difference between looking at a finished cake and reading the recipe.
No special account, role or invitation was needed. The only precondition was being able to reach the registration endpoint and create an account.
Finding it
The starting point was a quiet late-night recon session. Recon, short for reconnaissance, is the information-gathering phase: before touching anything, you map out what exists. One common recon step is subdomain enumeration, which means finding the smaller addresses that belong to a company, such as shop.example.com or api.example.com when the main site is example.com. Companies often forget about some of these, and forgotten corners are where mistakes live.
While enumerating subdomains, the researcher came across a domain referred to here as content-craft.redacted-target.com. Loading it in a browser showed a sleek, generic landing page reading "Site Under Maintenance".
A beginner might close the tab and move on. But a core rule of bug bounty is to never trust what the frontend tells you. The frontend is the part you see and click: the pages, buttons and text. The backend is the part that does the actual work: the servers, databases and logic. A maintenance page is a message from the frontend. It says nothing about whether the backend is switched off. Very often the backend is wide open, running silently in the background, still answering anyone who knows the address to ask.
So the researcher opened the browser developer tools and intercepted a few requests. Intercepting here means watching the requests the page makes and reading the replies. Two things became clear:
- The application was running on Laravel. Laravel is a popular framework, a ready-made toolkit that developers use to build web applications in the PHP programming language. Knowing the framework helps because its conventions are well documented.
- The backend API endpoints were completely active. An API (Application Programming Interface) is the set of addresses a program exposes so that other programs can talk to it. An endpoint is one specific address in that set, for example one that handles registration and another that handles products. A useful comparison: a restaurant's menu is the API, and each dish on it is an endpoint. You do not need to enter the kitchen; you order by name.
The "wait, what?" moment
Next, the researcher tested the standard authentication workflows. Authentication is the process of proving who you are, like showing your passport at a border. The first workflow tested was registration, the endpoint at /api/register.
Usually, modern applications put obstacles in front of registration: an email verification link, a CAPTCHA (the puzzle that asks you to prove you are not a robot), or an invite code. These exist to stop anyone from creating unlimited accounts. The researcher sent a simple registration request, half expecting it to fail:
Line by line:
curlis the program being run.-X POSTsets the HTTP method to POST. A method is the verb of a web request. GET means "give me something", POST means "here is something new, create it". Registering an account creates something, so POST is the natural choice.-H "Content-Type: application/json"adds a header. Headers are extra labels attached to a request, like the notes on an envelope. This one tells the server that the body of the request is formatted as JSON, a simple text format for structured data that both humans and programs can read.-d '...'is the body of the request, the actual content being sent. It is a JSON object with four fields:name(the display name),email(the account address),passwordandc_password. The last one is a confirmation copy of the password, a common pattern so that a typo in the first field is caught.- The final argument is the URL being called: the registration endpoint on the target domain.
- The backslashes at the end of lines simply tell the shell that the command continues on the next line. They are formatting, not part of the request.
To the researcher's surprise, the server immediately responded with a 200 OK status and handed back a valid Bearer token:
{
"success": true,
"data": {
"token": "REDACTED_BEARER_TOKEN",
"name": "Test User"
},
"message": "User registered successfully"
}
What this reply means:
200 OKis the status code, a three-digit number summarising the outcome. 200 means "everything went fine". You have seen 404 (not found) in a browser; that is the same system."success": trueis the application's own confirmation flag."data"holds the useful part of the reply: atokenand thenamethat was registered."message": "User registered successfully"is a human-readable note.
The important part is the token. A token is a string the server gives you after you log in or register, and that you show on later requests so the server knows who you are. The everyday comparison is a wristband at an event: you show your ticket once at the door, get a wristband, and after that the staff only glance at the wristband. A Bearer token is a specific kind of token sent in a header of the form Authorization: Bearer <token>, meaning "whoever bears (carries) this token is the user".
No email verification. No admin approval. A brand-new, valid authentication token was created in less than two seconds. That is the first half of the problem: the door was unlocked.
Digging deeper: reading 12,000+ records
Having a token was great, but the researcher needed to see what an authenticated "regular" user could actually do. This is the second half of the problem, and the more serious one. Being allowed in is one question; being allowed to open every cupboard is another.
The researcher attached the bearer token to a GET request aimed at the internal product catalogue endpoint:
Line by line:
-H "Authorization: Bearer REDACTED_BEARER_TOKEN"is the wristband. It tells the server which account is making the request.REDACTED_BEARER_TOKENstands in for the real value, which is kept private.-H "Accept: application/json"tells the server the client would like the answer in JSON. It is a preference, like asking for the menu in English.- The URL points at
/api/products, the endpoint that serves the product catalogue. - No
-Xis given, socurluses GET by default, which is the method for "give me this data".
The response was a body of JSON data. Product titles, vendor part numbers, localised specifications in Danish, Swedish, English, Finnish and Norwegian: it was all right there. A vendor part number is the manufacturer's own identifier for an item, the code you would quote when ordering it. Localised specifications are the product details written for each country's language and market.
In other words, a freshly registered account with no special rights could read the company's whole commercial catalogue.
Measuring the size of the exposure
The API was paginated, returning 50 items per page. Pagination is how large collections are split into chunks: instead of sending 12,000 records in one enormous reply, the server sends 50 and lets you ask for the next page. It is like a book with numbered pages rather than one endless scroll. The page number is passed as a query parameter, the part of a URL after a ?, here page.
To see how far the data went, the researcher pushed the page parameter:
Line by line:
- The same authorization header as before, so the request is made as the test account.
- The URL is the products endpoint with
?page=244appended. This asks for the 244th chunk of results. - The researcher chose a high number deliberately. If page 244 still returns data, the collection is at least that large, and the reply tells you where the end is.
Page 244 returned the final 35 items. The arithmetic is simple: 243 full pages of 50 items, plus 35 on the last page, gives 12,185 products. An arbitrary user on the internet had just gained total visibility over the entire enterprise inventory catalogue.
Why does the exact number matter? Because impact is what turns a technical curiosity into a serious report. "I could read some products" is vague. "I could read 12,185 products across 5 countries" is a number a manager can act on.
Testing the integrity: could a normal user change things?
Reading data was bad enough, but the next question was whether a standard user could modify or delete records. Reading is one thing; writing is another. If anyone can change the catalogue, the company's product data can be corrupted, not just copied.
To prove the business impact without breaking anything, the researcher selected a single test product ID and sent a minor PUT update changing its title to SECURITY-RESEARCH-TEST:
Line by line:
-X PUTsets the method to PUT, which conventionally means "replace or update this existing thing".- The authorization header again identifies the account.
Content-Type: application/jsonsays the body is JSON.- The body
{"name":"SECURITY-RESEARCH-TEST"}sets the product's name to a clearly fake value, so anyone looking at the record can see it was a test. - The URL ends in
[REDACTED_ID], the identifier of the one product chosen. The real ID is hidden here.
The response came back instantly with "message": "Product updated successfully". The researcher's heart skipped a beat. A malicious actor could write a simple script to overwrite or wipe all 12,000+ records in a matter of minutes, completely sabotaging the platform's product management pipeline.
Two habits in that step are worth copying. First, the change was tiny and obviously a test, not a deletion. Second, the researcher immediately sent another PUT request to revert the title to its original state, after taking a screenshot as evidence. Proving a problem is the goal; causing damage is not.
Why it worked
The report attributes the flaw to CWE-862, Missing Authorization. CWE stands for Common Weakness Enumeration, a public catalogue of known kinds of software weakness, so that everyone can refer to the same problem by the same name.
Authorization is the check that answers "are you allowed to do this?". It is different from authentication, which answers "who are you?". The everyday comparison is a hotel: authentication is showing your key card at the door, authorization is whether that card opens room 412 or only room 208. A card that opens every room is an authentication success and an authorization failure.
Here, two things went wrong together:
- The registration endpoint issued a fully valid token without any verification step.
- The product endpoints accepted that token and returned or modified catalogue records.
The maintenance page on the frontend provided no protection, because the API behind it remained reachable and active.
Impact
An arbitrary user on the internet could register an account and obtain full read and write access to over 12,000 enterprise product records across 5 countries. The data exposed included product titles, vendor part numbers and localised specifications in Danish, Swedish, English, Finnish and Norwegian.
On the write side, the researcher notes that a malicious actor could write a simple script to overwrite or wipe all 12,000+ records in a matter of minutes, completely sabotaging the platform's product management pipeline. The proof of concept itself was limited to a single record, changed and then reverted.
Fix
The report does not describe what was changed after disclosure.
Variants to test
If you want to practise the same thinking on systems you are allowed to test, these are the checks in the order the researcher used them:
- Maintenance pages with live APIs. Load a domain showing a maintenance or placeholder page, open the developer tools and watch for API calls that still return data. A positive result is a JSON response from an endpoint the frontend no longer exposes.
- Registration without verification. Send a registration request and check whether a usable token comes back before any email confirmation, CAPTCHA or invite step. A positive result is a
200with a token in the response body. - Object-level authorisation on list endpoints. With a low-privilege token, request a collection endpoint such as a product catalogue and check whether the response contains records the account should not see. A positive result is data belonging to another tenant, region or role.
- Pagination as a volume check. Push the
pageparameter until the last page returns fewer than the page size, then multiply to estimate the total. A positive result is a large total reachable with an ordinary account. - Write access from a standard account. On a record you are permitted to touch, send a PUT with a harmless field change and check the response. A positive result is a success message confirming the modification, which you then revert.
Glossary
- API: the set of addresses a program exposes so other programs can talk to it; the restaurant menu, not the kitchen.
- Authentication: proving who you are, such as logging in or registering.
- Authorization: deciding whether an identified user is allowed to do a particular thing.
- Backend: the servers, databases and logic behind the pages you see.
- Bearer token: a token sent in an
Authorization: Bearer <token>header, where possession of the token is treated as proof of identity. - Body: the content of a request or response, as opposed to its headers and URL.
- Bug bounty programme: an arrangement where a company invites outside researchers to find and report security problems, usually for a reward.
- CAPTCHA: a puzzle designed to be easy for a human and hard for a program, used to slow down automated account creation.
- CWE-862: Missing Authorization, a catalogued weakness where a system fails to check whether a user is allowed to perform an action.
- curl: a command-line program that sends a single web request and prints the raw reply.
- Developer tools: a panel built into browsers that shows the requests a page makes and the replies it receives.
- Endpoint: one specific address in an API, such as
/api/registeror/api/products. - Frontend: the part of an application you see and interact with in the browser.
- GET: the HTTP method meaning "give me this data".
- Header: an extra label attached to a request or response, such as
Content-TypeorAuthorization. - HTTP method: the verb of a web request, such as GET, POST or PUT.
- JSON: a simple text format for structured data, made of names and values in braces and brackets.
- Laravel: a popular framework for building web applications in the PHP programming language.
- Localised specifications: product details written for a particular country's language and market.
- Pagination: splitting a large collection into numbered chunks, so a client asks for one page at a time.
- POST: the HTTP method meaning "here is something new, create it".
- PUT: the HTTP method meaning "replace or update this existing thing".
- Query parameter: the part of a URL after a
?, used to pass values such as a page number. - Recon: reconnaissance, the information-gathering phase before testing, such as finding subdomains.
- Status code: a three-digit number in a reply summarising the outcome, such as 200 for success or 404 for not found.
- Subdomain: a smaller address under a company's main domain, such as
shop.example.comunderexample.com. - Subdomain enumeration: systematically finding the subdomains that belong to a target.
- Token: a string issued after logging in or registering, shown on later requests so the server knows who you are.
- Vendor part number: the manufacturer's own identifier for a product.