[Facebook] Device Code Verification missing rate limit

 There was a missing rate limit on a GraphQL call which was validating codes over Facebook for Devices feature.


Endpoint -


POST /v3.3/graphql?access_token=




The response -


HTTP/1.1 200 OK



This would have allowed a malicious hacker to get correct pins and pop on a screen of a random device who wants to connect their account to a TV or such devices.

With the correct codes, the response will give away some additional info like - Device name, scope, name and ID with a logo photo link.

Rate limit evaluation -

With a thread upto 50 in burp intruder it was possible to make 1k requests in just 30 seconds. The response was always the same for every request that we make and changes only for the correct code. 4001th payload would show the same response as the 1st request and 4002th payload if hits the right code, it would show a different response length.

Timeline -

Reported - Saturday, November 16, 2019

Triaged - Wednesday, November 20, 2019

Fixed - Tuesday, December 3, 2019 

Rewarded - Wednesday, December 4, 2019