WhatsApp Enumeration Flaw Exposes 3.5 Billion Accounts

By Azhar Khan
WhatsApp Enumeration Flaw Exposes 3.5 Billion Accounts

Overview

In late 2025, security researchers from the University of Vienna and SBA Research disclosed a serious privacy vulnerability in WhatsApp’s contact-discovery mechanism. By automating queries at scale, they were able to enumerate approximately 3.5 billion WhatsApp accounts globally. Although the data extracted was metadata only (not message content), the exposure included phone numbers, public encryption keys, timestamps, profile pictures, and “About” texts — creating a substantial privacy risk. WhatsApp has since deployed a fix in response to coordinated disclosure.

Technical Analysis: How the Flaw Operated

At its core, the issue lay in the way WhatsApp’s contact discovery system works: when a user uploads their phone’s contact list, WhatsApp checks which numbers are registered on the platform. The researchers found that instead of constraining this mechanism to small, trusted batches of numbers, they could programmatically generate and submit huge lists of potential phone numbers — across country codes and numbering ranges — and query WhatsApp’s servers at massive scale.

They used a custom tool (based on libphonenumber-style generation) to produce tens of billions of plausible phone numbers across 245 countries. Through a modified or automated client, they submitted these numbers to WhatsApp’s infrastructure and measured responses. Crucially, there was no meaningful rate limiting on the contact-discovery endpoint, allowing sustained query rates of up to 100 million checks per hour from a single server.

Each confirmed number yielded a set of metadata. Specifically:

  • The phone number itself (i.e., whether it was registered on WhatsApp).
  • Associated public encryption key(s) tied to the account (identity keys / prekeys).
  • Timestamps – when the registration was confirmed.
  • Public profile picture, if the user’s settings allowed visibility.
  • “About” / status text, if publicly exposed.

The researchers went further: by correlating this data, they inferred additional user characteristics, such as the operating system of the device (Android vs iOS), the age of the WhatsApp account, and how many secondary (companion) devices the user had linked (for instance, Web or Desktop clients).

One of their most striking findings was around cryptographic key reuse: they identified millions of accounts where identity keys or prekeys were reused across different phone numbers or accounts. In rare cases, they saw accounts using “zeroed” keys (i.e., all zeroes), which suggests the possibility of misbehaving or unauthorized third-party clients.

Scale and Impact of Exposure

The enumeration impacted approximately 3.5 billion WhatsApp accounts — a number that spans virtually the entire global user base. The researchers confirmed registrations in 245 countries, suggesting the flaw was not limited by region.

Of the enumerated accounts, a large fraction exposed further metadata: around 57% of those accounts had publicly visible profile photos, and approximately 29% had their “About” text visible. These percentages varied significantly by geography. For example, in India and Brazil — two countries with huge WhatsApp user bases — the rate of public photo and About-text exposure was notably high.

The detailed metadata collected allowed the researchers to build a rich profile for many users. Beyond the phone number, they could infer device type, account longevity, and the number of linked devices. This can enable highly targeted social engineering, phishing, spam, or even state-level surveillance in sensitive jurisdictions.

In addition, the reuse of cryptographic keys (especially identity keys) poses a theoretical risk to the integrity of WhatsApp’s end-to-end encryption trust model — particularly if unauthorized or insecure clients were in use.

The researchers also found that many of the enumerated accounts corresponded to phone numbers that had previously leaked in other data breaches. Specifically, they found a significant overlap with phone numbers exposed in the 2021 Facebook data breach, implying that previously compromised numbers remained active on WhatsApp.

Furthermore, they discovered millions of WhatsApp-registered numbers in countries where WhatsApp is officially restricted or banned, such as China, Iran, and Myanmar — potentially raising serious geopolitical or surveillance concerns.

Timeline & Disclosure

The researchers began testing and building their enumeration method in late 2024. By April 2025, they had enough evidence to responsibly disclose the issue to Meta / WhatsApp. Over the next months, they continued refining their tool, gathering metadata, and analyzing results.

By October 2025, in consultation with Meta, WhatsApp rolled out countermeasures to mitigate the vulnerability. The primary remediation was the introduction of stricter rate-limiting on contact discovery queries, significantly restricting the scale at which enumeration could be performed.

The researchers also deleted their collected datasets after confirmation that Meta had addressed the issue. They emphasized that they never accessed message content, only publicly or semi-public metadata. Their findings were later prepared for presentation at a major security conference.

Broader Risks & Privacy Implications

