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

Conduit feed.publish API accepted arbitrary authorPHID/objectPHID in story data, letting any user spoof feed stories from other users and fake access to restricted objects.

- Payout: $300
- Severity: medium
- Program: Phabricator
- Found by: dyls
- Disclosed: 2022-05-18
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1566325
- Library page: https://bugbountylibrary.com/r/h1%3A1566325
- Tags: area:web domain:web impact:integrity impact:internal-access kind:bounty platform:hackerone sev:medium tech:php vuln:access-control vuln:business-logic vuln:info-disclosure

**Target:** Phabricator Conduit feed.publish API endpoint
**Root cause:** feed.publish trusted client-supplied JSON data (authorPHID, objectPHID, tokenPHID) without validating that the caller is the author or has access to the referenced object.
**Steps:**
1. Call Conduit `feed.publish` with `type=PhabricatorTokenGivenFeedStory`
2. Supply `data` JSON with `authorPHID` set to victim's PHID (harvested from their profile page)
3. Set `objectPHID` to a restricted object's PHID (harvested from HTML of a page where the restricted object is attached, e.g. as a subtask)
4. Set `tokenPHID` to a valid token like `PHID-TOKN-medal-4`
5. Story renders in feed as victim awarding token to restricted object
**How found:** Noticed feed.publish accepts a free-form `type` and `data` JSON, then reasoned that authorPHID/objectPHID are client-controlled and could be swapped for arbitrary values.
**Exploitation:** Any authenticated user calls the API with forged authorPHID and objectPHID; the feed renders a story implying the victim performed the action and that the attacker had access to a restricted object. Also usable to spam the feed or crash it with malformed data (empty list) requiring DB row cleanup.
**Escalation:** Spoofing a disabled account's action could falsely suggest a disabled-account bypass; spoofed victim could be flagged as compromised and disabled.
**Insight:** Feed/story-publishing APIs that take a story type plus arbitrary JSON often trust embedded actor/object PHIDs; test whether author and object identifiers are validated against the caller's identity and access.

## Proof of concept (copied exactly from the original report)

**feed.publish JSON data spoofing authorPHID and objectPHID**

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

