Skip to content
Info disclosure Write-up Beginner

Bug Exposed Offsite Employee Events, Sensitive emails Putting Employees at Risk

A Facebook settings page listing recent emails sent to an account was accessible without verifying the email address. An attacker could sign up with someone else's email and read the subjects of future notifications, exposing sensitive account and business activity.

Rohit Kumar Follow

Published on medium.com

Bounty$1,000 View original

#### Rohit kumar

Rohit kumar, on medium.com

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Facebook and Facebook Workplace both send email to users: notifications, business and page role messages, support messages and other account activity. Facebook exposes a page that lists the emails it has sent to an account, the "Check recent emails" view, reachable at:

Text
https://www.facebook.com/settings?tab=security&section=recent_emails&view

Normally a user reaches it through Settings > Security and login > Recent emails from Facebook, and only once the account's email address has been verified. The researcher notes that most of the useful information can be fetched from the email subjects alone.

The same path exists on Workplace:

Text
https://workplace.facebook.com/settings?tab=security&section=recent_emails&view

According to the report, Workplace does not offer this feature to users even when their email is verified, but the page is still reachable there.

Setup

No special tooling is needed. The precondition is an account created with an email address the attacker does not control, so the address is never verified. The researcher suggests picking a plausible address, for example a logical address or the address of an important person in an organisation, such as [redacted] or [redacted]. In the reproduction steps the example address is [redacted].

Finding it

The researcher noticed that the recent emails page was only hidden from unverified users, not protected. The link is not shown in the security settings while the email is unverified, but the page itself can be opened by typing the URL directly. Because the account can be created with any address, an attacker can create an account for somebody else's address and read the email subjects that Facebook sends to that address.

Exploitation

Step 1: create an account with the victim's address

Visit the Facebook signup page and create a new account using the target address, for example [redacted].

Step 2: leave the address unverified

The address receives an OTP for account verification, but the attacker has no access to the mailbox, so verification is never completed.

Step 3: wait for activity on the address

Suppose the business account manager at the target organisation invites [redacted] to some business related activity. Facebook sends the corresponding email to that address.

Step 4: read the recent emails page directly

Open the page by typing the URL in the browser, without verifying the OTP:

Text
https://www.facebook.com/settings?tab=security&section=recent_emails&view

The page lists the emails sent to the address, so most of the business related activities performed by the organisation for that address can be seen by a user who never verified the email.

Step 5: the same works for support messages

Facebook support sometimes contacts a user, for example about a bug bounty discussion. An unverified user cannot visit facebook.com/support, because they are redirected to OTP verification, and in notifications they only see a message such as "We are having 1 message for you in dashboard". Through the recent emails page the attacker can see these notifications as well.

Step 6: repeat on Workplace

On Workplace the same URL exposes the same information:

Text
https://workplace.facebook.com/settings?tab=security&section=recent_emails&view

The researcher's reasoning is that much of the Workplace code was copied from Facebook, so the page exists there even though Workplace does not offer the feature to verified users.

What the attacker sees

The exposed data is the details visible in the email subjects of the emails Facebook and Workplace send to the address. The researcher states that both the victim's and the attacker's account show the list of these emails, so the attacker can follow the victim's account activity over a long period. The screenshots in the write-up illustrate the kind of sensitive information that was exposed.

Image for post
Image credits: Ask Buddie From the original on medium.com
Image for post
Image for post

Root cause

The feature was misconfigured: the recent emails page was hidden from unverified users, but the page could still be opened by typing the URL directly. Hiding the link is a UI measure, not an access control, so requesting the URL directly bypasses it. Facebook allows accounts to be created without full email verification, which is what lets an attacker attach the victim's address to their own account.

Impact

The researcher lists three categories of exposed information:

  1. Business related and page role related notifications, which are not visible in Facebook notifications and are sent only by email.
  2. Sensitive activities.
  3. Mail sent by Facebook to the user's email.

In practice an attacker who knows or guesses an address can create an unverified account for it and read the details in the subjects of the emails sent to that address, including business invitations, page role details and support messages. The researcher notes that most of the information can be fetched from the email subjects.

