Facebook mailto injection leads to social engineering & spam attack

Facebook mobile sites: m.facebook & mbasic.facebook provide lite tag to friends feature.

when you goes to tag friends list open for selection and there is Cancel button .
when you see at url of this feature there is cancel_uri parameter which link to previous url of page.

I modified this parameter to openredirect but cant able todo as linkshim protection so i tried another protocol rather than HTTP, like :

mailto, whatsapp, fb, twitter etc.

and all are accepted, then i passed with mailto protocol with all its parameters (reciever email,subject,body, attachment) and all are injectable., and link injected behind Cancel button.

Once victim got this crafted url and when he click on cancel button his email client will open with prefilled data(inserted by attacker) which trick victim to submit his credential using some social engineering techniques.

Final POC url:

https://m.facebook.com/friends/selector/?return_uri=4&cancel_uri=mailto:kankrale.rahul@gmail.com?subject=To%20access%26body=Submit%20Login&attachment=%22/storage/emulated/0/Download/test.txt%22&friends_key=ids&context&add_photos_uri&is_initial_render=0

  • Reported to facebook
  • Accepted risk with no bounty as social engineering involved.
  • Closed report without fix.

Point to be noted :

  • adobe got RCE using mailto in past
  • H1 also accepted same as parameter injection.

Thanks

Rahul Kankrale

Suggestion require for mailto exploit for such a issue : Rahul Kankrale