Exposing Information Of All Users “Email,Mobile Number ..etc”
An API endpoint returned user profile data including email addresses, mobile numbers, city and country, and the amount of data returned could be increased by changing a pagination parameter. By iterating over portfolio identifiers, an attacker could collect information for many users rather than just their own account.
I will discuss how I can expose the information of all users, such as email addresses, phone numbers,city …etc.
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 endpoint did not check that the caller was allowed to read the requested portfolio and accepted an unbounded page size, so it returned other users' profile fields.
Impact
An attacker could harvest the email addresses, mobile numbers and location details of a large number of users, which could enable spam, phishing or further account attacks.
What the attacker needed
A valid account on the site; ability to send API requests
How it was found
- Find the portfolio API endpoint while exploring the target.
- Notice that the response contains your own account information.
- Increase the feedPerPage parameter to make the response return many more records.
- Change the portfolioid parameter and observe that another user's data is returned.
- Script requests over a list of portfolio IDs to collect profiles into a file.
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.
A website's API is the behind-the-scenes service its pages talk to. This one handed back personal details about other people when the author changed a couple of values in the request, such as how many results to return and which user's portfolio to look at. That let them pull a large list of users' emails and phone numbers instead of only their own.
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.