Skip to content
IDOR Disclosed report Beginner

IDOR bug to See hidden slowvote of any user even when you dont have access right

A slowvote (poll) marked as visible to no one, or only to specific users, could still be read by any logged-in user through the slowvote.info API endpoint. An attacker could therefore read the contents of any hidden poll by supplying its identifier.

ranjit_p Follow

Originally disclosed on HackerOne

Bounty$300 View original
  • Triaged in 43 hours
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 33 days

USER ACCOUNT

  1. user A (who create slowvote)
  2. User B (Dont have permissioon to see above slowvote)
  3. User C (has permission to see above slowvote)

STEP TO REPRODUCE

  1. From user A account goto http://phabricator.localhost.com/vote/create/ and create a slowvote . Change this slowvote "Visible To" to "No one" or to user C . Slowvote url will be now like http://phabricator.localhost.com/V1 .

  2. Now user B visit above slowvote url http://phabricator.localhost.com/V1 and see that he dont have access permission .

Now user B sent bellow request and can see any hidden slowvote

POST /api/slowvote.info HTTP/1.1
Host: phabricator.localhost.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 83
Connection: close
Cookie: phsid=smpm4rp6yltbzna3qda2nwbomsoidzwjfshkkw7v; phusr=admin
Upgrade-Insecure-Requests: 1

__csrf__=B%40wmnrkyq3468c99179280354c&__form__=1&params%5Bpoll_id%5D=1&output=human

here just change poll_id parameter value to your target poll id and see that hidden poll

Impact

Fix this

The original report as published on HackerOne, by ranjit_p. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Phabricator, and the feature under test is Slowvote, the poll application. The researcher set up three accounts to demonstrate the problem:

  1. User A creates a slowvote.
  2. User B has no permission to see that slowvote.
  3. User C does have permission to see it.

From user A's account, the researcher goes to http://phabricator.localhost.com/vote/create/ and creates a slowvote, setting its "Visible To" field to "No one" or to user C. The resulting slowvote URL takes the form http://phabricator.localhost.com/V1.

User B then visits that URL and is correctly refused access. Despite that, user B can still retrieve the hidden poll by sending the following request:

HTTP
POST /api/slowvote.info HTTP/1.1
Host: phabricator.localhost.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 83
Connection: close
Cookie: phsid=[redacted]; phusr=[redacted]
Upgrade-Insecure-Requests: 1

__csrf__=[redacted]&__form__=1&params%5Bpoll_id%5D=1&output=human

Changing the poll_id parameter to the identifier of any target poll returns that poll's details, including polls the caller is not allowed to view. The report records a bounty of 300.00 USD and was disclosed on 29 August 2019. It gives no severity rating or CVSS score, and the impact section contains only the words "Fix this".

Root cause

The report shows that the API method slowvote.info returns a poll's information to a user who was refused access to that poll in the web UI. The web UI refused user B access, yet the API request returned the hidden poll. This is the classic shape of an insecure direct object reference: authorisation is decided by the interface rather than by the object being accessed, so a second interface to the same data bypasses it.

Impact

In the researcher's setup, user B, who was denied access in the UI, could read the hidden poll through the API. In the researcher's setup, user B, who was explicitly denied access in the UI, could read the poll. The report does not describe what a slowvote contains beyond its visibility setting, so the sensitivity of the exposed data is a matter of what users put into polls.

How this kind of bug works

Object references such as numeric identifiers are easy to guess and easy to substitute. When a server loads an object by that identifier and returns it, the only thing standing between the caller and the data is an authorisation decision. If that decision is made in the presentation layer (hiding links, returning a 403 on the HTML page) but not in the data layer (the API, the export endpoint, the mobile backend), the object is effectively public to anyone who knows or guesses its identifier.

The bug class appears whenever one resource is reachable through several interfaces, or when a policy is attached to a view rather than to the object. Defences work by centralising the check: every read of an object goes through a policy engine that receives both the object and the acting user, and the result is enforced before any data is serialised.

How to test for it

  1. Create two accounts with different privileges, or one account and an unauthenticated session.
  2. As the privileged account, create an object and restrict its visibility to a specific user or to nobody. Note its identifier.
  3. As the other account, request the object through the normal UI and confirm you are refused.
  4. Enumerate the other interfaces that expose the same object: JSON or REST APIs, GraphQL, export and print views, RSS or Atom feeds, search endpoints, revision history, attachment and file endpoints, and any batch or bulk-fetch method.
  5. Send the same identifier through each interface, using the low-privilege session, and compare the response with the refusal you saw in the UI.
  6. Try identifiers that are adjacent to your own, and identifiers belonging to objects you know exist but cannot see.