The flaw underscores a fundamental risk: even if message content is secured with end-to-end encryption, metadata remains a powerful and sensitive vector. Phone numbers, profile pictures, and publicly set “About” texts may seem innocuous — but aggregated at scale, they become a significant intelligence source.

By harvesting phone numbers and profiles, malicious actors can build comprehensive directories of active WhatsApp users, which can be used for:

  • Phishing campaigns and spam operations using verified numbers.
  • Impersonation or social engineering, especially when profile pictures are available.
  • Mass surveillance or state-level tracking, particularly in regimes hostile to encrypted messaging.
  • Identifying users of potential interest based on public “About” text or inferred metadata.

The reuse of cryptographic keys also raises serious security questions. If clients with weak or broken implementations are proliferating (especially unofficial clients), they could undermine the security guarantees of WhatsApp’s end-to-end encryption for affected users.

Additionally, the incident reignites debate about the wisdom of using phone numbers as unique identifiers on massively scaled messaging platforms. Phone numbers are predictable, structured, and not secret — making them inherently vulnerable to enumeration unless protected by robust defensive controls.

WhatsApp / Meta’s Response

WhatsApp acknowledged the issue publicly and confirmed that they had implemented stronger rate limiting on contact-discovery endpoints by October 2025. They credited the researchers under their bug-bounty and responsible-disclosure program for bringing the issue to light.

Meta stated that no non-public message content was exposed during the research, and that the data collected by the researchers was securely deleted. They also emphasized that their anti-scraping defenses were being strengthened and that the enumeration method the researchers used was previously not anticipated.

In internal reviews and public statements, WhatsApp noted that the enumeration vector exploited a design trade-off: the balance between usability (making it easy for users to discover their contacts on WhatsApp) and privacy (limiting how much account metadata can be probed). The fix, therefore, centers around curbing abuse of the discovery API.

Lessons for the Messaging Ecosystem

This disclosure drives home several lessons for messaging platforms, security teams, and privacy-conscious designers:

  • Metadata Matters as Much as Content: Even when messages are end-to-end encrypted, metadata can expose critical personal and behavioral information at scale.
  • Rate Limiting Is Not Optional: APIs that enable discovery or lookup must be designed with strict rate-limiting, anomaly detection, and abuse controls. Without them, enumeration is trivial.
  • Reevaluate Identity Models: Relying on phone numbers as the fundamental identity layer may no longer be tenable for large-scale secure messaging. Alternative identity schemes (e.g., usernames, cryptographic identifiers) may offer stronger privacy.
  • Monitor Client Behavior and Key Management: Platforms should monitor for unusual key reuse, potentially indicating unauthorized or insecure client implementations.
  • Embrace Independent Research: This case highlights the value of third-party security audits and academic research. Even mature, heavily used platforms can harbor systemic design risks.

Security Recommendations

For companies and security teams building or evaluating messaging systems, the following steps are critical:

  • Implement robust rate limiting, throttling, and CAPTCHA or proof-of-work on user-lookup or contact-discovery APIs.
  • Log and monitor query patterns to detect large-scale enumeration or scraping.
  • Limit the exposure of optional metadata (e.g., profile photo, “About” text) — provide granular user controls and secure defaults.
  • Audit cryptographic infrastructure to detect anomalous key reuse across accounts.
  • Encourage or enforce using officially supported clients, and reject weak or non-compliant clients during key exchange.
  • Maintain a mature responsible-disclosure program to surface such issues early.

Future Risk Scenarios

Although WhatsApp patched the flaw, the event serves as a cautionary tale. Potential future risks include:

  • Adversaries harvesting metadata before patches rolled out in time-sensitive windows.
  • New enumeration techniques emerging if WhatsApp or other platforms change discovery protocols without sufficient security review.
  • Malicious actors using leaked or harvested public keys (especially reused ones) to launch impersonation or decryption attacks via rogue clients.
  • State-level actors using large-scale enumeration for surveillance, particularly in regions where encrypted messaging is politically sensitive.
  • Broader regulatory backlash: repeated metadata exposures may prompt stricter data-protection or privacy regulation for messaging platforms.

Indicators of Compromise / Abuse

  • High-volume contact discovery / account-lookup traffic from a limited set of source IPs or accounts.
  • Unusually rapid enumeration of phone numbers, especially across broad numbering spaces.
  • Automated clients or bots probing discovery APIs.
  • Repeated queries for profile metadata (photos, “About” text) at scale.
  • Detection of reused or duplicate public encryption keys across multiple accounts / numbers.
Azhar Khan
Azhar Khan
Azhar is a seasoned Cybersecurity Professional with over 8 years of experience in Cybersecurity Research.