Broken session management leads to bypass 2FA and Permanent access to Facebook user’s
A donation login link containing a nonce and user ID automatically logged the recipient into the donor's Facebook account without any password or two-factor authentication. An attacker could share this link to gain permanent access to the victim's account, even after a password change.
Published on medium.com
The story began when i received a notification from a friend about a donation campaign for his birthday. while using Facebook-App (IOS) when i tried to click donate button it redirected me to Web-browser version to make a donation using Creditcard or Paypal, throw this endpoint {/donation/login/?nonce=xxxxx&uid=xxxxxx}
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 donation login endpoint used a nonce and user ID to create an authenticated session without verifying the requester's identity, allowing session fixation or token reuse.
Impact
An attacker could gain permanent access to a victim's Facebook account, bypassing password and two-factor authentication, and the access persists even after the victim changes their password or logs out all sessions.
What the attacker needed
Victim uses Facebook app to donate; attacker obtains the donation link; victim or attacker clicks the link
The fix
The report does not state the fix, but the endpoint should not automatically authenticate users based on a link; it should require proper authentication and validate the session securely.
How it was found
- Go to donate to any organization from Facebook App (iOS).
- Try to make a donation.
- You will be redirected to the donation login endpoint with nonce and uid parameters.
- Copy this link and use it from another device not signed in.
- Go to Facebook.com and you will be redirected automatically to the victim account.
- Get access without password or 2FA, even after password change.
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.
When you click a special link, the website sometimes logs you in automatically. Here, that link was meant for donations but it logged in whoever clicked it as the person who created the link. This meant anyone with the link could get into the victim's account without knowing the password.
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.