A positive result is a response that contains the object's data, or metadata such as its title, owner or creation time, where the UI refused access. A 403 or an empty body is a negative result. Common false positives are endpoints that return only public fields, endpoints that return a generic error page with a 200 status, and cases where the object is actually visible to the caller through some other grant. Check the returned body, not just the status code, and confirm the object really is restricted before reporting.

How it is fixed

The report does not describe a fix; its impact section contains only the words "Fix this". The caller's identity must come from the session, never from a parameter. Where several interfaces expose the same object, they should share one authorisation path so a new endpoint cannot silently skip the check. Returning a generic not-found response for unauthorised objects avoids confirming that they exist.

Hunting notes

This bug class tends to hide in secondary interfaces: APIs added later than the UI, mobile backends, export and reporting features, and anything that takes an identifier as a parameter. Recon signals include numeric or sequential identifiers in URLs, API documentation that lists object-fetch methods, and features that accept an ID and return a rendered object. To make a report land, show the restriction being enforced in one place and bypassed in another, with two accounts and the exact request that returns the hidden data. Keep the demonstration minimal and reproducible, and state clearly what data was exposed.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 8 min read.

What happened, in plain words

Phabricator is a web application that teams use to manage work: tasks, code reviews, documents and polls. The feature in this report is Slowvote, Phabricator's poll tool. A poll is a question with options that people vote on, and the person who creates one can decide who is allowed to see it.

A permission (or access right) is a rule that says which users may see or do something. In Slowvote, the creator sets a "Visible To" field, which can name specific users or even "No one". The application is supposed to enforce that rule everywhere the poll can be read.

The researcher used three accounts to show that the rule is not enforced everywhere:

  1. User A creates a slowvote.
  2. User B has no permission to see that slowvote.
  3. User C does have permission to see it.

From user A's account, the researcher opens http://phabricator.localhost.com/vote/create/ and creates a slowvote, setting its "Visible To" field to "No one" or to user C. The slowvote then has a URL of the form http://phabricator.localhost.com/V1.

User B visits that URL and is correctly refused access. That refusal is the normal web page doing its job. But the same data can be reached through a second door: an API, which is a way for programs (rather than people clicking in a browser) to talk to the application. User B sends the following request to the API and receives the hidden poll anyway:

HTTP
POST /api/slowvote.info HTTP/1.1
Host: phabricator.localhost.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 83
Connection: close
Cookie: phsid=[redacted]; phusr=[redacted]
Upgrade-Insecure-Requests: 1

__csrf__=[redacted]&__form__=1&params%5Bpoll_id%5D=1&output=human

Line by line:

  • POST /api/slowvote.info HTTP/1.1 is the request line. POST is the method used to send data to the server, /api/slowvote.info is the API method being called ("give me information about a slowvote"), and HTTP/1.1 is the version of the protocol.
  • Host: phabricator.localhost.com names the server the request is addressed to.
  • User-Agent, Accept, Accept-Language, Accept-Encoding and Upgrade-Insecure-Requests are headers: extra pieces of information the browser normally attaches, describing the client and what it can handle.
  • Content-Type: application/x-www-form-urlencoded says the body is formatted like a web form.
  • Content-Length: 83 states the size of the body in bytes.
  • Connection: close asks the server to close the connection after the response.
  • Cookie: phsid=[redacted]; phusr=[redacted] carries the cookies. A cookie is a small piece of data the browser stores for a site and sends back on every request. Here it is how the server knows which user is making the request, so user B's session is what the server sees.
  • The blank line separates headers from the body.
  • __csrf__=[redacted]&__form__=1&params%5Bpoll_id%5D=1&output=human is the body. A CSRF token (__csrf__) is a value the application gives the browser to prove a form submission came from the application itself. params%5Bpoll_id%5D is the URL-encoded form of params[poll_id], meaning "the poll_id parameter inside params". poll_id=1 is the identifier of the poll being asked for, and output=human asks for a human-readable response.

The key step is changing the poll_id value to the identifier of any target poll. The API returns that poll's details even when the caller is not allowed to view it. The report records a bounty of 300.00 USD and was disclosed on 29 August 2019. It gives no severity rating or CVSS score, and its impact section contains only the words "Fix this".

Why it works

