Hunt prep
Before you test Phabricator
What 72 disclosed reports say about Phabricator: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 29
- median public bounty
- $300
- highest public bounty
- $2,000
Gaps worth testing 13
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Test file attachment permission checks in other commit ingestion paths
Access control Read the lesson
Report #19283 showed that Differential commit ingestion did not apply file view-permission checks, allowing restricted files to become public. Test whether other commit ingestion paths, such as those from repositories with autoclose enabled or from different VCS types, apply the same permission checks when attaching files via commit messages. Also test whether the autoclose mechanism (report #12555) can be abused to attach restricted files to tasks or other objects.
Backed byPossible to make restricted files public on Phabricator via Diff... (2022) Autoclose can close any task regardless of policies/spaces (2017)From the lessons: Send a request to a middleware-protected route with the internal sub-r...; Change group, venue, rule, terminal and gatekeeper identifiers in crea...
-
2
Check Conduit API endpoints for missing view policy enforcement
Access control Read the lesson
Reports #19118 and #15324 showed that deprecated API endpoints (owners.query and slowvote.info) did not enforce object view policies. Test other Conduit API endpoints, especially deprecated ones or those for newer applications, to see if they similarly bypass view policies and expose restricted object details. Focus on endpoints that return object metadata or content.
Backed byDeprecated owners.query API bypasses object view policy (2022) IDOR bug to See hidden slowvote of any user even when you dont h... (2019)From the lessons: Request console endpoints without authentication and check for sensiti...; Change group, venue, rule, terminal and gatekeeper identifiers in crea...
-
3
Test feed.publish API for spoofing and restricted object references
Access control Read the lesson
Report #19149 showed that the feed.publish API accepted arbitrary authorPHID and objectPHID values, allowing spoofing and referencing restricted objects. Test whether other API methods that accept user-supplied identifiers, such as those for creating or updating objects, properly validate that the caller has permission to act as the specified user or reference the specified object. Also test whether feed stories can be used to leak information about restricted objects.
From the lessons: Change group, venue, rule, terminal and gatekeeper identifiers in crea...; Modify the account identifier inside a token or cookie and check wheth...
-
4
Test global settings pages for missing admin checks
Access control Read the lesson
Report #19185 showed that the global default settings page was accessible to non-administrators. Test other administrative settings pages, such as those for configuring authentication, email, or integrations, to see if they enforce administrator privileges when accessed directly. Also test whether non-administrators can modify installation-wide defaults through other endpoints.
From the lessons: Request console endpoints without authentication and check for sensiti...; Send a request to a middleware-protected route with the internal sub-r...
-
5
Test recursive inclusion in other object types
Report #19186 showed that Slowvote and Countdown objects could cause denial of service through recursive inclusion. Test other object types that support embedding or referencing, such as tasks, wiki pages, or dashboards, to see if they can be made to recursively include themselves or other objects, leading to resource exhaustion or page rendering failures.
Backed bySlowvote and Countdown can cause Denial of Service due to recurs... (2022) Dashboard panel embedded onto itself causes a denial of service (2015)From the lessons: Send a request to a middleware-protected route with the internal sub-r...
-
6
Test CSRF protections on state-changing endpoints
Reports #14967 and #14968 listed multiple pages lacking anti-CSRF tokens. Test other state-changing endpoints, especially those added after these reports, to see if they properly validate CSRF tokens. Focus on actions like changing email, password, or permissions, and on API endpoints that accept form-encoded data.
Backed byIssue:Form does not contain an anti-CSRF token (2019) Request vulnerable to CSRF (2019) CSRF token valid even after the session logout of a particular u... (2014)From the lessons: Profile, preference and settings endpoints.; Account settings pages.; Replay a JSON-only endpoint with a form-encoded body or a method overr...
-
7
Test file reference permission checks in editors and historical revisions
Access control Read the lesson
Reports #12558 and #12379 showed that file references in editors and historical revisions did not enforce file view permissions. Test other contexts where file references are rendered, such as comments, wiki pages, and API responses, to see if they properly check the viewer's permission to access the referenced file. Also test whether file references in older revisions of objects still grant access to restricted files.
Backed byThe special code in editor has no Authority control and can lead... (2017) Restricted file access when it exists in old versions of task or... (2017) User can link non-public file attachments, leading to file discl... (2022)From the lessons: Change group, venue, rule, terminal and gatekeeper identifiers in crea...; Modify the account identifier inside a token or cookie and check wheth...
-
8
Test password reset token invalidation on email change and login
Account takeover Read the lesson
Reports #10364 and #11700 showed that password reset tokens remained valid after email changes and logins. Test whether reset tokens are invalidated when other account details change, such as password or username, and whether they are single-use. Also test whether requesting a new reset token invalidates previous ones.
-
9
Test OAuth flows for state parameter and redirect_uri validation
Reports #10010 and #10115 showed issues with OAuth state and redirect_uri validation. Test other OAuth providers and flows, including those for third-party integrations, to see if they properly validate the state parameter and restrict redirect_uri to registered domains. Also test whether login CSRF is possible through other authentication flows.
Backed byLogin CSRF using Twitter OAuth (2014) OAuth access_token stealing in Phabricator (2014) OAuth Stealing Attack (New) (2014)From the lessons: OAuth authorisation and callback flows.; Check whether the OAuth state parameter is missing or stays the same a...
-
10
Test email domain allow-list bypass via Unicode or length truncation
Business logic Read the lesson
Reports #10011 and #10012 showed that the email domain allow-list could be bypassed using Unicode characters or overlong email addresses. Test whether similar bypasses are possible with other encodings or by manipulating other fields, such as the username or real name, that might be used in email validation. Also test whether the allow-list is enforced consistently across all registration and email change paths.
-
11
Test for SSRF in other URL-fetching features
Reports #10534 and #10562 showed SSRF in meme creation and macro creation. Test other features that fetch user-supplied URLs, such as link previews, image imports, or webhooks, to see if they restrict access to internal or link-local addresses. Also test whether redirects are followed without validation.
Backed bySSRF vulnerability (access to metadata server on EC2 and OpenSta... (2015) Server Side Request Forgery in macro creation (2015) SSRF in notifications.server configuration (2020)From the lessons: Use an open redirect on the API site to make a server-side request to...; Chain a permissive CORS policy with another weakness such as an open r...
-
12
Test for command injection in VCS operations with crafted branch or tag names
Report #13713 showed command injection via a Mercurial branch name. Test other VCS operations, such as git or svn, with crafted branch, tag, or commit names that might be interpreted as command-line options. Also test whether other user-controlled inputs to VCS commands, such as repository URLs or credentials, are properly sanitised.
Backed byCommand injection on Phabricator instance with an evil hg branch... (2017) Git flag injection leads to arbitrary file write (2021)From the lessons: Send a request to a middleware-protected route with the internal sub-r...; Modify the account identifier inside a token or cookie and check wheth...
-
13
Test for information disclosure in error messages and logs
Info disclosure Read the lesson
Reports #13370 and #11529 showed that error messages and logs could disclose sensitive information such as credentials and filesystem paths. Test other error conditions, such as failed API calls or misconfigured integrations, to see if they leak sensitive data. Also test whether logs are accessible to unauthorised users.
Backed byCredential gets exposed (2017) Full path disclosure (2016) Abusing daemon logs for Privilege escalation under certain scena... (2014)From the lessons: Submit known and unknown email addresses to the reset form and compare...; Inspect the session cookie's attributes and check whether the Secure f...
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Access control lesson | 18 | 9 | $300 | $2,000 | $4,900 |
| Business logic lesson | 7 | 4 | $400 | $1,000 | $2,100 |
| XSS lesson | 6 | 2 | $650 | $1,000 | $1,300 |
| Crypto lesson | 2 | 2 | $525 | $750 | $1,050 |
| OAuth / SSO lesson | 2 | 2 | $425 | $450 | $850 |
| Open redirect lesson | 3 | 2 | $300 | $300 | $600 |
| SSRF lesson | 2 | 2 | $300 | $300 | $600 |
| Path traversal lesson | 1 | 1 | $500 | $500 | $500 |
| Info disclosure lesson | 10 | 1 | $300 | $300 | $300 |
| Account takeover lesson | 7 | 1 | $300 | $300 | $300 |
| CSRF lesson | 6 | 1 | $300 | $300 | $300 |
| RCE lesson | 3 | 1 | $300 | $300 | $300 |
| IDOR lesson | 1 | 1 | $300 | $300 | $300 |
| DoS lesson | 2 | 0 | – | – | $0 |
| UI spoofing lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Deprecated owners.query API bypasses object view policy
The deprecated API could simply be removed.
Disclosed
-
Conduit feed.publish API allows you to spoof other users or make it look like you have access to a restricted object
The API should be restricted, for example so only bots or administrators can call it.
Disclosed
-
Global default settings page is accessible to non-administrators
The page should require an administrator role on the direct route, not rely on the redirect.
Disclosed
-
Request vulnerable to CSRF
The application should add unique anti-CSRF tokens to all state-changing requests and validate them on the server, rejecting requests where the token is missing or incorrect.
Disclosed
-
TOTP Key is shorter than RFC 4226 recommended minimum
The secret generation should use 32 base32 characters to meet the RFC recommendation.
Disclosed
-
IRC-Bot exposes information
The bot should check access before replying to private messages.
Disclosed
-
Phabricator is vulnerable to padding oracle attacks and chosen-ciphertext attacks.
The data should be authenticated using an HMAC or an authenticated block cipher mode such as GCM.
Disclosed
-
Enumerating emails through "Forgot Password" form
The form should return a generic message regardless of whether the email is registered, or offer an option to hide this information.
Disclosed
-
Fetching binaries (for software installation) over HTTP without verification (RCE as ROOT by MITM)
The script should use HTTPS and verify downloaded files with SHA-256 checksums for pinned versions and GPG signatures for dynamic downloads.
Disclosed
-
link reset problem
Reset links should be invalidated when the user logs in or when a new reset link is requested.
Disclosed
-
Full path disclosure
The reporter suggests a patch and notes it may be a server configuration issue.
Disclosed
-
No authentication required to add an email address.
The application should require the account password before adding a new email address, and require high security mode if two-factor authentication is active.
Disclosed
-
Extended policy checks are buggy
The code should use $extended_key instead of $key in the affected lines.
Disclosed
-
Multiple so called 'type juggling' attacks. Most notably PhabricatorUser::validateCSRFToken() is 'bypassable' in certain cases.
The comparisons should use strict identity operators (=== and !==) instead of loose equality.
Disclosed
-
Server Side Request Forgery in macro creation
The application should block localhost and private IP ranges, disallow unusual ports, rate-limit requests, and avoid following redirects or DNS resolutions to local addresses.
Disclosed