Facebook

WikipediaVerified

Breach Date

June 21, 2013

Records Affected

6,000,000

Verified

Yes

Source

wikipedia

Summary

In June 2013, Facebook disclosed a security bug that had accidentally exposed the personal contact information of approximately 6 million users. The flaw existed in Facebook's Download Your Information (DYI) tool, which allows users to download an archive of their Facebook data. Due to a bug in the tool's contact information aggregation system, when a user downloaded their archive, it could contain email addresses and phone numbers of people in their contact list or friend network — data that those individuals had not consented to share.

The bug was caused by the way Facebook's systems processed contact information uploaded by users through the platform's friend-finding feature. When users uploaded their phone contacts to find friends on Facebook, the system stored these contact details and associated them with matching Facebook profiles. The DYI tool then inadvertently included these associated contact details in other users' data archives, effectively leaking private phone numbers and email addresses of people who had never intended for that information to be shared beyond their own privacy settings.

Facebook was alerted to the vulnerability through its white-hat security bug bounty program and disabled the DYI tool on June 21, 2013, while it fixed the issue. The company stated that the data had been exposed for approximately one year before it was discovered and patched. Facebook noted that each individual piece of exposed information was only included in a download archive of one or two other people — limiting the breadth of any single exposure — but the aggregate number of affected users reached approximately 6 million.

The incident occurred during a period of increasing scrutiny over Facebook's data handling practices and highlighted the risks inherent in features that aggregate and cross-reference personal information. While not a traditional external hack, the bug demonstrated that privacy violations can arise from internal software errors in complex systems that handle billions of data points across interconnected user accounts.

Breach Details

Breach Date
June 21, 2013
Records Affected
6,000,000
Source
Wikipedia
Verified
Verified
Industry
Social/Entertainment
Type
Accidentally Published

Impact Analysis

Scale of Impact

  • ~6 million users had their email addresses or phone numbers inadvertently exposed to other users
  • Each individual's data was typically exposed to only one or two other people through their data archives
  • The bug was active for approximately one year before discovery
  • Data was exposed through a legitimate Facebook feature (Download Your Information), not through public access

Data Types Exposed

  • Email addresses
  • Phone numbers

Financial Impact

CategoryAmount
Direct finesNone (pre-GDPR)
Bug bounty paymentPaid to reporting researcher (amount undisclosed)
Remediation costsUndisclosed (engineering time to fix the bug)

Downstream Effects

  • The incident contributed to growing public concern about Facebook's handling of personal data, prefiguring the larger Cambridge Analytica scandal
  • The exposure of phone numbers was particularly sensitive, as many users had uploaded contacts without fully understanding that this data would be stored and potentially cross-referenced
  • The bug revealed the complexity and opacity of Facebook's data aggregation systems, even to Facebook's own engineering team
  • Trust in the Download Your Information tool was undermined, despite it being designed as a privacy-positive feature
  • The incident highlighted how contact upload features — common across social platforms — create hidden data flows that users do not anticipate

Timeline

  • ~June 2012: The bug is introduced in Facebook's Download Your Information tool through a code change in the contact information aggregation system
  • June 2012 - June 2013: The bug is active for approximately one year, during which DYI archives generated for some users include email addresses and phone numbers of contacts who had not consented to share that information
  • June 2013: A security researcher discovers the bug and reports it through Facebook's white-hat bug bounty program
  • June 21, 2013: Facebook disables the Download Your Information tool to prevent further data exposure
  • June 21, 2013: Facebook publicly discloses the bug, providing details about the nature and scope of the data exposure
  • Late June 2013: Facebook patches the bug and re-enables the DYI tool with corrected data aggregation logic
  • June 2013: Facebook begins notifying affected users whose contact information was exposed

Lessons Learned

1. Data Aggregation Features Require Exhaustive Privacy Testing

The DYI tool was designed as a privacy-positive feature, letting users access their own data. But the underlying data aggregation logic inadvertently cross-referenced and exposed other people's contact information. Any feature that aggregates data from multiple users must be tested not only for functionality but for privacy boundary violations — ensuring that one user's data archive cannot include another user's private information.

2. Contact Upload Features Create Hidden Data Flows

When users upload their phone contacts to find friends, they are sharing third-party data — the phone numbers and email addresses of people who have not consented to any data sharing. This creates complex data flows where information provided by User A about User B can be exposed to User C. Platforms must design contact import features with strict isolation to prevent unintended data leakage.

