Hunting for Corporate Accounts: Exploiting IDOR and Parameter Pollution in Web Applications
The application used a sequential id parameter to fetch user profiles without proper access control, and duplicate id parameters bypassed the check, letting the tester view other users' names. The edit-profile email change feature also revealed whether an email was already registered, enabling enumeration of corporate email addresses.
Published on medium.com
Web applications can often harbor hidden vulnerabilities that, once uncovered, allow attackers to gain unauthorized access to sensitive information. During a recent penetration test, I discovered two critical vulnerabilities: Insecure Direct Object Reference (IDOR) and Parameter Pollution.
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 validated access using one instance of a duplicated parameter but fetched data using the other, and the email-change endpoint returned distinct messages for registered and unregistered addresses.
Impact
The tester could view other users' profile details and enumerate the names and corporate email addresses of around 600 accounts, which could support phishing, credential stuffing or password resets; the text does not show that any account was taken over.
What the attacker needed
A free account; ability to send crafted requests
The fix
The application should enforce server-side authorisation on every profile request, avoid trusting duplicated parameters, use non-sequential identifiers, return uniform responses for email registration checks, and add rate limiting.
How it was found
- Change the id value in the profile URL to another user's identifier.
- Observe that a single changed id returns a generic error.
- Send the id parameter twice, with the first value matching the tester's own account and the second matching another user.
- See the other user's name and details displayed while the session remains the tester's.
- Automate requests with varied id values to collect active user names.
- In the edit-profile email field, submit candidate addresses and read the server's response to learn whether each is registered.
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.
An IDOR is when a website uses a simple identifier, like a number in the address, to decide which record to show, and does not check that you are allowed to see it. Here, sending the same parameter twice confused the check: the first value proved it was the tester's own account, while the second value selected someone else's profile. Separately, the email-change form told users whether an address was already registered, which let the tester work out which corporate emails had accounts.
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.