Skip to content
OAuth / SSO Write-up Beginner

Facebook Oauth 2 0 Misconfiguration

After a user revoked a third-party application's access through Facebook's settings, the application continued to allow the user to log in and modify profile information. An attacker could retain access to a victim's account even after the victim believed they had removed the application's permissions.

c0d3x27 Follow

Published on infosecwriteups.com

If you had been following my cybersecurity articles, you already know that I don’t like to hunt on Facebook but every now and then their bugs just get in my way. This one, in particular, is one of those vulnerabilities.

c0d3x27, on infosecwriteups.com

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

What the attacker needed

A Facebook account; a Vuln.com account linked via Facebook; victim revokes app access in Facebook settings

How it was found

  1. Log in to Vuln.com using the Facebook personal account option.
  2. Open Facebook settings and revoke any permission for Vuln.com in the Apps panel.
  3. Observe that the user is not signed out of Vuln.com and can still modify profile information.

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.

OAuth is a way for a website to let you log in using another service, like Facebook, without sharing your password. Normally, if you remove that website from your Facebook settings, the website should no longer let you in. Here, the website kept letting the user in even after the permission was removed, which means the website was not checking whether Facebook still allowed access.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More by c0d3x27

View all

9 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.