**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.
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:
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
- The attacker creates a malicious Android app that registers the iOS deep link scheme.
- The malicious app listens for the implicit broadcast 'com.buzzfeed.dustbuster.result'.
- When the victim uses the Tasty app, the broadcast is sent and the malicious app triggers the WebView exploit.
- The Tasty app loads the Auth0 login page with the iOS redirect_uri.
- After the user logs in, Auth0 redirects the authorization code to the iOS scheme.
- 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.