Skip to content
OAuth / SSO Disclosed report Intermediate

User account compromised authentication bypass via oauth token impersonation

A third-party or malicious app could collect a user's OAuth access token and use it to access that user's PicsArt account, provided the user had authorised both apps with the same Facebook or Google account. The fix was to validate that the access token belongs to PicsArt's client ID via the provider's API.

amethasan Follow

Originally disclosed on HackerOne

  • Disclosed after 4 months

Summary by the program

OAuth token impersonation is actually a bug when 3rd party company app or malicious app collects the access token of the same user then that company can access to user account on PicsArt. The condition is that the user needs to authorized both PicsArt and malicious app with same Facebook or Google.

The Solution was to Validate that access_token belongs to PicsArt client_id via provider API.

The original report as published on HackerOne, by amethasan. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the OAuth token validation did not confirm that the access token was issued for PicsArt's own client ID, so tokens from other apps were accepted.

Impact

An attacker who controlled a third-party app could access a victim's PicsArt account if the victim had authorised both apps with the same Facebook or Google account.

What the attacker needed

Victim authorised both PicsArt and attacker app; same Facebook or Google account used for both

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 report has not been written yet. The Original tab links to the source.

When you log in to a site with Google or Facebook, that site receives a token that proves who you are. If another app can get a token for the same Google or Facebook account, the site should check that the token was issued for its own app, not someone else's. Here it did not check, so another app's token could be used to log in as the user.

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.

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.