Users can view limited information about secure Phabricator revisions due to publicly joinable group mozilla-phabricator-emails
A Phabricator group intended for email access was publicly joinable, letting any user query email-related API endpoints that bypass object view policies. For secure revisions, some metadata such as subscribers and reviewers was still exposed, though titles and comment bodies were omitted.
Originally disclosed on Mozilla
- Fixed in 5 hours
- Paid in 12 hours
- Disclosed after 5 hours
mozilla-phabricator-emails is joinable and editable by any user.
The description says:
"Allows access to the custom Mozilla email endpoints. Users who are part of this group will be able to see users' email addresses via the email endpoints."
Specifically the group seems to grant access to the Phabricator API "feed.for_email.query" and "feed.for_email.status". The API "feed.for_email.query" bypasses object view policy. However if the Differential revision has the "secure-revision" tag, then certain information is omitted. Specifically, only information from events that implement SecureEmailBody (see https://github.com/mozilla-conduit/phabricator/tree/master/moz-extensions/src/email/model), generally this looks like information such as, subscribers, reviewers, author, event actor, events themselves, pings and ping recipients, Bugzilla bug ID, however information such as revision title or comment body is removed from secure revisions.
Additionally, you could also remove user email-bot as a member, which would break Mozilla's custom Phabricator emails.
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 group was configured to be publicly joinable, and the email API endpoints did not enforce the same view policy checks as the normal interface.
Impact
An attacker could view limited metadata (such as subscribers, reviewers, author, and Bugzilla bug ID) about secure revisions, and could also remove the email-bot user from the group, breaking Mozilla's custom Phabricator emails.
What the attacker needed
A Phabricator account; join the mozilla-phabricator-emails group
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.
Phabricator is a tool for managing code changes. A group that was meant to control who can see email information could be joined by anyone, so people could use special API calls to see some details about private code changes that they should not have been able to see. The most sensitive parts, like the title and comments, were still hidden.
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.