Facebook

WikipediaVerified

Breach Date

September 28, 2018

Records Affected

50,000,000

Verified

Yes

Source

wikipedia

Summary

On September 28, 2018, Facebook disclosed a major security breach that directly affected approximately 50 million user accounts, with an additional 40 million accounts reset as a precautionary measure — totaling 90 million accounts whose access tokens were invalidated. The attackers exploited a chain of three interconnected software vulnerabilities in Facebook's "View As" feature, which allows users to preview how their profile appears to others. By chaining these bugs together, the attackers were able to steal access tokens — the digital keys that keep users logged into Facebook without re-entering their password.

The vulnerability was introduced in July 2017 through a change to Facebook's video uploader feature that inadvertently interacted with the "View As" functionality. Facebook's engineering team discovered the unusual spike in user activity associated with the exploit on September 25, 2018, identified the vulnerability, and deployed a patch by September 27 — a remarkably fast response once the issue was detected. However, the vulnerability had been exploitable for approximately 14 months before discovery.

Facebook stated that its investigation found no evidence that the stolen access tokens were used to access accounts or that any private information was actually extracted. As a precaution, Facebook reset the access tokens of all 90 million potentially affected accounts, forcing those users to re-login. The incident marked the first major test of Facebook's obligations under the European Union's General Data Protection Regulation (GDPR), which had taken effect just four months earlier in May 2018. Ireland's Data Protection Commission opened a formal investigation, and Facebook ultimately faced a $5 billion FTC settlement in 2019 — though that settlement addressed a broader pattern of privacy violations, not solely the 2018 breach.

Breach Details

Breach Date
September 28, 2018
Records Affected
50,000,000
Source
Wikipedia
Verified
Verified
Industry
Social/Entertainment
Type
Poor Security

Impact Analysis

Scale of Impact

  • 50 million accounts directly affected — access tokens stolen by the attackers
  • 40 million additional accounts reset as a precautionary measure (users of the "View As" feature)
  • 90 million total accounts had access tokens invalidated, forcing re-login
  • 14 months of exploitability — vulnerability existed from July 2017 to September 2018

Data and Access at Risk

Access tokens provide the same level of access as the account owner's password. With stolen access tokens, the attackers could potentially:

  • View private profile information, messages, and photos
  • Access third-party apps and services connected via Facebook Login (OAuth)
  • Post content, send messages, and perform actions as the affected user
  • Access any Facebook-connected service (Instagram, Spotify, Tinder, etc.) where the user had used Facebook Login

What Facebook Found

  • No evidence of account misuse: Facebook stated its investigation found no indication that the stolen tokens were used to access accounts
  • No evidence of data extraction: No private user data was confirmed as having been accessed or exfiltrated
  • Precautionary reset: Facebook chose to reset tokens for 90 million accounts despite lack of confirmed misuse

Financial and Regulatory Impact

CategoryDetails
GDPR investigationIreland's DPC opened formal inquiry (first major GDPR test for Facebook)
FTC settlement (2019)$5 billion (broader privacy violations, including 2018 breach context)
Stock impact~3% share price decline in the days following disclosure
User trustSignificant erosion during a period already marked by the Cambridge Analytica scandal

Context: Timing and Trust

The 2018 breach occurred at a particularly sensitive time for Facebook:

  • The Cambridge Analytica scandal had broken in March 2018, already severely damaging public trust
  • GDPR had taken effect in May 2018, creating new regulatory obligations and potential fines
  • Facebook was under intense congressional scrutiny following Mark Zuckerberg's April 2018 Senate testimony
  • The breach reinforced the narrative that Facebook could not adequately protect its users' data

