Skip to content
Access control Disclosed report Intermediate

Conduit feed.publish API allows you to spoof other users or make it look like you have access to a restricted object

The Conduit feed.publish API accepted a type and data parameter that let a user set an arbitrary authorPHID and objectPHID, so an attacker could publish feed stories that appeared to come from another user and referenced restricted objects. This could make it look like a user awarded a token they did not, or that the attacker had access to an object they cannot see.

dyls Follow

Originally disclosed on HackerOne

Bounty$300 View original
  • Fixed in 6 days
  • Paid in 6 days
  • Disclosed after 7 days

The Conduit feed.publish API allows a user to publish stories to the feed. The API accepts a parameter "type" which will be set to PhabricatorTokenGivenFeedStory and accepts JSON in the "data" parameter such as the following:

{
  "authorPHID": "PHID-USER-uyg3nn764yetx6nglnbx",
  "tokenPHID": "PHID-TOKN-medal-4",
  "objectPHID": "PHID-TASK-lg22pqfkf4iuqbmx35k4"
}

This data can be manipulated in order to spoof other users, this is done by replacing the "authorPHID" value with the user that the attacker wishes to spoof. We can additionally manipulate the "objectPHID" to any PHID of any other object, if the object is restricted, it will look like the attacker has access to the relevant object and was thus able to award the object with a token (though the attacker does not have access to the object and the story only shows for users with access to the object). The user PHID can easily be gotten from the relevant user's page. The attacker can get the object PHID of a restricted object from the HTML of a page if the restricted object is attached in some form to the page (e.g., a restricted task as a subtask of a viewable task).

I'm not exactly sure what the purpose of this API is, but it should at least be restricted in some form (e.g, only callable by bots or administrators). An attacker can also simply spam the feed with lots of stories, or cause the feed to error if given bad data (such as an empty list), in which case the relevant row will need to be deleted from the phabricator_feed.feed_storydatatable.

Impact

An attacker can make make it look a user has performed an action which the user did not perform (awarding a token), this could result in the relevant user being disabled if it is suspected that the account was compromised. If a disabled account is spoofed, it could look as if an attacker has discovered a way to perform an action even with the account disabled. It could also look as if an attacker has gained access to an object that they don't have access to.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the feed.publish API trusted client-supplied authorPHID and objectPHID values without checking that the caller was allowed to act as that author or reference that object.

Impact

An attacker could make it look like another user performed an action, potentially getting that user disabled, or make it appear they had access to a restricted object, though the story is only shown to users who can already see that object.

What the attacker needed

A Conduit API session; knowledge of a target user's PHID; knowledge of a restricted object's PHID

The fix

The API should be restricted, for example so only bots or administrators can call it.

How it was found

  1. Call the feed.publish API with type set to PhabricatorTokenGivenFeedStory.
  2. Put a JSON object in the data parameter containing authorPHID, tokenPHID and objectPHID.
  3. Replace authorPHID with the PHID of the user to spoof, taken from their profile page.
  4. Replace objectPHID with the PHID of a restricted object, obtained from page HTML where it is attached.

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 report has not been written yet. The Original tab links to the source.

A feed is the list of recent activity shown in an app. This API let anyone create a fake activity entry that named someone else as the person who did it, and pointed at a private item. Other users who can see that private item would see the fake entry and believe it really happened.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by dyls

View all

4 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.