How I Found an Unauthenticated IDOR in a Pickup-Point Widget
The pickup-point widget accepted a client-supplied internal record identifier, allowing an unauthenticated attacker to update existing pickup-point records. The same action also returned stored pickup-point business information without authentication.
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 pickup-point widget in an e-commerce checkout flow. The widget lets a customer choose a pickup location during checkout, and it receives a JSON object describing the selected point, including details such as a business name and address. The application then uses values from that object to populate a shared database record.
The feature is reachable during guest checkout, so a customer can select a pickup point without having an account. The report was submitted through YesWeHack and was rated High with a CVSS score of 8.2. The organisation, endpoint, parameter names and test identifiers have been anonymised in the write-up, and the examples are pseudocode rather than production requests.

The author's YesWeHack reward card for the accepted report.
Setup
The work started from a source review of a delivery integration, not from black-box probing. The researcher used a fresh, clearly marked test pickup-point reference and synthetic field values, and sent requests without a session or authentication token. Burp Suite Repeater was used to reproduce the creation behaviour manually, as a separate check that the behaviour was not an artefact of a script. No account or role was needed, because the interesting path was the guest checkout path.
Finding it
While reviewing the delivery integration, the pickup-point selection action stood out. The widget accepted an object containing location information, and the source showed that the submitted object was used to populate a model. That raised two questions:
- Which fields can a client actually submit?
- Does the server decide which record to update, or can the request choose it?
The second question mattered because guest checkout makes the first one legitimate: a customer may select a pickup point without an account, but a public request should not be able to choose an internal database row to overwrite.
Exploitation
Step 1: establish a baseline
The researcher sent a request with a fresh test pickup-point reference and synthetic field values, without a session or authentication token. The response indicated that the application had created a record and returned an internal identifier. Repeating the baseline with a second fresh test reference created another record. This established what a normal creation response looked like and produced two test rows for the next step.
This was not a finding by itself. A guest checkout feature may legitimately need to accept some pickup-point data. The open question was whether the request could direct a write to a different existing record.
Step 2: supply an internal identifier
A further request used a new pickup-point reference but also included the internal identifier of the first test row. If the server had selected the record solely from the new reference, a new row would have been expected. Instead, the response showed the existing test row's identifier alongside the new test values.
Step 3: repeat the controlled comparison
The same comparison was repeated against the second test row, with the same result: the identifier supplied in the object selected the row that was updated. The creation behaviour was also reproduced manually in Burp Suite Repeater, giving a separate way to confirm that the request behaviour was not an artefact of a script.
Illustrative proof of concept
The report gives pseudocode for a controlled lab. Field names and values are invented to explain the comparison and are not the original endpoint or production payload.
submit pickup_point = {
public_reference: "TEST-A",
label: "Original test location"
}
response: record_id = 101, label = "Original test location"
# Comparison: use a new reference with the first test record's ID
submit pickup_point = {
public_reference: "TEST-B",
record_id: 101,
label: "Updated test location"
}
response: record_id = 101, label = "Updated test location"
The comparison is the important part. The public reference changed, but the returned internal record ID stayed the same and the displayed values changed. The original request and response evidence was included in the report for the program's security team.
Step 4: read-back test
The researcher then referenced one of the test rows while omitting its descriptive fields. The response returned the values previously stored in that row, showing that the same action could return stored pickup-point information without authentication. The information demonstrated in this read-back was pickup-point business information, including the location's name and address. Exposure of an individual customer's personal data was not demonstrated in this test.
Root cause
The issue combined two related weaknesses:
- Mass assignment: the application accepted fields from a client-supplied object when populating a model, and a field representing an internal identifier was inside that trust boundary.
- IDOR / missing authorization: the supplied identifier influenced which existing record received the update, without an appropriate check on that record.
The server should have determined the update target from trusted context and handled client-supplied fields according to their intended purpose. The report does not describe the specific code that performed the lookup or the checks that were absent, so the exact defensive gap beyond these two points is not stated.
Impact
The strongest demonstrated result was an unauthenticated write to two existing, self-created rows in a shared pickup-point table. The test also showed read-back of stored values from a self-created row.
Because the feature feeds pickup-point selection during checkout, changing shared location data could affect the information presented in that workflow. The test did not establish how a change would affect carrier-facing systems or shipping labels, so that was left as a question for the team. No bulk overwrite was run and service availability was not tested.
The report also documented the harmless test records left behind and asked the program to clean them up. Reproducibility includes telling the receiving team what changed during a test.
Fix
The report sets out what should be done rather than describing a change that was made:
- Separate the request model from the database model. Define exactly which pickup-point fields the client may supply. Reject or ignore internal database identifiers in the public request.
- Select records on the server. Derive the target from trusted, appropriately scoped application context, then enforce the authorization rules for that operation.
- Validate location data. Verify submitted pickup-point details against a trusted source when the integration requires authoritative carrier data.
- Add regression tests. In a test environment, create two synthetic records. Submit an update containing the other record's ID and confirm it cannot change that record. Check which fields a guest response is allowed to return.
- Review similar actions. Look for other endpoints that populate database models from client-supplied objects, including routes used by guests.
Variants to test
The report recommends reviewing other endpoints that populate database models from client-supplied objects, including routes used by guests. Concrete things to try:
- Add an internal identifier to a create request. Send the normal creation payload plus a guessed or previously observed record identifier. A positive result is a response that echoes the supplied identifier with the new values, showing the write landed on the existing row rather than creating a new one.
- Change the public reference while keeping the identifier. Repeat the same request with a different public reference and the same internal identifier. A positive result is the same record identifier coming back with the changed values, which isolates the identifier as the selector.
- Omit descriptive fields on a read-back. Reference a record you created while leaving out its descriptive fields. A positive result is the stored values being returned without authentication.
- Test other guest routes that populate models. Look for checkout, delivery and location-selection actions that accept structured objects. A positive result is any client-supplied field that selects or changes a stored object.
- Check which fields a guest response returns. Compare the fields returned to an unauthenticated caller against what the workflow needs. A positive result is internal identifiers or stored business data appearing in a guest response.
Keep every test on records you created yourself, and tell the receiving team what you left behind.
What happened, in plain words
A researcher found a bug in an online shop's checkout. The shop lets you pick a place to collect your order, such as a shop or a locker. That little pickup-point picker sent information to the shop's server, and the server used that information to save a record in its database. The researcher discovered that by adding one extra value to the request, they could make the server update an existing record instead of creating a new one. They could do this without logging in at all.
This kind of bug is called an IDOR, which stands for Insecure Direct Object Reference. In everyday terms: imagine a cloakroom where you hand over a ticket with a number on it, and the attendant gives you whatever coat matches that number, even if it is not yours. If the attendant never checks that the number belongs to you, you can ask for a coat that is not yours. Here, the "number" was a database record identifier, and the server accepted it from the request without checking whether the caller should be allowed to touch that record.
The report was sent through YesWeHack, a platform where security researchers report bugs to organisations. It was rated High with a CVSS score of 8.2. CVSS is a standard scoring system for how serious a security flaw is; 8.2 out of 10 is in the High range. The organisation, the exact web address, the parameter names and the test identifiers have all been anonymised in the write-up, and the examples shown are pseudocode, meaning simplified fake code that illustrates the idea rather than the real request.

