Here’s How Hackers can listen to your Facebook Voice Messages?

0

Voice Messaging is one of the most useable features in instant messaging applications, it allows users to rapidly send voice message to anyone without typing to them. Such as WhatsApp, Facebook Messenger and others.

Security Researcher Mohamed A. Baset found this flaw in Facebook Messenger that could allows attackers to conduct a man-in-the-middle attack in order to capture someone’s voice messages recording. According to some resources the vulnerability hasn’t been patched yet.

“Whenever you record an audio clip (video message) to send it to your friend, the clip gets uploaded onto the Facebook’s CDN server (i.e., https://z-1-cdn.fbsbx.com/…), from where it serves the same audio file, over HTTPS, to both the sender as well as the receiver.” states THN.

An attacker that shares the same network segment could launch a MITM attack with SSL Strip. A hacker can extract absolute links, including secret authentication token embedded in the URL, to all audio files exchanged between the sender and receiver.

The attacker can modify the links from HTTPS to HTTP to download files without any authentication, this is possible because the Facebook CDN server does not force HTTP Strict Transport Security (HSTS) policy making possible communications through HTTP connections.

Another problem is the lack of proper authentication, the expert highlighted that if a file has been shared between two Facebook users it should not be accessible by others, even if a third party has the absolute URL to the resource (which includes a secret token to access that file).

Mohamed A. Baset provided a proof-of-concept for the attack by sending an audio clip to one of his friends over Facebook Messenger, below the absolute link to the audio file extracted using MITM attack.

http://z-1-cdn.fbsbx.com/v/t59.3654-21/16125468_1645374402144307_1665936690776113152_n.mp4/audioclip-1484602674000-3200.mp4?oh=71fe3abe6b663b1dea5a8028288b6118&oe=587EBD05&dl=1

Anyone can download it from the Facebook platform even if he/she is not authenticated.

“GET requests are something that the browsers can remember it in its cache also in its history, Better to have this files played via POST requests with an anti-CSRF token implemented,” Mohamed told The Hacker News.

The bad news is that Mohamed was not awarded for his discovery because Facebook doesn’t want to pay for such kind of loopholes.

“We are in the process of rolling out HSTS across various facebook.com subdomains. The fact that we have not rolled it out on particular subdomains does not constitute a valid report under our program.” is the reply provided by Facebook to the expert.

“In general, sending in reports that claim we should be using defense-in-depth mechanisms like HSTS will not qualify under our program. We make very deliberate decisions about when we roll out (or not) particular protections and so reports suggesting that we make changes there generally do not qualify.”

Facebook still hasn’t patched the flaw and I hope it will give a payoff to the Egyptian expert for his work. yet.

Below a video PoC of the attack.

This article is for educational purpose only, TheHackToday.com is not responsible for negative use of this tutorial.