Skip to content
Account takeover Write-up Advanced

**Account Takeover via OAuth Code Hijacking on BuzzFeed’s Tasty App: Chaining WebView Exploits, Cross-Platform Deeplinks, and Implicit Broadcasts**

The Tasty Android app's WebView host validation only checked if the authority contained 'tasty.co', allowing an attacker to load arbitrary URLs. By chaining this with a cross-platform OAuth redirect_uri misconfiguration and an implicit broadcast, an attacker could silently steal the OAuth authorization code and take over the victim's account.

Farouk Nabil Follow

Published on medium.com

Before diving into the technical exploit chain, here is a quick overview of the target and the timeline of the report:

Farouk Nabil, on medium.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

Root cause

Likely the app used a substring check (contains 'tasty.co') instead of an exact host match, and the OAuth configuration accepted a redirect URI from a different platform (iOS) that an attacker could register.

Impact

An attacker could silently take over a victim's Tasty account by stealing the OAuth authorization code, but the attack requires the victim to install a malicious app that requests no dangerous permissions.

What the attacker needed

Victim installs malicious app; victim uses Tasty app; victim is logged in

The fix

The vendor eventually patched the WebView validation flaw, but the fix introduced a logical paradox that made the vulnerable code unreachable; a proper fix would enforce exact host matching and restrict OAuth redirect URIs to the correct platform.

How it was found

  1. The attacker creates a malicious Android app that registers the iOS deep link scheme.
  2. The malicious app listens for the implicit broadcast 'com.buzzfeed.dustbuster.result'.
  3. When the victim uses the Tasty app, the broadcast is sent and the malicious app triggers the WebView exploit.
  4. The Tasty app loads the Auth0 login page with the iOS redirect_uri.
  5. After the user logs in, Auth0 redirects the authorization code to the iOS scheme.
  6. The malicious app intercepts the code and takes over the account.

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.

The app had a security check that was too loose: it only looked for the text 'tasty.co' anywhere in a web address, so an attacker could use a fake address like 'tasty.co.attacker.com' to make the app open a malicious page. The attacker then tricked the app's login system into sending a secret login code to a malicious app, which could then take over the victim's account.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.