Fix

The report does not describe the change Facebook made. The report does not describe any fix.

Disclosure timeline

Facebook first closed the report. The reply of 17 November 2018 said that creating accounts without full email verification is intended, that the sent email is not shown after the victim verifies the account, and that the login behaviour the researcher saw was Facebook recognising an old email for the account, so the report did not fully qualify for the bounty.

The researcher replied that the report was not about creating accounts without verification but about a misconfigured feature disclosing a user's or business manager's activity, such as page role and business details, and pointed out that Facebook itself does not show the link to the page for unverified emails.

After a few months and further conversation, Facebook awarded a bounty of $1000, explaining that signing up with an unconfirmed email would show all notifications previously sent to that email. The award was fulfilled through Bugcrowd.

Image for post
Hall of fame facebook. From the original on medium.com

Variants to test

  • Request the recent emails URL on an account whose email is unverified and check whether the list renders. A positive result is a populated list of email subjects instead of a redirect to OTP verification.
  • Try the equivalent settings path on related products that share code with the main platform, as was done with Workplace. A positive result is the same page rendering on the sibling product.
  • Look for other settings pages that are hidden rather than access controlled for unverified accounts, and request them directly. A positive result is any page that returns account data without the verification step.
  • Create an account with an address you do not control and observe whether notifications for that address appear in the account. A positive result is email subjects for an address whose mailbox you cannot access.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Facebook and Facebook Workplace send a lot of email to their users. Some of it is ordinary notification mail, but some of it is more sensitive: messages about business pages, page roles, support conversations and other account activity. Facebook also has a page that lists the emails it has sent to an account, called the "Check recent emails" view. You normally reach it through Settings > Security and login > Recent emails from Facebook, and only after you have confirmed that the email address on the account really belongs to you.

That confirmation step is called email verification. When you sign up, Facebook sends a one-time code (an OTP, short for one-time password) to the address you typed in. You copy that code back into Facebook, and Facebook then knows the mailbox is yours. Until you do that, the address is unverified.

The researcher found that the recent emails page was hidden from unverified users, but could still be opened by typing the URL directly. The link did not appear in the settings menu, but the page itself could still be opened by typing its address into the browser. And because Facebook lets you create an account with any email address, without proving you own it, an attacker could create an account using somebody else's address and then read the subject lines of every email Facebook sent to that address.

A useful everyday comparison: imagine a hotel where the reception desk does not display the room keys of guests who have not yet shown ID, but the keys are still lying on the counter. Not showing them is not the same as locking them away. Here, hiding the link in the menu was the equivalent of not displaying the keys; typing the URL was the equivalent of reaching over the counter.

This is a classic example of an information disclosure vulnerability: nothing is broken or taken over, but data that should have stayed private becomes readable by the wrong person. The researcher was paid a $1000 bounty for the report.

The product and the feature

Facebook is the social network most readers already know. Facebook Workplace is the same platform packaged for companies: employees get accounts tied to their organisation, and the product carries business features such as page roles (who is allowed to manage a company page) and business notifications.

Both products send email. The researcher notes that Facebook and Workplace send notifications, business and page role messages, support messages and other account activity to the user's inbox. The feature at the centre of the report is the page that lists those emails. It is reachable at this address:

Text
https://www.facebook.com/settings?tab=security&section=recent_emails&view

Reading that URL piece by piece:

  • https:// is the secure web protocol; the s means the traffic between your browser and the server is encrypted.
  • www.facebook.com is the site you are talking to.
  • /settings is the settings area of the account.
  • ?tab=security&section=recent_emails&view is the part after the question mark. Everything after ? is a set of parameters, small labelled values the page uses to decide what to show. tab=security says "open the security tab", section=recent_emails says "show the recent emails section", and view is an extra flag. Parameters are like options you tick on a form; here they are written into the address instead of clicked.

Normally a user reaches this page through Settings > Security and login > Recent emails from Facebook, and only once the account's email address has been verified. The researcher points out that most of the useful information can be fetched from the email subjects. The researcher points out that most of the useful information can be read from those subjects alone, which is why the subject lines matter even though the body of each email is not shown.

