#BugBounty — How Naaptol (India’s popular home shopping company) Kept their Millions of User Data at Risk!
The shipping address endpoint used an incremental address ID without checking ownership, so changing the ID returned other users' full name, address and mobile number. The attacker could enumerate IDs to harvest many users' details.
Published on medium.com
#### Avinash Jain (@logicbomb1)
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
Naaptol is described in the report as India's popular home shopping company. The feature in scope is the shipping address selection that every online shopping site offers: during the payment flow the user picks the address to which the product should be shipped. The site identifies each address by an address id, and the request that returns the address details takes that id as its input.
This write-up comes from the researcher's early days of bug bounty hunting. The stated purpose is not to explain the technique but to highlight poor security standards in the IT industry and the loopholes left unattended even by big firms.
Setup
The report names only Burp Intruder, used for the brute force. No account details, roles or versions are given. The precondition is simply a normal shopping session in which the payment flow requests the shipping address, producing a request that carries an address id.
Finding it
While going through the payment flow, the researcher captured the HTTP request that fetches the shipping address. The response to that request contains the address together with the complete user details associated with the address id.

Shipping Address HTTP request during payment
The response body is shown next: it holds the address and the user's complete details tied to that id.

User Address Details
The researcher found the address ids to be incremental. The researcher also found the ids to be incremental.
Exploitation
Step 1: Change the address id
The researcher changed the address id in the request from 17917835 to 17917837, a neighbouring value, and the application returned the full details of the other user associated with that id. Those details include the victim's full name, complete address and mobile number.
Accessing other user details
Accessing other user details
Changing the id by two returned another user's full details, including name, address and mobile number.
Step 2: Brute force the id space
Because the ids are sequential, the researcher ran Intruder over the address id and brute forced it, fetching the complete details of a large number of Naaptol users.

Naaptol User Details
Root cause
The application exposes an object (the shipping address record) through a client-supplied identifier and returns it without verifying that the record belongs to the requesting user. This is a classic Insecure Direct Object Reference. The predictability of the identifier, which the researcher found to be incremental, turns a single missing authorisation check into a mass-enumeration problem: any authenticated user can walk the id space and collect other customers' records. The report does not describe any server-side control that would have limited this.
Impact
The researcher read other users' full names, complete addresses and mobile numbers, and fetched a large number of users' details by brute forcing the incremental ids. The exposure is limited to the data returned by this address lookup, but that data is directly identifying and includes physical addresses and phone numbers. The researcher describes fetching the details of a large number of Naaptol users, and the title speaks of millions of user data at risk.
Fix
The report states that the vulnerability was later found to be fixed; it does not describe the change that was made.
Timeline
| Date | Event |
|---|---|
| 05-May-2016 | Naaptol team notified by mail |
| Between the two notifications | Conversation dropped by the Naaptol team |
| Later | Vulnerability found to be fixed |
| 06-June-2016 | Team notified for responsible disclosure |
The researcher closes by noting that many companies still fail to appreciate and acknowledge the efforts of ethical hackers trying to make the internet safer.
Variants to test
- Neighbouring numeric ids on any address, order or profile endpoint. Capture a request that returns a user-owned record and increment or decrement the id. A positive result is another user's data in the response.
- Bulk enumeration with Intruder. Once a single id swap works, run a sequential payload set over the id parameter. A positive result is a stable stream of distinct users' records rather than errors or your own record repeated.
- Ids in unexpected places. Check identifiers carried in JSON bodies, hidden form fields and path segments, not only query strings, since the same missing check often exists on several endpoints of the same feature.
- Mixed identifier types. Where ids are UUIDs, test whether the application also accepts a numeric or otherwise guessable form of the same object, which would restore enumerability.
- Second-order lookups. Use an id obtained from one endpoint (for example an address id from the payment flow) against another endpoint that accepts the same kind of id, to see whether the ownership check is applied consistently.
What happened, in plain words
Naaptol is described in the report as India's popular home shopping company. The feature involved is the shipping address selection that every online shopping site offers: during the payment flow the user picks the address to which the product should be shipped. The site identifies each address by an address id, and the request that returns the address details takes that id as its input.
This write-up comes from the researcher's early days of bug bounty hunting. The stated purpose is not to explain the technique but to highlight poor security standards in the IT industry and the loopholes left unattended even by big firms.
Setup
The report names only Burp Intruder, used for the brute force. No account details, roles or versions are given. The precondition is simply a normal shopping session in which the payment flow requests the shipping address, producing a request that carries an address id.
Finding it
While going through the payment flow, the researcher captured the HTTP request that fetches the shipping address. The response to that request contains the address together with the complete user details associated with the address id.

