IDOR leads to leak private user’s data
An online shop's community subdomain exposed private user data through a URL parameter called id. By changing the id value, an attacker could view another user's private information.
Published on medium.com
Unfortunately, none of these methods revealed any vulnerabilities. As part of my standard process, I turned to waybackurls to extract historical URLs related to the target domain.
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 did not verify that the requesting user was authorised to access the data for the given id.
Impact
The vulnerability could lead to breaches of user privacy and violation of data protection regulations such as GDPR.
What the attacker needed
Access to the community subdomain; a user id parameter in the URL
The fix
The site should implement proper access controls so every request is validated to confirm the user's permissions for the requested resource.
How it was found
- Use waybackurls and grep for 'token' to find historical URLs on the target domain.
- Access the discovered URLs on the community subdomain and notice sensitive user data displayed.
- Intercept requests with Burp Suite and find an id parameter in a user URL.
- Change the id value to another user's ID and send the request.
- Receive a response containing private information about another user.
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 sometimes uses a number in the web address to pick which user's page to show. If the site does not check that you are allowed to see that user's page, you can just change the number and see someone else's private details. This is called an IDOR, short for Insecure Direct Object Reference.
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.