The Story Of A Strange / Stored IDOR.
A banking website's profile update endpoint accepted a user-controlled identifier, allowing the attacker to change another user's profile data and read their information. The attacker could also store data on other users' profiles and escalate an XSS.
Published on medium.com
My name is Hassan Farooq (Hack3rOn3) . IAM From Pakistan.
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 an IDOR that behaved in a way the author had not seen before. The target was a bank website. The author, Hassan Farooq (Hack3rOn3), was 18 at the time and had started bug hunting at 16. He notes up front that English is not his first language.
The feature involved is the customer profile page of a digital banking account. A profile has fields such as a last name, and saving the profile sends a request that carries an identifier for the record being updated. Normally such a request should only ever touch the authenticated user's own record.
Setup
- The author first spent about two hours on the bank site testing functionality and parameters. In that pass he found three other issues: access to a bank mail service, an OTP verification bypass, and XSS.
- Using the OTP bypass, he created a digital account on the banking website with a fake number.
- He opened his profile, started Burp, refreshed the page and captured the profile request.
- The captured request contained a number of parameters that looked potentially vulnerable to IDOR, so he sent it to Repeater and tested each parameter.

The image sits at the point in the story where the first round of testing on the site had already produced the three findings listed above.
Finding it
The first round of parameter testing in Repeater produced nothing. He tried many approaches without a result, then decided to give it another try.

What changed the outcome was not a new payload but a change in the state of the profile. He removed the last name from his profile and clicked save, then intercepted the request and changed the identifier parameter from _id=1211221 to _id=1211220, and forwarded it.
His own profile's last name was automatically filled with another person's name.

He then tested the same action without interception. Removing the last name and clicking save produced an error saying the last name is blank. So the blank field alone is rejected by the application, but with a changed identifier the field was populated from another record.
He repeated the sequence, this time changing the parameter to _id=1211219, and the field was again filled automatically. He describes this as strange because he had never experienced this kind of IDOR before.
Exploitation
Step 1: Capture the profile save request
With Burp running, open the profile, remove the last name, click save and intercept the outgoing request. The request carries the record identifier as a parameter named _id, with the value 1211221 for his own profile.
Step 2: Change the identifier and forward
Modify the identifier in the intercepted request and forward it:
_id=1211220
The parameter changed was _id. Changing it from his own value to a neighbouring value caused the last name field of his profile to be filled with another person's name.
Step 3: Confirm the behaviour is repeatable
He repeated the process with a different identifier:
_id=1211219
The field was again filled automatically.
Step 4: Control test without interception
Removing the last name and clicking save without intercepting the request returns an error stating that the last name is blank. This shows the application rejects a blank last name in the normal flow.
Step 5: Enumerate
At this point the technique was reduced to a simple recipe: make the relevant areas blank and change the _id parameter. Other users' data could then be seen easily. He also found other endpoints later that leaked other information, including cc data.
Root cause
The report does not include server-side code, so the following is inferred from behaviour. The report does not explain the cause. The author describes the outcome as being able to save data to other users' profiles, to store their data on his own profile, and to escalate XSS.
Impact
The author states that other users' data could be seen easily and that he was able to save data to other users' profiles. The author also states that other endpoints leaked further information such as cc data, and that the issue could be used to escalate XSS and to store other users' data on his own profile. The report does not quantify how many records were affected or what identifiers were in range.
Fix
The report does not describe any fix. The author states that he reported the issue to the bank and received no reply. The measure the behaviour points to is server-side authorisation on the _id: the save handler should derive the record from the session rather than from a client-supplied identifier, or verify that the identifier belongs to the authenticated user before reading or writing.
Variants to test
- State-changing requests with an object identifier: remove a required field, save, intercept, and swap the identifier for a neighbouring value. A positive result is the field being populated from another record instead of an error.
- Validation bypass through identifier swap: submit a blank or invalid value normally and confirm it is rejected, then repeat with a modified identifier. A positive result is the same invalid input being accepted once the identifier changes.
- Identifier enumeration on profile endpoints: decrement or increment the identifier across a small range and compare responses. A positive result is consistent data from different records.
- Secondary endpoints reached from the profile: test other endpoints that return account or payment data for the same identifier handling. A positive result is data belonging to another user being returned.
- Write-side testing: after reading another record, attempt to save changes to it. A positive result is the other user's record being modified.
What happened, in plain words
A security researcher found a bug in a bank website that let him see other people's profile data and save data to their profiles. The bug is called an IDOR (Insecure Direct Object Reference). In simple terms, it means the website used a number (like a user ID) to decide whose data to show or change. So by changing the number, the researcher could access other users' records.
The researcher first found other issues on the site, including a way to bypass OTP (One Time Password) verification. He used that to create a fake account. Then, while testing the profile page, he discovered that by removing his last name and changing the _id parameter in the request, his profile's last name would automatically fill with another user's name. He could repeat this with different IDs and the field was again filled automatically. He also found other endpoints that leaked information like credit card data. He reported it to the bank but got no reply.
This article explains the whole process step by step, for someone who is new to security. We'll cover what each term means, how the researcher did it, and why each step was taken.
Background and setup
The researcher, Hassan Farooq (also known as Hack3rOn3), was 18 years old and from Pakistan. He started bug hunting at 16. He mentions that English is not his first language, so please ignore any mistakes.
Before this finding, he spent about two hours on the bank website testing various features and parameters. During that time, he found three other vulnerabilities:
- Access to a bank mail service
- OTP verification bypass
- XSS (Cross-Site Scripting)

