Skip to content
IDOR Write-up Intermediate

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.

SpyD3r Follow

Published on spyclub.tech

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.

SpyD3r (@TarunkantG), on spyclub.tech

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

  1. Identify that the `uid` parameter can be enumerated to retrieve user details.
  2. In the request for asking a question, observe parameters `asked_uid` and `viewer`.
  3. Attempt to change the `viewer` parameter, which fails.
  4. Add an additional `uid` parameter in `kwargs` or `args` to overwrite the user ID.
  5. 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.

More by SpyD3r

View all

2 more disclosed reports, best first.

More from Quora

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.