The same path exists on Workplace:

Text
https://workplace.facebook.com/settings?tab=security&section=recent_emails&view

This is the same URL with workplace.facebook.com in place of www.facebook.com. According to the report, Workplace does not offer this feature to users even when their email is verified, but the page is still reachable there.

Setup

No special tooling is needed. You need a browser and a computer, nothing more. The precondition is an account created with an email address the attacker does not control, so the address is never verified.

The researcher suggests picking a plausible address: a logical address, or the address of an important person in an organisation, such as [redacted] or [redacted]. In the reproduction steps the example address is [redacted]. The point of choosing a realistic address is that real mail is more likely to be sent to it: a company's systems will write to its CEO, and Facebook will write to an address that looks like it belongs to a real person.

Finding it

The researcher noticed that the recent emails page was only hidden from unverified users, not protected. The link is not shown in the security settings while the email is unverified, but the page itself can be opened by typing the URL directly. Because the account can be created with any address, an attacker can create an account for somebody else's address and read the email subjects that Facebook sends to that address.

This distinction between hiding and protecting is the heart of the bug. A menu that does not show a link is a convenience for honest users; it stops nobody who knows the address. Real protection means the server checks, every time the page is requested, whether the person asking is allowed to see it.

Exploitation

Step 1: create an account with the victim's address

Visit the Facebook signup page and create a new account using the target address, for example [redacted]. The attacker is not trying to break into the victim's existing account; they are making a brand new account that happens to carry the victim's address.

Step 2: leave the address unverified

The address receives an OTP for account verification, but the attacker has no access to the mailbox, so verification is never completed. This is deliberate: the whole trick depends on the account staying in the unverified state, because that is the state in which the page is supposed to be off limits.

Step 3: wait for activity on the address

Suppose the business account manager at the target organisation invites [redacted] to some business related activity. Facebook sends the corresponding email to that address. The attacker does nothing here except wait; the victim's own organisation generates the traffic by using the address normally.

Step 4: read the recent emails page directly

Open the page by typing the URL in the browser, without verifying the OTP:

Text
https://www.facebook.com/settings?tab=security&section=recent_emails&view

Line by line, in plain words: this is a single web address. The browser sends a request for it to Facebook's server. The server looks up the logged-in account, finds the recent emails section, and returns the page. The page returns the list even though the account's email was never verified. The page lists the emails sent to the address, so most of the business related activities performed by the organisation for that address can be seen by a user who never verified the email.

Step 5: the same works for support messages

Facebook support sometimes contacts a user, for example about a bug bounty discussion. An unverified user cannot visit facebook.com/support, because they are redirected to OTP verification, and in notifications they only see a message such as "We are having 1 message for you in dashboard". Through the recent emails page the attacker can see these notifications as well.

This step matters because it shows the bug is not limited to business mail. Support conversations can contain details a user would never expect a stranger to read, and the normal support page is properly gated behind the OTP. The recent emails page quietly bypasses that gate for the subject lines.

Step 6: repeat on Workplace

On Workplace the same URL exposes the same information:

Text
https://workplace.facebook.com/settings?tab=security&section=recent_emails&view

Again, one address, requested directly in the browser. The researcher's reasoning is that much of the Workplace code was copied from Facebook, so the page exists there even though Workplace does not offer the feature to verified users. When two products share code, a mistake in one tends to appear in the other; that is why testing sibling products is worth the effort.

What the attacker sees

The exposed data is the details visible in the email subjects of the emails Facebook and Workplace send to the address. The researcher states that both the victim's and the attacker's account show the list of these emails, so the attacker can follow the victim's account activity over a long period. The screenshots in the write-up illustrate the kind of sensitive information that was exposed.

Image for post
Image credits: Ask Buddie From the original on medium.com

The first screenshot shows the sort of sensitive email subject that was exposed. The researcher's point around it is that everyone knows what kind of notifications and messages Facebook sends to an inbox, and this bug let an attacker see exactly those details.

