Skip to content
Info disclosure Disclosed report Beginner

The special code in editor has no Authority control and can lead to Information Disclosure

A file uploaded to a Phabricator editor is referenced by a special code, but the editor does not check whether the viewer is allowed to see that file. An attacker could embed another user's private file reference in their own content and view the file's contents.

xifengweiyu Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

Here is your keyword:mongoose

Details:

  • Summary:

Uploaded file will be showed as a special code {Fxxx} in Phabricator editor,but it has no Authority control.

  • Reproduce steps:

1.Open two different browsers (to simulate two different users) 2.browser A:login as user "toma" 3.browser B:login a user "test4" 4.user "toma" create a Maniphest task with visibility "toma" only,and upload a file "toma.html" to description,its code is`` 5.user "test4" open anyone editor and write:


then post it,then you will find user "test4" has got the file of user "toma" with visibility "toma".

Attachments

toma's_task.png
toma's_task.png From the original on HackerOne
test4_got_it.png
test4_got_it.png

The original report as published on HackerOne, by xifengweiyu. 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 editor renders file references without verifying the requesting user's permission to access the referenced file.

Impact

A user could view files that were restricted to another user, leading to information disclosure.

What the attacker needed

Two user accounts; victim uploads a file with restricted visibility; attacker knows or guesses the file reference code

How it was found

  1. Open two different browsers to simulate two users.
  2. Log in as user 'toma' in browser A.
  3. Log in as user 'test4' in browser B.
  4. As 'toma', create a Maniphest task visible only to 'toma' and upload a file named 'toma.html' to the description.
  5. As 'test4', open any editor, write the file reference code, and post it.
  6. Observe that 'test4' can now access 'toma's file despite its restricted visibility.

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.

When you upload a file in Phabricator, it gets a short code like {F123} that you can paste into text. The system should check if you are allowed to see that file before showing it. Here it did not check, so one user could see a file that was meant to be private to someone else.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by xifengweiyu

View all

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

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.