Facebook SMS Captcha Was Vulnerable to CSRF Attack ($18,750 USD)

We discussed this vulnerability during Episode 163 on 31 October 2022

Facebook’s SMS Captcha page would as you might expect, display a captcha, the user fills it out, and then it makes a POST request to the next page including the anti-CSRF token. The problem being that the next location was determined by the next url parameter which was entirely attacker controlled, and could be pointed to sensitive GraphQL endpoints.