This image is placed where the researcher had already found those three issues.
Using the OTP bypass, he created a digital account on the banking website with a fake phone number. OTP bypass means he could get past the one-time password check, which is usually sent to a phone, without having access to that phone. This allowed him to register without a real number.
He then opened his profile page. A profile page is where your personal details are stored, like your name. He started Burp Suite (a tool that lets you intercept and modify web traffic) and refreshed the page to capture the request that loads the profile. The request contained many parameters (pieces of data sent to the server). He thought some of them might be vulnerable to IDOR, so he sent the request to Burp's Repeater (a tool that lets you send the same request multiple times with modifications) and tested each parameter.

This image is placed where he decided to give it another try after the first round of testing.
Finding the vulnerability
The first round of testing in Repeater did not yield anything. He tried many approaches but found nothing. Then he thought, "let's give it another try."
What changed the outcome was not a new payload but a change in the state of the profile. He removed the last name from his profile and clicked save. Then he intercepted the request (using Burp) and changed the identifier parameter from _id=1211221 to _id=1211220, and forwarded the request.
The response was unexpected: his own profile's last name was automatically filled with another person's name.

This image shows the result: his last name field was filled with someone else's name.
He then tested the same action without interception. Removing the last name and clicking save produced an error saying the last name is blank. So the blank field alone is rejected by the application, but the same blank field combined with a changed identifier is accepted and populated from another record.
He repeated the sequence, this time changing the parameter to _id=1211219, and the field was again filled automatically. He describes this as strange because he had never experienced this kind of IDOR before.
Exploitation steps
Step 1: Capture the profile save request
With Burp running, open the profile, remove the last name, click save and intercept the outgoing request. The request carries the record identifier as a parameter named _id, with the value 1211221 for his own profile.
Step 2: Change the identifier and forward
Modify the identifier in the intercepted request and forward it:
_id=1211220
This line is the parameter that was changed. _id is the name of the parameter that tells the server which profile record to update. The original value was 1211221 (his own record), and he changed it to 1211220 (a neighbouring record, likely another user's). By forwarding the request, he sent the modified request to the server. The request was forwarded with the changed _id value. The response showed the last name field filled with another person's name. However, the response showed that the last name field was filled with the other user's last name, indicating that the server returned data from that record.
Step 3: Confirm the behaviour is repeatable
He repeated the process with a different identifier:
_id=1211219
Again, the _id parameter was changed, this time to 1211219. The field was again filled automatically with data from the corresponding record. The field was again filled automatically.
Step 4: Control test without interception
Removing the last name and clicking save without intercepting the request returns an error stating that the last name is blank. This shows the application does validate the field in the normal flow; the bypass comes from combining the blank field with a modified identifier. In other words, when the request is not tampered with, the server checks that the last name is not blank and rejects it. But when the _id is changed, the field was populated from another record.
Step 5: Enumerate
At this point the technique was reduced to a simple recipe: make the relevant areas blank and change the _id parameter. Other users' data could then be seen easily. He also found other endpoints later that leaked other information, including cc data (credit card data). Enumerate means to try a series of IDs (like 1211219, 1211220, etc.) to see what data is returned.
Root cause
The report does not include server-side code, so the following is inferred from behaviour. The report does not explain the cause. The author describes the outcome as being able to save data to other users' profiles, to store their data on his own profile, and to escalate XSS.
Impact
The author states that other users' data could be seen easily and that he was able to save data to other users' profiles. The author also states that other endpoints leaked further information such as cc data, and that the issue could be used to escalate XSS and to store other users' data on his own profile. The report does not quantify how many records were affected or what identifiers were in range.
Fix
The report does not describe any fix. The author states that he reported the issue to the bank and received no reply. The measure the behaviour points to is server-side authorisation on the _id: the save handler should derive the record from the session rather than from a client-supplied identifier, or verify that the identifier belongs to the authenticated user before reading or writing.
Variants to test
- State-changing requests with an object identifier: remove a required field, save, intercept, and swap the identifier for a neighbouring value. A positive result is the field being populated from another record instead of an error.
- Validation bypass through identifier swap: submit a blank or invalid value normally and confirm it is rejected, then repeat with a modified identifier. A positive result is the same invalid input being accepted once the identifier changes.
- Identifier enumeration on profile endpoints: decrement or increment the identifier across a small range and compare responses. A positive result is consistent data from different records.
- Secondary endpoints reached from the profile: test other endpoints that return account or payment data for the same identifier handling. A positive result is data belonging to another user being returned.
- Write-side testing: after reading another record, attempt to save changes to it. A positive result is the other user's record being modified.
Glossary
- IDOR (Insecure Direct Object Reference): A type of vulnerability where an application uses user-supplied input to access objects (like database records) directly, without proper authorisation checks, allowing an attacker to access or modify data they shouldn't.
- OTP (One Time Password): A password that is valid for only one login session or transaction, often sent via SMS or email.
- OTP bypass: A method to circumvent the OTP verification step, often by exploiting flaws in the verification logic.
- XSS (Cross-Site Scripting): A vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.
- Burp Suite: A set of tools for web application security testing, including intercepting and modifying HTTP requests.
- Repeater: A Burp Suite tool that allows you to manually modify and resend individual HTTP requests.
- Parameter: A piece of data sent in an HTTP request, often in the URL or body, like
_id=1211221. - Endpoint: A specific URL or URI where an API or web service can be accessed.
- API (Application Programming Interface): A set of rules that allows different software applications to communicate with each other.
- Cookie: A small piece of data stored on the user's computer by the web browser while browsing a website, often used to maintain session state.
- Token: A piece of data used to authenticate a user or request, often in the form of a string.
- Session: A period of interaction between a user and a system, often maintained via cookies or tokens.
- Server-side: Actions or checks performed on the server (the computer hosting the website) rather than on the client (the user's browser).
- Client-side: Actions or checks performed in the user's browser.
- Authorisation: The process of checking if a user has permission to perform an action or access a resource.
- Authentication: The process of verifying a user's identity.
- Enumeration: The act of systematically trying a range of values (like IDs) to discover valid ones or gather information.
- CC data: Credit card data.
- Payload: The part of a request that carries the malicious or test data, often the value of a parameter.