The image shows the author's YesWeHack reward card for the accepted report.
Before going further, a few words that will come up constantly.
- A server is the computer (or group of computers) that runs a website and stores its data. Your browser is the client: it asks, the server answers.
- An API is the way a website's own pages talk to its server behind the scenes. When you click something on a shop page and a list of pickup points appears without the whole page reloading, your browser has usually sent a small structured message to an API and received data back. That message is often in a format called JSON, which is just text organised as labelled values, a bit like a very strict shopping list.
- A database is where the server keeps its records, for example one row per pickup point. Each row usually has an identifier: a unique number or code that names that specific row, like a seat number in a theatre.
- A session or authentication token is what proves who you are after you log in. Think of it as a wristband you get at the door of an event: you show it to prove you already checked in. A request sent without a session or token is treated as coming from a guest, someone the server cannot identify.
- Guest checkout means buying without creating an account. Shops allow it because requiring sign-up loses sales, but it means some parts of the checkout must work for people the server knows nothing about.
Context
The target was a pickup-point widget in an e-commerce checkout flow. A widget here just means a small interactive component embedded in the checkout page. The widget lets a customer choose a pickup location during checkout, and it receives a JSON object describing the selected point, including details such as a business name and address. The application then uses values from that object to populate a shared database record.
"Populate a record" means filling in the fields of a database row with the values that arrived in the request. "Shared" matters: this is not a private row belonging to one customer, it is a row in a table that the checkout workflow reads from, so changing it can change what other people see.
The feature is reachable during guest checkout, so a customer can select a pickup point without having an account. That is a normal, legitimate need. The report was submitted through YesWeHack and was rated High with a CVSS score of 8.2. The organisation, endpoint, parameter names and test identifiers have been anonymised in the write-up, and the examples are pseudocode rather than production requests.
Setup
The work started from a source review of a delivery integration, not from black-box probing. Two terms there:
- Source review means reading the application's code (or code the researcher had access to) to understand how it works, rather than only poking at the live site and guessing.
- Black-box probing is the opposite: sending requests to a live system and observing replies without seeing the code inside.
Starting from the source is like reading the recipe before cooking, instead of tasting the dish and trying to guess the ingredients. It tells you where to look.
The researcher used a fresh, clearly marked test pickup-point reference and synthetic field values, and sent requests without a session or authentication token. "Synthetic" means made up on purpose: fake names and addresses that are obviously test data, so nothing real is touched and anything left behind is easy to recognise. Sending without a token means acting as an anonymous guest, which is exactly the situation a real customer without an account is in.
Burp Suite Repeater was used to reproduce the creation behaviour manually. Burp Suite is a tool that sits between your browser and the website, letting you capture a request, edit it, and send it again as many times as you like. Repeater is the part of it that does exactly that: take one request, change a value, resend, compare the answers. It was used as a separate check that the behaviour was not an artefact of a script. In other words: if a small program produced the result, maybe the program had a bug. Doing it by hand in Repeater rules that out.
No account or role was needed, because the interesting path was the guest checkout path. A role is a category of user such as customer or administrator; the point here is that no special category was required.
Finding it
While reviewing the delivery integration, the pickup-point selection action stood out. The widget accepted an object containing location information, and the source showed that the submitted object was used to populate a model. A model is the code's representation of a database row: the shape of the data as the application handles it. If the model is filled straight from what the client sent, then whatever fields the client includes may end up in the database.
That raised two questions:
- Which fields can a client actually submit?
- Does the server decide which record to update, or can the request choose it?
The second question mattered because guest checkout makes the first one legitimate: a customer may select a pickup point without an account, but a public request should not be able to choose an internal database row to overwrite. This is the heart of the whole finding. Accepting pickup-point details from a guest is fine. Accepting a database row number from a guest, and then writing to that row, is not.
Exploitation
Step 1: establish a baseline
The researcher sent a request with a fresh test pickup-point reference and synthetic field values, without a session or authentication token. The response indicated that the application had created a record and returned an internal identifier. Repeating the baseline with a second fresh test reference created another record. This established what a normal creation response looked like and produced two test rows for the next step.
A baseline is a record of normal behaviour, taken before you try anything unusual. It is like weighing yourself before a diet: without the starting number, you cannot tell what changed. Here the baseline answered: when I send a normal request, the server creates a new row and tells me its identifier. Having two such rows meant the researcher had two known, self-created records to experiment with, which is the safe way to test: never experiment on data you do not own.
This was not a finding by itself. A guest checkout feature may legitimately need to accept some pickup-point data. The open question was whether the request could direct a write to a different existing record.
Step 2: supply an internal identifier
A further request used a new pickup-point reference but also included the internal identifier of the first test row. If the server had selected the record solely from the new reference, a new row would have been expected. Instead, the response showed the existing test row's identifier alongside the new test values.
Read that carefully, because it is the moment the bug appears. The request said "here is a new pickup point, reference TEST-B" but also "and by the way, record 101". A correct server would ignore the record number, because the client has no business naming database rows, and create a new row. This server did not ignore it: it updated row 101 with the new values and reported row 101 back. The reference changed, the record did not.
Step 3: repeat the controlled comparison
The same comparison was repeated against the second test row, with the same result: the identifier supplied in the object selected the row that was updated. The creation behaviour was also reproduced manually in Burp Suite Repeater, giving a separate way to confirm that the request behaviour was not an artefact of a script.
Why repeat? Because one result can be a coincidence. Two results, on two different rows, with the same pattern, is evidence. This is the difference between "I saw something odd once" and "I can make it happen on demand", and the second is what a security team needs before they will act.
Illustrative proof of concept
The report gives pseudocode for a controlled lab. Field names and values are invented to explain the comparison and are not the original endpoint or production payload. A proof of concept (PoC) is a minimal demonstration that the bug is real, stripped of anything unnecessary.
submit pickup_point = {
public_reference: "TEST-A",
label: "Original test location"
}
Line by line:
submit pickup_point = {starts a made-up instruction: send a pickup point object. The curly brace opens a group of labelled values.public_reference: "TEST-A"is the public reference, the harmless name a customer-facing widget would use. It is clearly marked as a test.label: "Original test location"is a descriptive field, the sort of text a customer would see.}closes the object.
This is the baseline request in miniature: a normal creation, no record number, nothing suspicious.
response: record_id = 101, label = "Original test location"
# Comparison: use a new reference with the first test record's ID
submit pickup_point = {
public_reference: "TEST-B",
record_id: 101,
label: "Updated test location"
}
response: record_id = 101, label = "Updated test location"
Line by line:
response: record_id = 101, label = "Original test location"is what came back from the baseline: the server created a row and gave it the internal identifier 101.# Comparison: use a new reference with the first test record's IDis a comment, a note for the reader. It explains the trick about to be tried.submit pickup_point = {starts the second request.public_reference: "TEST-B"is a brand new reference, different from the first. On its own this should mean a brand new row.record_id: 101is the extra field, the one a browser should never need to send. It names the existing row from the baseline.label: "Updated test location"is a new descriptive value, so you can see whether the stored text actually changed.}closes the object.response: record_id = 101, label = "Updated test location"is the answer: the same row 101 came back, now carrying the new label.
The comparison is the important part. The public reference changed, but the returned internal record ID stayed the same and the displayed values changed. In plain terms: the request asked for a new thing and got an old thing, modified. The original request and response evidence was included in the report for the program's security team.
Step 4: read-back test
The researcher then referenced one of the test rows while omitting its descriptive fields. The response returned the values previously stored in that row, showing that the same action could return stored pickup-point information without authentication. "Read-back" means the server hands you back what is stored. Omitting the descriptive fields is the trick: if you do not send a label, and a label still comes back, it can only have come from the database.
The information demonstrated in this read-back was pickup-point business information, including the location's name and address. Exposure of an individual customer's personal data was not demonstrated in this test. That distinction is worth stating plainly: the bug exposed business location details, not a shopper's private information, and the report does not claim otherwise.
Root cause
A root cause is the underlying reason the bug exists, as opposed to the symptom you happen to see. The issue combined two related weaknesses:
- Mass assignment: the application accepted fields from a client-supplied object when populating a model, and a field representing an internal identifier was inside that trust boundary. Mass assignment is easiest to picture as a form where you are supposed to fill in your name, but the form quietly accepts any extra line you write, including lines meant for the staff. The application took the whole object and copied its fields into the model, including the record identifier it should never have accepted.
- IDOR / missing authorization: the supplied identifier influenced which existing record received the update, without an appropriate check on that record. Authorization is the check that asks "is this caller allowed to do this to this thing?". Here, nobody asked. The identifier arrived, and the server used it.
The server should have determined the update target from trusted context and handled client-supplied fields according to their intended purpose. "Trusted context" means information the server itself knows, such as which session or workflow the request belongs to, rather than a number the caller typed. The report does not describe the specific code that performed the lookup or the checks that were absent, so the exact defensive gap beyond these two points is not stated.
Impact
Impact means what an attacker could actually do with the bug, which is what decides how serious it is. The strongest demonstrated result was an unauthenticated write to two existing, self-created rows in a shared pickup-point table. "Unauthenticated" means without logging in. "Write" means changing stored data. Note the honesty of the claim: two rows, both created by the researcher for the test.
The test also showed read-back of stored values from a self-created row.
Because the feature feeds pickup-point selection during checkout, changing shared location data could affect the information presented in that workflow. The test did not establish how a change would affect carrier-facing systems or shipping labels, so that was left as a question for the team. "Carrier-facing" means the delivery companies' own systems. Saying "I do not know" about a possible consequence is normal and respected in reports; guessing would be worse.
No bulk overwrite was run and service availability was not tested. In other words, the researcher did not try to change many records at once and did not try to break the service. That restraint is deliberate: proving a bug does not require causing damage.
The report also documented the harmless test records left behind and asked the program to clean them up. Reproducibility includes telling the receiving team what changed during a test. If you leave test rows in a live database, the team needs to know, both to tidy up and to be sure nothing else was touched.
Fix
The report sets out what should be done rather than describing a change that was made:
- Separate the request model from the database model. Define exactly which pickup-point fields the client may supply. Reject or ignore internal database identifiers in the public request. In everyday terms: have a short guest list of allowed fields, and turn away anything not on it.
- Select records on the server. Derive the target from trusted, appropriately scoped application context, then enforce the authorization rules for that operation. The server, not the caller, decides which row is involved, and then checks that this caller may act on it.
- Validate location data. Verify submitted pickup-point details against a trusted source when the integration requires authoritative carrier data. "Validate" means check that the data is plausible and comes from somewhere trustworthy, rather than accepting whatever arrives.
- Add regression tests. In a test environment, create two synthetic records. Submit an update containing the other record's ID and confirm it cannot change that record. Check which fields a guest response is allowed to return. A regression test is an automated check that a fixed bug stays fixed; if someone later reintroduces the flaw, the test fails.
- Review similar actions. Look for other endpoints that populate database models from client-supplied objects, including routes used by guests. An endpoint is one specific address on a server that accepts requests, like one counter in a large office. If one counter had this flaw, the others deserve a look.
Variants to test
The report recommends reviewing other endpoints that populate database models from client-supplied objects, including routes used by guests. Concrete things to try:
- Add an internal identifier to a create request. Send the normal creation payload plus a guessed or previously observed record identifier. A positive result is a response that echoes the supplied identifier with the new values, showing the write landed on the existing row rather than creating a new one.
- Change the public reference while keeping the identifier. Repeat the same request with a different public reference and the same internal identifier. A positive result is the same record identifier coming back with the changed values, which isolates the identifier as the selector. "Isolates" means you have changed only one thing, so that one thing must be the cause.
- Omit descriptive fields on a read-back. Reference a record you created while leaving out its descriptive fields. A positive result is the stored values being returned without authentication.
- Test other guest routes that populate models. Look for checkout, delivery and location-selection actions that accept structured objects. A positive result is any client-supplied field that selects or changes a stored object.
- Check which fields a guest response returns. Compare the fields returned to an unauthenticated caller against what the workflow needs. A positive result is internal identifiers or stored business data appearing in a guest response.
Keep every test on records you created yourself, and tell the receiving team what you left behind. That last line is the whole ethic of the exercise in one sentence: test on your own data, and be transparent about what you did.
Glossary
- API: the channel a website's pages use to exchange structured messages with its server, often without reloading the page.
- Authentication: proving who you are, usually by logging in or presenting a token.
- Authentication token: a value that proves you already logged in, like a wristband at an event.
- Authorization: the check of whether an identified caller is allowed to perform a specific action on a specific thing.
- Baseline: a record of normal behaviour taken before testing, so later changes can be compared against it.
- Black-box probing: testing a live system by sending requests and watching replies, without seeing its code.
- Burp Suite Repeater: a tool that captures a single web request, lets you edit it, and resends it so you can compare responses.
- Carrier-facing systems: the delivery companies' own systems, as opposed to the shop's customer-facing pages.
- Client: the program on your side, usually your browser, that sends requests to a server.
- CVSS: a standard scoring system for the severity of a security flaw, from 0 to 10.
- Database: organised storage where a server keeps its records, typically as rows in tables.
- Endpoint: one specific address on a server that accepts requests, like one counter in a large office.
- Guest checkout: buying without creating an account, so the server cannot identify the buyer.
- IDOR (Insecure Direct Object Reference): a bug where a request names a stored object directly and the server acts on it without checking the caller is allowed to.
- Identifier: a unique number or code that names one specific record, like a seat number.
- Impact: what an attacker could actually do with a bug, which drives how serious it is.
- JSON: a text format for structured data, made of labelled values grouped in braces.
- Mass assignment: a bug where an application copies every field from a client-supplied object into its internal model, including fields the client should never control.
- Model: the code's representation of a database row, the shape of the data as the application handles it.
- Payload: the data sent inside a request.
- Proof of concept (PoC): a minimal demonstration that a bug is real.
- Pseudocode: simplified, invented code that illustrates an idea rather than running as written.
- Read-back: a response in which the server returns stored data to the caller.
- Regression test: an automated check that a fixed bug stays fixed.
- Role: a category of user, such as customer or administrator, that determines permissions.
- Root cause: the underlying reason a bug exists, as opposed to the symptom you observe.
- Server: the computer or group of computers that runs a website and stores its data.
- Session: a period of interaction the server associates with one identified user, usually tracked by a token.
- Source review: reading an application's code to understand how it works, rather than only probing the live site.
- Synthetic data: made-up test values, clearly marked, so nothing real is touched.
- Unauthenticated: sent without logging in or presenting a token, so the server treats the caller as a guest.
- Validate: check that data is plausible and comes from a trustworthy source before using it.
- Widget: a small interactive component embedded in a web page.
- Write: a change to stored data, as opposed to reading it.