HexBrain

Phabricator · Report #3596

OAuth access_token stealing in Phabricator

Validstatus
$450bounty
9upvotes
11 Apr 2014disclosed

How it was found

Hi,

I found that an attacker is able to steal access_tokens of facebook users via Phabricator App (184510521580034).

when users login to phabricator, they can choose to login via Facebook (https://secure.phabricator.com/login/) attaching pic, In this case an attacker is able to exploit this behavior to steal facebook access_tokens via phabricator app.

Full Reproduce, Exploit:

  1. Create a blog on phabricator https://secure.phabricator.com/phame/blog/new/ and provide a custom domain, in this case: files.nirgoldshlager.com

  2. send a malicious link to the victim: https://www.facebook.com/dialog/oauth?client_id=184510521580034&response_type=token&redirect_uri=https://secure.phabricator.com/phame/live/47/ , Click Continue

when the victim will click continue, his access token will be send to my malicious server, saved in a log file under: http://files.nirgoldshlager.com

PoC Video:

https://drive.google.com/file/d/0B2-5ltUODX1LWHV6R3gxSFAwNzQ/edit?usp=sharing

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original