Shipping Address HTTP request during payment
The response body is shown next: it holds the address and the user's complete details tied to that id.

User Address Details
The researcher found the address ids to be incremental. The researcher also found the ids to be incremental.
Exploitation
Step 1: Change the address id
The researcher changed the address id in the request from 17917835 to 17917837, a neighbouring value, and the application returned the full details of the other user associated with that id. Those details include the victim's full name, complete address and mobile number.
Accessing other user details
Accessing other user details
Changing the id by two returned another user's full details, including name, address and mobile number.
Step 2: Brute force the id space
Because the ids are sequential, the researcher ran Intruder over the address id and brute forced it, fetching the complete details of a large number of Naaptol users.

Naaptol User Details
Root cause
The application exposes an object (the shipping address record) through a client-supplied identifier and returns it without verifying that the record belongs to the requesting user. This is a classic Insecure Direct Object Reference. The predictability of the identifier, which the researcher found to be incremental, turns a single missing authorisation check into a mass-enumeration problem: any authenticated user can walk the id space and collect other customers' records. The report does not describe any server-side control that would have limited this.
Impact
The researcher read other users' full names, complete addresses and mobile numbers, and fetched a large number of users' details by brute forcing the incremental ids. The exposure is limited to the data returned by this address lookup, but that data is directly identifying and includes physical addresses and phone numbers. The researcher describes fetching the details of a large number of Naaptol users, and the title speaks of millions of user data at risk.
Fix
The report states that the vulnerability was later found to be fixed; it does not describe the change that was made.
Timeline
| Date | Event |
|---|---|
| 05-May-2016 | Naaptol team notified by mail |
| Between the two notifications | Conversation dropped by the Naaptol team |
| Later | Vulnerability found to be fixed |
| 06-June-2016 | Team notified for responsible disclosure |
The researcher closes by noting that many companies still fail to appreciate and acknowledge the efforts of ethical hackers trying to make the internet safer.
Variants to test
- Neighbouring numeric ids on any address, order or profile endpoint. Capture a request that returns a user-owned record and increment or decrement the id. A positive result is another user's data in the response.
- Bulk enumeration with Intruder. Once a single id swap works, run a sequential payload set over the id parameter. A positive result is a stable stream of distinct users' records rather than errors or your own record repeated.
- Ids in unexpected places. Check identifiers carried in JSON bodies, hidden form fields and path segments, not only query strings, since the same missing check often exists on several endpoints of the same feature.
- Mixed identifier types. Where ids are UUIDs, test whether the application also accepts a numeric or otherwise guessable form of the same object, which would restore enumerability.
- Second-order lookups. Use an id obtained from one endpoint (for example an address id from the payment flow) against another endpoint that accepts the same kind of id, to see whether the ownership check is applied consistently.
Glossary
- API: the part of a website that answers requests from a browser or app with data, rather than with a page to look at.
- Address id: the number the site uses to tell one saved shipping address apart from another.
- Authenticated user: someone who has logged in, so the site knows who they are.
- Authorisation check: the server-side test that asks whether this particular user is allowed to see this particular record.
- Brute force: trying many values one after another, usually automatically, until something interesting comes back.
- Burp Intruder: a tool inside the Burp proxy that sends the same request many times, each time with a different value in a chosen spot.
- Client: the browser or app on the user's side, as opposed to the server.
- Endpoint: one specific address on a server that accepts a particular kind of request.
- Enumeration: walking through a list of possible values to collect every record that can be reached.
- HTTP request: the message a browser sends to a server to ask for something.
- HTTP response: the message the server sends back, containing the data or an error.
- IDOR (Insecure Direct Object Reference): a bug where the site lets you name a record directly by its id and does not check that the record is yours.
- Incremental id: a number that goes up by one for each new record, so the next record's id can be guessed.
- Parameter: a named value sent with a request, such as an id or a search term.
- Payload set: the list of values a brute-force tool tries, one per request.
- Proxy: a tool that sits between your browser and the server so you can see and change the traffic.
- Responsible disclosure: telling a company about a bug privately and giving it time to fix it before saying anything publicly.
- Root cause: the underlying reason a bug exists, as opposed to its visible symptom.
- Server-side control: a check performed on the server, which the user cannot bypass by editing what their browser sends.
- Session: the period during which the site remembers that you are logged in.
- UUID: a long random-looking identifier that is very hard to guess.
- Vulnerability: a weakness in a system that someone can use to make it behave in a way its owners did not intend.