Horizontal Privilege Escalation on Quora which can compromise all users on Quora
A horizontal privilege escalation flaw allowed an attacker to overwrite the user identifier in request parameters, enabling them to ask questions or post answers as any other user on Quora. This could compromise all users by impersonating them in these actions.
Hey, I am SpyD3r(@TarunkantG) and in this blog, I will be discussing the bug I have found in Quora which can compromise all users on Quora due to Horizontal Privilege Escalation.
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 application trusted a user-supplied parameter to determine the acting user's identity without proper validation, allowing parameter pollution to override the intended user ID.
Impact
An attacker could impersonate any user, including high-profile accounts, to ask questions or post answers, potentially compromising all users on Quora.
What the attacker needed
A Quora account; knowledge of the victim's user ID
The fix
The vulnerability was fixed by Quora within less than four hours after being reported.
How it was found
- Identify that the `uid` parameter can be enumerated to retrieve user details.
- In the request for asking a question, observe parameters `asked_uid` and `viewer`.
- Attempt to change the `viewer` parameter, which fails.
- Add an additional `uid` parameter in `kwargs` or `args` to overwrite the user ID.
- Successfully ask questions or post answers as 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.
This report describes a bug where a user could change a hidden identifier in a web request to make the site think they were someone else. By adding an extra parameter, they could perform actions like asking or answering questions as any other user, which is a serious impersonation issue.
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.