Facebook says security breach affected about 50 million accounts

The breach adds to concerns that Facebook is collecting too much personal information and not looking after it properly.

A Facebook Inc. logo sits on display at Station F, a mega-campus for startups located inside a former freight railway depot, in Paris, France. (Photo: Christophe Morin/Bloomberg)

(Bloomberg) – Facebook Inc. said it discovered a security breach earlier this week that affected almost 50 million accounts, the latest in a series of missteps that are undermining confidence in the company’s social network and business model.

Related: Next 12 months could see more cyber-related losses, survey finds

The social-media network said in a statement Friday that it has fixed the breach, which allowed hackers to take over people’s accounts. Law enforcement authorities and regulators including the Irish Data Protection Commissioner have been told about the incident. Shares declined about 3% on the news.

Personal information at risk

User data leaks, security breaches and the spread of misinformation have forced Facebook to confront hostile congressional hearings and uproar from users. This week’s breach adds to concerns that Facebook is collecting too much personal information and not looking after it properly. Data is the lifeblood of its advertising business, so any limits on its activities that stem from these missteps could crimp the company’s earning power.

Related: 5 biggest cyber threats that could impact businesses

There was a loophole in Facebook’s code for a feature called “View As” that let people see what their account looks like to someone else. The vulnerability allowed hackers to steal access tokens — digital keys that keep people logged into Facebook so they don’t need to re-enter passwords. Once logged in, the attackers could take control.

“This attack exploited the complex interaction of multiple issues in our code. It stemmed from a change we made to our video uploading feature in July 2017, which impacted ‘View As,’” Facebook said. “The attackers not only needed to find this vulnerability and use it to get an access token, they then had to pivot from that account to others to steal more tokens.”

Access codes taken from 50 million accounts

While access codes were taken from 50 million accounts in the recent breach, Facebook said it doesn’t know whether any personal information was gathered or misused from those accounts.

The vulnerability let the attacker use a Facebook account as if they were the account holder, executives said during a conference call on Friday. “We need to do more to prevent this from happening in the first place,” Chief Executive Officer Mark Zuckerberg said.

Related: Bodily harm: The next frontier for cyber

The Cambridge Analytica scandal from earlier this year, which involved a developer handing over Facebook user profile information to a third party, affected up to 85 million people and led to a congressional hearing. This new vulnerability is potentially worse because it let hackers log in as the holder of the account, giving them access to information that was not otherwise public.

“We may never know” who was behind this, Facebook executive Guy Rosen said. “We did see this attack being used at a fairly large scale.”

Sophisticated attack

The hack required sophistication, said Rosen. The attackers had the resources to find three different bugs and exploit them in tandem. Facebook is investigating the breach in partnership with the FBI, which did not immediately respond to a request for comment on the possibility of nation state involvement.

The news could weigh on growth and hurt profit in the second half of this year, according to Bloomberg Intelligence analyst Jitendra Waral. “Facebook also may lose users who have been asked to reset sign-ins” and face fines under Europe’s General Data Protection Regulation, he wrote Friday in a note to investors.

Everyone whose profile used the “View As” tool in the last year will have to log in to Facebook again, and any apps that used Facebook to log in. From there, they’ll be able to see a statement from Facebook explaining what happened. The company estimated that about 90 million people will have to log in again. Facebook has more than 2 billion users.

Related: Underwriters must know how cyber events are found, reported