I hacked a dating app (and how not to treat a security researcher)
The dating app Cerca exposed one-time passwords in API responses and allowed unauthenticated access to user profiles via sequential user IDs, enabling account takeover and mass PII disclosure. An attacker could sign in as any user and access personal data including phone numbers, messages, and identity documents.
alexschapiro.com
Published on alexschapiro.com
Update: This post received a large amount of attention on Hacker News — see the discussion thread.
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 API returned the OTP in the response to the OTP request and failed to enforce authorisation on the user profile endpoint, allowing enumeration of user IDs.
Impact
An attacker could take over any account with just a phone number and access sensitive personal data including messages and identity documents; the author found 6,117 users, 207 with ID information, but did not exploit the ID data.
What the attacker needed
Knowledge of a phone number; app-version header; bearer token from any account
The fix
The vulnerabilities were patched according to the author's independent confirmation.
How it was found
- Intercept network requests from the iPhone app using Charles Proxy.
- Trigger the OTP sign-in and observe the OTP in the response.
- Use a directory fuzzer with the required app header to find the /docs endpoint serving openapi.json.
- Use Burp Suite to add the app-version header and bearer token to requests.
- Access the user/{user_id} endpoint with sequential user IDs to retrieve personal information.
- Write a Python script to enumerate valid user IDs and count exposed users.
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.
A one-time password (OTP) is a code sent to your phone to log in. The app was sending this code back in the same response that requested it, so anyone who knew your phone number could log in as you. Separately, the app let anyone look up user profiles by guessing simple numbers, revealing private information like phone numbers and even passport details.
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.