Timeline

  • July 2017: A code change to Facebook's video uploader feature introduces a bug that interacts with the "View As" feature, creating an exploitable vulnerability in access token generation
  • September 14, 2018: Facebook notices an unusual spike in user activity that will later be linked to the exploitation of the vulnerability
  • September 25, 2018: Facebook's engineering team identifies the spike as a security issue and begins investigating; the exploitation of the "View As" vulnerability is discovered
  • September 27, 2018: Facebook patches the vulnerability and fixes the three interconnected bugs; the "View As" feature is temporarily disabled
  • September 28, 2018: Facebook publicly discloses the breach, announces that approximately 50 million accounts were directly affected, and resets access tokens for 90 million accounts as a precaution
  • September 28, 2018: Facebook notifies Ireland's Data Protection Commission (its lead supervisory authority under GDPR) within 72 hours of confirming the breach, as required by GDPR
  • October 2018: Ireland's DPC opens a formal investigation into the breach under GDPR
  • October 12, 2018: Facebook updates its investigation, narrowing the directly affected accounts to approximately 30 million (revised downward from initial 50 million estimate)
  • October 12, 2018: Facebook provides details on data accessed: 15 million users had names and contact details (phone/email) accessed; 14 million had additional data accessed (including username, gender, locale, relationship status, religion, hometown, birth date, device types, recent searches, and last 15 places checked into); 1 million had no data accessed
  • 2019: Facebook reaches a $5 billion settlement with the FTC addressing a broad pattern of privacy practices, with the 2018 breach as one element
  • November 2022: Ireland's DPC concludes its GDPR investigation, issuing a €265 million fine (related to the separate 2019 Facebook data scraping incident, not the 2018 token breach specifically)

Lessons Learned

1. Feature Interactions Create Hidden Attack Surfaces

The vulnerability was not in a single feature but in the interaction between three components: the "View As" privacy preview, the video uploader, and the access token generation logic. Each component may have been individually secure, but their interaction created an exploitable chain. This illustrates that security testing must include cross-feature interaction testing, not just testing features in isolation. Complex platforms with millions of lines of code are particularly susceptible to these emergent vulnerabilities.

2. Access Tokens Require Robust Security Controls

Access tokens are functionally equivalent to passwords — they provide full account access without requiring re-authentication. The breach demonstrated that token generation, validation, and rotation mechanisms must be treated with the same security rigor as password management. Organizations should implement token binding (tying tokens to specific devices/sessions), short token lifetimes, and anomaly detection for unusual token usage patterns.

3. OAuth/SSO Login Creates Cascading Risk

Because Facebook Login is used as an authentication provider for thousands of third-party services, stolen Facebook access tokens could potentially grant access to any service where the user had connected their Facebook account — including Instagram, Spotify, Tinder, Airbnb, and others. This cascading authentication risk is an inherent vulnerability of centralized identity providers. Users and service providers alike should implement additional verification layers beyond federated login.

4. Rapid Incident Response Limits Damage

Facebook's response timeline — from discovery on September 25 to patch on September 27 to public disclosure on September 28 — was notably fast. The rapid identification, patching, and disclosure limited the window of ongoing exploitation and demonstrated compliance with GDPR's 72-hour notification requirement. This stands in contrast to breaches like Yahoo, where years-long disclosure delays compounded the damage.

5. GDPR Changes the Breach Response Calculus

The 2018 breach was the first major test of how a technology giant would respond to a significant security incident under GDPR. Facebook's prompt notification to Ireland's DPC set a precedent and demonstrated that GDPR's 72-hour notification requirement was operationally feasible even for incidents affecting tens of millions of users. However, the subsequent multi-year investigation also showed that GDPR enforcement is a slow process.

6. Precautionary Measures Build Trust

Facebook's decision to reset tokens for 90 million accounts — 40 million more than were confirmed compromised — was a proportionate precautionary measure that prioritized user safety over user convenience. While inconvenient for users who had to re-login, this approach limited potential damage from any undetected exploitation and demonstrated a responsible security posture.

Technical Details

Attack Vector: Chained Vulnerability in "View As" Feature

The breach exploited three distinct software bugs that, when chained together, allowed attackers to steal user access tokens:

Bug 1: Video Uploader in "View As" Context
When a user activated the "View As" feature (designed to show how their profile looks to another person), a video upload tool was incorrectly displayed. This uploader should not have appeared in the "View As" context — it was an unintended feature interaction introduced by a code change in July 2017.

Bug 2: Incorrect Token Generation
The video uploader, when rendered in the "View As" context, incorrectly generated an access token. Critically, this token was generated with the permissions of the user being "viewed as" (the target), not the user performing the "View As" action (the attacker). This was the core authentication flaw.

Bug 3: Token in Page Source
The incorrectly generated access token was embedded in the HTML of the page, making it accessible to the attacker. Combined with Bug 2, this meant the attacker could extract a valid access token for any user they targeted via the "View As" feature.

Exploitation Chain