Image for post
Image for post From the original on medium.com

The second screenshot shows the same kind of sensitive information being exposed to an attacker.

Root cause

The feature was misconfigured: the recent emails page was hidden from unverified users, but the page could still be opened by typing the URL directly. Hiding the link is a UI measure, not an access control, so requesting the URL directly bypasses it. Facebook allows accounts to be created without full email verification, which is what lets an attacker attach the victim's address to their own account.

In everyday terms: the door had a "staff only" sign but no lock. Anyone who knew where the door was could walk through it. The two ingredients are a missing check on the server and a signup process that trusts whatever address you type.

Impact

The researcher lists three categories of exposed information:

  1. Business related and page role related notifications, which are not visible in Facebook notifications and are sent only by email.
  2. Sensitive activities.
  3. Mail sent by Facebook to the user's email.

In practice an attacker who knows or guesses an address can create an unverified account for it and read the details in the subjects of the emails sent to that address, including business invitations, page role details and support messages. The researcher notes that most of the information can be fetched from the email subjects.

Fix

The report does not describe the change Facebook made. The report does not describe any fix. In other words: put a lock on the door, not just a sign.

Disclosure timeline

Facebook first closed the report. The reply of 17 November 2018 said that creating accounts without full email verification is intended, that the sent email is not shown after the victim verifies the account, and that the login behaviour the researcher saw was Facebook recognising an old email for the account, so the report did not fully qualify for the bounty.

The researcher replied that the report was not about creating accounts without verification but about a misconfigured feature disclosing a user's or business manager's activity, such as page role and business details, and pointed out that Facebook itself does not show the link to the page for unverified emails. That last point is a neat argument: if the feature were intended to be visible to unverified users, Facebook would not hide its link.

After a few months and further conversation, Facebook awarded a bounty of $1000, explaining that signing up with an unconfirmed email would show all notifications previously sent to that email. The award was fulfilled through Bugcrowd.

Image for post
Hall of fame facebook. From the original on medium.com

The final screenshot shows the Facebook hall of fame.

Variants to test

These are the same ideas generalised, so a beginner can look for similar mistakes elsewhere:

  • Request the recent emails URL on an account whose email is unverified and check whether the list renders. A positive result is a populated list of email subjects instead of a redirect to OTP verification.
  • Try the equivalent settings path on related products that share code with the main platform, as was done with Workplace. A positive result is the same page rendering on the sibling product.
  • Look for other settings pages that are hidden rather than access controlled for unverified accounts, and request them directly. A positive result is any page that returns account data without the verification step.
  • Create an account with an address you do not control and observe whether notifications for that address appear in the account. A positive result is email subjects for an address whose mailbox you cannot access.

Glossary

  • Bounty: a reward, usually money, paid by a company to someone who reports a security problem to it responsibly.
  • Bugcrowd: a platform that companies use to run bug bounty programmes and to pay researchers.
  • Email verification: the step where you prove you own an email address, normally by entering a code sent to that mailbox.
  • Hall of fame: a public page where a company lists researchers who have reported valid issues.
  • Information disclosure: a vulnerability where private data becomes readable by someone who should not see it, without anything being broken or taken over.
  • Misconfiguration: a setting or setup mistake that leaves a feature less protected than intended.
  • OTP (one-time password): a short code valid for a single use, sent to your email or phone to prove it is yours.
  • Page role: a permission level on a company or brand page, such as administrator or editor, that decides what a person may do on that page.
  • Parameter: a labelled value in a URL after the ?, used by the page to decide what to display.
  • Redirect: an automatic forward from one web address to another, often used to send you to a login or verification page.
  • Root cause: the underlying reason a vulnerability exists, as opposed to its visible symptoms.
  • Subject line: the short title of an email, shown in the inbox list before the message is opened.
  • UI (user interface): the parts of a product a person sees and clicks, such as menus and buttons.
  • URL: the address of a page or resource on the web, typed into the browser's address bar.
  • Workplace: Facebook's version of the platform for companies and their employees.

More by Rohit Kumar

View all

7 more disclosed reports, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.