maxisme / crypter

This extension locally encrypts and decrypts your Facebook messages using AES encryption along with a preset password.
https://crypter.co.uk
84 stars 18 forks source link

XSS bug lets your Facebook friends run arbitrary code #3

Open mvirkkunen opened 8 years ago

mvirkkunen commented 8 years ago

Problematic line (and the other one that does the same thing, why are there two anyways?):

span.html("<span class='recrypt' id='"+crypt+"'>"+linkify(decrypt)+"</span>");

As far as I can tell this lets your friends insert arbitrary HTML into your chat window, which in turn lets them run arbitrary code. Which can then do pretty much any action on Facebook on your behalf, and of course, steal all your encryption keys.

I admit I didn't test this because I couldn't be bothered to create multiple FB accounts.