Attacker activates "View As" for target user
  → Video uploader incorrectly renders (Bug 1)
  → Token generated with target user's permissions (Bug 2)
  → Token exposed in page HTML (Bug 3)
  → Attacker extracts valid access token for target user
  → Token provides full account access equivalent to password

What Are Access Tokens?

Access tokens are cryptographic strings that authenticate a user's session without requiring them to re-enter their password. They are the mechanism behind the "Stay logged in" functionality:

PropertyDescription
FunctionAuthenticates user sessions without password re-entry
ScopeFull account access (profile, messages, photos, connected apps)
LifetimeLong-lived tokens can persist for weeks or months
OAuth impactTokens also authenticate to third-party services using Facebook Login
RevocationTokens can be invalidated by the platform (as Facebook did for 90M accounts)

Scale of Exploitation

  • The vulnerability existed from July 2017 (code change) to September 27, 2018 (patch deployed) — approximately 14 months
  • Facebook detected unusual activity on September 14, 2018, and identified it as a security issue on September 25, 2018
  • Initial estimate: 50 million accounts had their access tokens stolen
  • Revised estimate (October 12, 2018): 30 million accounts confirmed affected, broken down as:
    • 15 million: Names + contact details (phone and/or email) accessed
    • 14 million: Names + contact details + additional profile data accessed (username, gender, locale, relationship status, religion, hometown, birth date, device types, recent searches, last 15 check-in locations)
    • 1 million: Tokens stolen but no data actually accessed

Remediation

  1. Vulnerability patched on September 27, 2018
  2. "View As" feature disabled temporarily for security audit
  3. 90 million access tokens invalidated, forcing re-authentication
  4. Third-party app tokens reviewed — developers using Facebook Login were provided tools to identify affected users
  5. Enhanced token security — Facebook implemented additional protections for access token generation and validation

Frequently Asked Questions

How many Facebook accounts were affected in the 2018 breach?

Initially, Facebook reported that approximately 50 million accounts were directly affected. In an October 2018 update, the company revised this to approximately 30 million confirmed affected accounts. As a precaution, Facebook reset access tokens for 90 million accounts total.

What is the "View As" feature?

The "View As" feature is a Facebook privacy tool that allows users to preview how their profile appears to other specific users or to the general public. The vulnerability was in how this feature interacted with Facebook's video uploader, which incorrectly generated access tokens with the wrong user's permissions.

What are access tokens and why are they important?

Access tokens are digital keys that keep users logged into Facebook (and other services) without requiring them to re-enter their password each time. They are functionally equivalent to passwords in terms of the access they grant. Stolen access tokens allow an attacker to access the victim's account as if they had the password.

Were the stolen access tokens actually used to access accounts?

Facebook stated that its investigation found no evidence that the stolen access tokens were used to access accounts or that any private information was actually extracted. However, the company reset 90 million accounts as a precautionary measure.

Could the breach have affected third-party apps?

Potentially, yes. Because Facebook Login (OAuth) is used by thousands of third-party apps and services, a stolen Facebook access token could theoretically grant access to any connected service where the user had used Facebook Login — including apps like Instagram, Spotify, or Tinder. Facebook worked with third-party developers to identify and address potentially affected accounts.

How long did the vulnerability exist before it was found?

The vulnerability was introduced by a code change in July 2017 and was discovered by Facebook's engineering team on September 25, 2018 — approximately 14 months later. It was patched within two days of discovery, on September 27, 2018.

How does this breach differ from the Cambridge Analytica scandal?

The 2018 breach and the Cambridge Analytica scandal are entirely separate incidents. The Cambridge Analytica scandal (disclosed March 2018) involved the misuse of Facebook's developer API to harvest data from millions of users through a quiz app — it was a data misuse issue, not a security vulnerability. The September 2018 breach involved attackers exploiting a software vulnerability to steal access tokens — it was a technical security breach. Both incidents occurred in 2018, compounding the damage to Facebook's reputation.

Was Facebook fined for the 2018 breach?

Facebook reached a $5 billion settlement with the FTC in 2019, but this addressed a broader pattern of privacy practices, not solely the 2018 breach. Ireland's Data Protection Commission opened a GDPR investigation into the breach. The regulatory consequences specifically attributable to the 2018 token breach (as opposed to Facebook's other privacy issues) were part of the broader enforcement pattern rather than a standalone fine.

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.