How I Identified a Logic Flaw in WhatsApp’s Call Verification
WhatsApp's Flash Call verification only checked that the expected verification number appeared in the call log, without verifying the call was incoming. An attacker could initiate an outgoing call to the same number and have the client accept it as proof of verification, enabling account takeover.
medium.com
Published on medium.com
I’m pleased to share the details of a critical logic vulnerability I recently uncovered in WhatsApp’s Flash Call verification mechanism. This flaw presented a path for unauthorized account access, and my responsible disclosure to Meta led to its successful remediation.
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
The client-side validation of the call log entry did not verify the call direction (incoming vs. outgoing) when matching the verification number.
Impact
An attacker could gain unauthorized access to a target WhatsApp account without the genuine OTP or any interaction from the victim, and the method bypasses server-side rate limits, potentially enabling automated account hijacking at scale, especially for accounts without two-factor authentication.
What the attacker needed
Attacker controls a device with WhatsApp; victim's phone number is targeted; attacker can observe or predict verification number; victim's device receives the Flash Call
The fix
WhatsApp's client-side call log parsing logic was updated to stringently verify that any call log entry used for Flash Call verification corresponds to a legitimate, system-initiated incoming call, effectively closing the attack vector.
How it was found
- On the attacker's device, start WhatsApp login for the target number and choose Missed Call Verification.
- The victim's device receives the legitimate Flash Call from a WhatsApp verification number.
- Observe or predict the verification number, then from the attacker's device place an outgoing call to that same number and immediately hang up.
- The WhatsApp client on the attacker's device scans its call log, finds the matching number, and incorrectly accepts it as verification.
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.
When you log in with a phone number, WhatsApp can call you briefly and use the caller's number as a code. The app checks your phone's call history to see if that number called you. The bug was that it didn't check whether the call was incoming or outgoing, so an attacker could call the same number themselves and trick the app into thinking the code was correct.
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.