Desvendando uma Vulnerabilidade no Single Sign-On do Facebook: Minha Jornada e Recompensa de $3.000
A flaw in Facebook's single sign-on let an attacker obtain an authentication proof token from an endpoint in the Meta accounts centre and turn it into a magic login link. That link kept working after the linked Instagram session was logged out or its password changed, and even when logging in with accounts was disabled, so an attacker could take over accounts without the password.
Published on medium.com
O Single Sign-On (SSO) é uma tecnologia amplamente utilizada que permite que os usuários acessem múltiplos aplicativos com uma única credencial de login. Essa conveniência, no entanto, vem com desafios significativos de segurança.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the authentication tokens were not properly validated, so tokens that should have been rejected were accepted as valid.
Impact
An attacker could gain unauthorised access to user accounts, exposing personal data and private messages, and the magic link stayed valid for weeks with no expiry, even after a password change or with account linking disabled.
What the attacker needed
Multiple accounts linked in accounts centre; access to the token endpoint
The fix
The fix added stricter validation of authentication tokens, and the text says Facebook implemented the correction.
How it was found
- Connect multiple accounts in the Meta accounts centre.
- Call the endpoint to retrieve an auth_proof_json value.
- Build a magic login link from the generated token.
- Use the link to log in to Facebook, including after the Instagram session is logged out or the password changed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Single sign-on lets one login work across several apps, so a shared token stands in for your password. Here the token could be swapped for a magic login link that never stopped working, even after the victim logged out or changed their password. Anyone who got such a link could sign in as that person.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.