P1 Bug — PII information disclosure
A gift-sent page took a sequential numeric identifier in the URL, encoded only with URL encoding and base64. By changing that number, an attacker could view other people's gift records and the sensitive personal and bank details of anyone who had sent a gift.
Published on medium.com
Hello amazing penetration testers and bug bounty hunters, I hope you all are fine ❤ In this blog I will be explaining the bug that I recently found on private program through which I was able to fetch the sensitive information. Let us call the program as example.com.
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.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusted a user-supplied sequential identifier and returned the matching record without checking that the requester owned it.
Impact
An attacker could enumerate records and read other users' email addresses, names and bank details.
What the attacker needed
A free account; ability to send a gift
How it was found
- Send a gift to another person and reach the final gift-sent page.
- Notice the id parameter in the URL of that page.
- URL-decode and base64-decode the id value to get a plain number.
- Change the number to a neighbouring value and load the page.
- Observe another person's gift record and their sensitive details.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you send a gift, the site puts a number in the web address to say which gift record to show. That number was simply hidden by encoding it, not protected, so anyone could change it to a nearby number and see someone else's record. The page then showed private details like email and bank information that should only be visible to the owner.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.