3. Bug Bounty Programs Are Effective Discovery Mechanisms

Facebook's bug bounty program was responsible for identifying this vulnerability. Without the program, the bug might have persisted indefinitely, as it was not the type of issue that standard functional testing or security scanning would easily detect. Bug bounty programs are particularly valuable for discovering logic errors in complex data handling systems.

4. One Year of Undetected Exposure Is Too Long

The bug was active for approximately one year before discovery. For a company processing data at Facebook's scale, this represents an enormous volume of potentially affected data archives. Automated privacy testing, data flow auditing, and regular security reviews of data export features are necessary to reduce the window of exposure.

5. Individual Exposure Limits Do Not Eliminate Aggregate Harm

Facebook emphasized that each affected individual's data was only exposed to one or two other people. While this limited individual harm, the aggregate impact was 6 million affected users. Organizations should not minimize breach severity based on limited individual exposure when the total affected population is large.

Technical Details

Bug Description

The vulnerability was a logic error in Facebook's Download Your Information (DYI) tool:

  1. Contact Upload System: When Facebook users uploaded their phone contacts (to find friends), the phone numbers and email addresses were stored and associated with matching Facebook profiles
  2. Data Aggregation Logic: The DYI tool was designed to compile all data associated with a user's account into a downloadable archive
  3. The Bug: The aggregation logic incorrectly included contact information that had been associated with a user's profile through other users' contact uploads, rather than only information the user themselves had provided
  4. Result: When User A downloaded their data archive, it could contain the phone number or email address of User B — even if User B had never shared that information with User A — because User C had uploaded a contact list containing User B's information and User B's profile was connected to User A

Scope Characteristics

  • Each exposed individual's data (phone number or email) appeared in the archive of typically only one or two other users
  • The exposure was not public — the data was only accessible to the specific user who downloaded their DYI archive
  • The bug affected the contact information aggregation, not other types of data in the DYI archive
  • Approximately 6 million unique users had at least one contact detail exposed

Discovery and Fix

  • Discovery: A security researcher identified the issue through Facebook's white-hat bug bounty program
  • Immediate Response: Facebook disabled the DYI tool on June 21, 2013
  • Root Cause Fix: The data aggregation logic was corrected to ensure DYI archives only include data the requesting user themselves provided or that was explicitly shared with them according to privacy settings
  • Verification: The tool was re-enabled after thorough testing of the corrected logic

Attackers

No external attackers were involved. This was a software bug in Facebook's own systems that caused unintended data exposure through normal use of a legitimate feature. The vulnerability was discovered and reported by a security researcher through Facebook's bug bounty program.

Frequently Asked Questions

What happened in the Facebook 2013 data exposure?

A bug in Facebook's Download Your Information tool caused the phone numbers and email addresses of approximately 6 million users to be inadvertently included in other users' data archives. The bug was active for about one year before being discovered and fixed.

Was this a hacking incident?

No. This was a software bug in Facebook's own data aggregation system. No external attacker was involved. The bug caused the platform to accidentally include contact information in the wrong users' data download archives.

How did the bug work?

When users uploaded their phone contacts to Facebook (to find friends), those phone numbers and email addresses were stored and linked to matching Facebook profiles. The Download Your Information tool then incorrectly included some of this cross-referenced contact data in other users' archives, exposing information that those individuals had not consented to share.

How was the bug discovered?

A security researcher found the vulnerability and reported it through Facebook's white-hat bug bounty program. Facebook disabled the Download Your Information tool on June 21, 2013, fixed the bug, and publicly disclosed the issue.

Was the exposed data publicly accessible?

No. The exposed data was only included in individual users' Download Your Information archives. Each affected person's information typically appeared in only one or two other users' downloads. The data was not publicly posted or accessible through Facebook's interface.

What was the long-term impact?

The incident contributed to growing scrutiny of Facebook's data handling practices and highlighted the unintended privacy consequences of features like contact uploading. It prefigured larger privacy controversies that would later engulf the company, including the Cambridge Analytica scandal in 2018.

Back to Breach Database
Breach data sourced from Wikipedia: List of data breaches, licensed under CC BY-SA 3.0.

Protect Your Organization From Data Breaches

Our security experts can help you identify vulnerabilities and strengthen your defenses.