The API method slowvote.info returned the hidden poll to user B, who had been refused access in the web page. The web page refused user B access, yet the API request returned the hidden poll.

This is an Insecure Direct Object Reference (IDOR): the application lets a user refer directly to an object by its identifier, and does not verify that the user is allowed to access that object. The identifier here is a small number, so it is easy to guess and easy to swap. Authorisation is decided by the interface rather than by the object being accessed, so a second interface to the same data bypasses it.

In the researcher's setup, user B, who was denied access in the web page, could read the hidden poll through the API. In the researcher's setup, user B, who was explicitly denied access in the web page, could read the poll. The report does not describe what a slowvote contains beyond its visibility setting.

In general, how this kind of bug works

Object references such as numeric identifiers are easy to guess and easy to substitute. When a server loads an object by that identifier and returns it, the only thing standing between the caller and the data is an authorisation decision. If that decision is made in the presentation layer (hiding links, returning a 403 on the HTML page) but not in the data layer (the API, the export endpoint, the mobile backend), the object is effectively public to anyone who knows or guesses its identifier.

A useful comparison is a hotel. The reception desk might refuse to tell you which room a guest is in, but if every room door opens with the room number alone, the refusal at the desk means nothing. The check has to be at the door, not only at the desk.

The bug class appears whenever one resource is reachable through several interfaces, or when a policy is attached to a view rather than to the object. Defences work by centralising the check: every read of an object goes through a policy engine that receives both the object and the acting user, and the result is enforced before any data is returned.

In general, how to test for it

  1. Create two accounts with different privileges, or one account and an unauthenticated session.
  2. As the privileged account, create an object and restrict its visibility to a specific user or to nobody. Note its identifier.
  3. As the other account, request the object through the normal web page and confirm you are refused.
  4. Enumerate the other interfaces that expose the same object: JSON or REST APIs, GraphQL, export and print views, RSS or Atom feeds, search endpoints, revision history, attachment and file endpoints, and any batch or bulk-fetch method.
  5. Send the same identifier through each interface, using the low-privilege session, and compare the response with the refusal you saw in the web page.
  6. Try identifiers that are adjacent to your own, and identifiers belonging to objects you know exist but cannot see.

A positive result is a response that contains the object's data, or metadata such as its title, owner or creation time, where the web page refused access. A 403 or an empty body is a negative result. Common false positives are endpoints that return only public fields, endpoints that return a generic error page with a 200 status, and cases where the object is actually visible to the caller through some other grant. Check the returned body, not just the status code, and confirm the object really is restricted before reporting.

In general, how it is fixed

The report does not describe a fix; its impact section contains only the words "Fix this". The caller's identity must come from the session, never from a parameter. Where several interfaces expose the same object, they should share one authorisation path so a new endpoint cannot silently skip the check. Returning a generic not-found response for unauthorised objects avoids confirming that they exist.

Glossary

  • Phabricator: a web application for managing software work, including tasks, code reviews and polls.
  • Slowvote: Phabricator's poll feature, where users create questions with options and others vote.
  • Permission / access right: a rule stating which users may see or do something.
  • Visible To: the Slowvote field that sets who is allowed to see a poll, including specific users or "No one".
  • API: a way for programs to talk to an application, separate from the pages a person clicks in a browser.
  • Request: a message a client sends to a server asking it to do something or return data.
  • Header: an extra piece of information attached to a request or response, such as the browser type or content format.
  • Cookie: a small piece of data stored by the browser for a site and sent back with each request, often used to identify a session.
  • Session: the server's record of a logged-in user, linked to the browser through a cookie.
  • CSRF token: a value given to the browser to prove a form submission came from the application itself.
  • Parameter: a named value sent with a request, such as poll_id=1.
  • Identifier (ID): a number or string that names a specific object, such as a poll.
  • IDOR (Insecure Direct Object Reference): a bug where a user can refer directly to an object by its identifier and access it without the application checking permission.
  • Authorisation: the process of deciding whether a user is allowed to perform an action or access an object.
  • Policy engine: a central component that decides, for a given user and object, whether access is allowed.
  • 403: the HTTP status code meaning the server understood the request but refuses to authorise it.
  • 200: the HTTP status code meaning the request succeeded.
  • CVSS: a standard scoring system for the severity of a security vulnerability.
  • Bounty: a payment made to a researcher for reporting a valid vulnerability.

More by ranjit_p

View all

6 more disclosed reports, best first.

More from Phabricator

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.