Skip to content

Independent cybersecurity briefing

Latest

RSS
Breaches, bounties, zero-days, and AI.

Bug Bounty Write Ups

The Phone Number That Unlocked Any Tinder Account

A 2018 bug bounty chain shows how a skipped OTP binding and an unchecked token audience added up to account takeover

Adam Hale, ZeroDay Times editorBy Adam Hale3 min read

Still life for “The Phone Number That Unlocked Any Tinder Account”: a phone on the desk, copper dusk, Tinder mark, signal CASE. [ BUG BOUNTY ] badge.

AI-generated illustration

AI-assisted: drafted with AI help from public sources, then reviewed and edited. This is an analytical case study of a public disclosure, not my own discovery.

A phone number was all it took. In a 2018 Tinder account takeover, Anand Prakash chained a verification gap in Facebook’s Account Kit with a Tinder API that never asked which app a login token was issued for. The result was full access to the profile and private chats of any Tinder user who signed in with their phone. Facebook paid $5,000, Tinder paid $1,250, and both fixed their side quickly.

Disclaimer: * Educational and defensive use only. Both issues were fixed in 2018. Requests, parameters and reproduction details are intentionally omitted.*

Vulnerability Overview

  • Type: Authentication bypass chain: OTP not bound to the phone number, plus missing token audience (client ID) check
  • CWE (analytical mapping, not from the source): CWE-287 (Improper Authentication), CWE-345 (Insufficient Verification of Data Authenticity)
  • CVE: Not reported
  • Severity/CVSS: Not reported. Bounties: $5,000 (Facebook) + $1,250 (Tinder), source-reported

How the Tinder Account Takeover Worked (high level)

Tinder’s “Log in with phone number” was handled by Facebook’s Account Kit, a passwordless identity service. It texted a code, confirmed it, and returned an access token that Tinder exchanged for a session.

Link one: Account Kit. In one phone-confirmation path, Account Kit did not verify that the code belonged to the phone number in the same request. An attacker’s own valid code could be paired with a victim’s number, and Account Kit issued a token for the victim’s identity.

Link two: Tinder. An Account Kit token carries the ID of the app it was issued to. Tinder’s login API accepted the token without checking that ID, so a token minted for any Account Kit app worked as a Tinder login.

Either flaw alone is serious. Together, a phone number became a session.

Impact

Per the researcher, an attacker gained full control: private messages, personal details, and swiping on the victim’s behalf. On a dating app, that means intimate data and impersonation in front of strangers. The only precondition was phone-number login. The Verge reported no evidence the bug was exploited before the fix.

Fixing Tinder-Style Account Takeover: Defense-in-Depth (my own analysis)

1. Bind every OTP to exactly one identifier and one flow. Store the code with the number, purpose and flow ID it was sent for, and compare all of them on confirmation.

2. Validate the token’s audience, not just its signature. Confirm the token was issued to your app ID, for the expected user, and is still valid, using the provider’s verification endpoint or claims.

3. Treat third-party identity as a trust boundary. A provider bug becomes your takeover if you accept anything it signs. Notify users of new-device logins and step up checks before exposing chats.

# Pseudocode: OTP confirmation bound to number + flow
def confirm_otp(flow_id, phone, code):
    rec = otp_store.get(flow_id)
    if (rec is None or rec.expired() or rec.attempts >= 5
            or rec.phone != normalize(phone)
            or not constant_time_eq(rec.code_hash, hash(code))):
        otp_store.bump_attempts(flow_id)
        raise AuthFailed()
    otp_store.delete(flow_id)            # single use
    return issue_identity_token(sub=rec.phone, aud=rec.app_id)
# Pseudocode: relying-party login that checks audience
def login_with_provider_token(token):
    info = provider.verify(token)        # signature, expiry, revocation
    if info.app_id != MY_APP_ID:
        raise AuthFailed("token issued to another app")
    user = users.find_by_verified_phone(info.subject)
    return create_session(user, risk=assess_device(user))

Key Takeaways

  • An OTP is only proof of possession if it is tied to the identifier it was sent to.
  • “Validly signed” is not “meant for me”: always check the audience or client ID.
  • Outsourcing login moves the code, not the responsibility; verify what the provider hands you.

Credit & Sources

Research by Anand Prakash (AppSecure): Tinder Account Takeover Vulnerability via Facebook Account Kit ($6,250 Bug Bounty) (20 February 2018). Press context: The Verge, 21 February 2018. Facts come from those sources; analysis and code are original.

First published by Adam Hale on Medium.

Sources

Share

Corrections and tips:[email protected]