Story of a weird vulnerability I found on Facebook
A directory on a Facebook subdomain returned a 403 error, but sending many simultaneous requests caused the server to sometimes return a full directory listing instead. This exposed internal confidential business and personal information in uploaded XLSX files.
Published on medium.com
#### Amine Aboud
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.
Context
Facebook, at the time of writing, had over 2.7 billion monthly active users, which is why the author had always been interested in testing the security of a company of that size. This write-up covers a distinct vulnerability he found and reported to Facebook.
While doing subdomain enumeration he came across a subdomain that immediately raised his interest:
https://legal.tapprd.thefacebook.com/
The reasoning was simple: servers used for legal needs usually contain important data. The report shows one endpoint in particular, an identity logout route:
https://legal.tapprd.thefacebook.com/tapprd/auth/identity/logout
That endpoint was indexed in search results, which is how the author found it after googling the subdomain. The report does not describe what the application normally does beyond this; the feature of interest is the directory served under /tapprd/, which returned a 403 error on ordinary requests.
Setup
No accounts, roles or credentials are involved. The testing was done unauthenticated against the public host, using two tools:
- A directory enumeration tool, to discover paths under the host.
- Burp Intruder (written "Blurp" in the report) to send many requests, with Firefox open in parallel to browse the target.
No specific versions are given. The only precondition that matters is the one the author discovered: the protected directory returns 403 Forbidden : Access is Denied. when requested normally.
Finding it
During directory enumeration, a strange server behaviour caught the author's attention. When he requested some specific directories, the server's response was delayed by a few seconds before returning the error:
403 Forbidden : Access is Denied.
The author then decided to stress the server with many requests and watch its reaction.
Exploitation
Step 1: stress the protected directory
The author decided to send 200 HTTP requests, without any payload, targeting the protected path:
http://legal.tapprd.thefacebook.com/tapprd/
The goal was to stress the server a little and watch its reaction. The requests were sent with Burp Intruder using the following options:
Number of threats: 6
Numbers of retries on network failure: 4
Pause before retry (milliseconds): 3000
He then left his computer for a cold beer. Thirty minutes later he came back to the results.
Step 2: observe the bypass
By sending multiple simultaneous HTTP requests to /tapprd/, some of the requests managed to bypass the 403 permission denied error and returned a full directory listing. After digging further and doing additional tests, the author reached the following conclusion: sending simultaneous HTTP requests to a specific directory can lead to the server leaking its content.
Step 3: reproduce it while browsing
To confirm and to browse the result comfortably, he sent HTTP requests via Burp again and at the same time opened the following URL in Firefox:
http://legal.tapprd.thefacebook.com/tapprd/
The 403 error disappeared and he got an open directory listing.

Step 4: walk the listing
He started navigating through the folders with Firefox and found an upload directory containing some strange XLSX files.

He clicked to check a few samples. The documents had been uploaded by the legal Facebook team and contained a lot of internal confidential business and personal information. At that point he stopped his research, prepared a proof of concept video and sent a detailed vulnerability report to Facebook.
Root cause
The report does not name the component or the code responsible. What it establishes empirically is the behaviour: under concurrent requests to the same protected directory, some requests are served the directory listing instead of the 403 denial. The author's own conclusion is that sending simultaneous HTTP requests to a specific directory can lead to the server leaking its content.
The report does not confirm this; it only documents the reproducible effect.
Either way, the 403 returned to ordinary requests did not hold under concurrency.
Impact
Under the condition that an attacker can send simultaneous requests to the protected directory, the server discloses its content. In this case the exposed content included an upload directory with XLSX documents uploaded by the legal Facebook team, containing internal confidential business and personal information. The author does not enumerate the documents or quantify how many people were affected, and he stopped as soon as he had confirmed the nature of the data.
Fix
The vulnerability was fixed by the Facebook product team on July 31, 2020, and the author confirmed the patch.
Timeline
| Date | Event |
|---|---|
| July 27, 2020, 3:43 PM | Vulnerability reported; triaged by the Facebook Security Team one hour later |
| July 31, 2020 | Fixed by the Facebook product team; patch confirmed by the author |
| August 12, 2020 | Facebook raised a conflict with the Responsible Disclosure Policy; the author sent more clarifications and details |
| August 27, 2020 | Reply: "We have received your comments and will get back to you on this matter once we have finished discussing the case." |
| September 21, 2020 | "Upon further review of your report, we've decided to issue you a bounty award. We appreciate your patience as we worked through the triage process." |
| September 28, 2020 | Bounty awarded |

Variants to test
Closing advice
The author's own takeaways: be attentive to small details, think outside the box, and once you discover a vulnerability, control your emotions and your steps. Always respect the Disclosure Policy of the bug bounty programme you are participating in, and be patient: this report took two months before getting completely resolved.

What happened, in plain words
A security researcher was looking around Facebook's public web servers, the machines that answer when you type a Facebook address into your browser. He found a server whose name suggested it was used for legal work, and legal work usually means important documents. The folder he was interested in answered with an error saying access was denied when asked for normally. But when he sent many requests to that same folder at almost the same moment, some of them slipped through and the server showed him a list of everything inside. That list led to a folder of uploaded spreadsheet files from Facebook's legal team, containing internal business and personal information. He stopped there, recorded a video showing the problem, and reported it. Facebook fixed it on July 31, 2020, and later paid a bounty, a reward for reporting a security problem.
This article walks through the same story for someone who has never done security testing. Every tool and term is explained where it first appears, and the glossary at the end collects them all.
Background
Facebook had over 2.7 billion monthly active users at the time, which is why the author had always been interested in testing the security of a company that size. This write-up covers a distinct vulnerability he found and reported to Facebook.
A few ideas first, because the whole story depends on them:
- Web server: the computer (or group of computers) that stores a website and sends pages to your browser when you ask for them. Your browser is the client; the server is the other side.
- Subdomain: a name that sits in front of a company's main domain. If
facebook.comis the main address,legal.tapprd.thefacebook.comis a subdomain, a smaller address pointing at a particular service. Companies have many of them, and each one can be a separate application. - Subdomain enumeration: the process of finding those subdomain names. Some are published; others are guessed or discovered from lists. It is like walking around a large building looking for doors that are not on the main sign.
- Directory: a folder on a web server. Websites are organised in folders just like files on your computer, and a URL ending in a slash, such as
/tapprd/, points at one. - 403 Forbidden: an HTTP status code. When your browser asks a server for something, the server replies with a number.
200means "here it is".403means "I understood your request, but you are not allowed to see this". It is the web's way of saying the door is locked.
While doing subdomain enumeration, the author came across a subdomain that immediately raised his interest:
https://legal.tapprd.thefacebook.com/
This is a URL, an address. https:// means the connection is encrypted, so nobody between your browser and the server can read it. legal.tapprd.thefacebook.com is the host name, and the trailing / means the root folder of that host.
The reasoning was simple: servers used for legal needs usually contain important data. The report shows one endpoint in particular, an identity logout route:
https://legal.tapprd.thefacebook.com/tapprd/auth/identity/logout
An endpoint is one specific address inside an application that does one specific job, like a counter in a shop: you go to it for a particular service. This one is a logout route, meaning it is the address the application calls when a user signs out. The word auth in the path hints that this part of the application deals with identity, that is, with who a user is.
That endpoint was indexed in search results, which is how the author found it after googling the subdomain. Indexed means a search engine has crawled the page and listed it, so anyone searching for the right words can find the address. The report does not describe what the application normally does beyond this; the feature of interest is the directory served under /tapprd/, which returned a 403 error on ordinary requests. Unauthenticated simply means not logged in: the visitor has no account, no password and no session, and the server is expected to refuse them.
Setup
No accounts, roles or credentials are involved. The testing was done unauthenticated against the public host, using two tools:
- A directory enumeration tool, to discover paths under the host.
- Burp Intruder (written "Blurp" in the report) to send many requests, with Firefox open in parallel to browse the target.
Directory enumeration is automated guessing of folder names. The tool takes a list of common names (admin, uploads, backup and so on), asks the server for each one, and notes which answers are interesting. It is like trying every key on a big keyring to see which ones turn in a lock, except that here you are only asking whether a door exists, not forcing it.
Burp Intruder is a feature of Burp Suite, a program security testers use to sit between their browser and a website. It can send the same request over and over, automatically, with variations, and record every answer. The report spells it "Blurp", which is how the author wrote it.
Firefox is an ordinary web browser. The author kept it open next to the testing tool so he could look at the target the way a normal visitor would.
No specific versions are given. The only precondition that matters is the one the author discovered: the protected directory returns 403 Forbidden : Access is Denied. when requested normally.
Finding it
During directory enumeration, a strange server behaviour caught the author's attention. When he requested some specific directories, the server's response was delayed by a few seconds before returning the error:
403 Forbidden : Access is Denied.
This is the text of the error page. The important part is not the words but the timing: the server took a few seconds before saying no. A locked door that takes several seconds to tell you it is locked is doing something in between, probably checking whether you are allowed in. That delay is a clue.
The author then decided to stress the server with many requests and watch its reaction. In everyday terms: if a bouncer checks a guest list slowly, and you and nine friends all arrive at once, there is a chance one of you walks in while the bouncer is still looking at the list.
Exploitation
Step 1: stress the protected directory
The author decided to send 200 HTTP requests, without any payload, targeting the protected path:
http://legal.tapprd.thefacebook.com/tapprd/
An HTTP request is the message your browser sends when you open a page: "please give me this address". Without any payload means the requests carried no extra data, no form contents, no special values. They were plain requests for the same folder, repeated. The goal was to stress the server a little and watch its reaction, that is, to see whether it behaves differently under load than it does for a single visitor.
The requests were sent with Burp Intruder using the following options:
Number of threats: 6
Numbers of retries on network failure: 4
Pause before retry (milliseconds): 3000
Line by line:
Number of threats: 6is how the report writes the setting for how many requests are sent at the same time. "Threats" here is the author's spelling of threads, the parallel workers doing the sending. Six requests go out concurrently rather than one after another.Numbers of retries on network failure: 4means that if a request fails because of a network problem, the tool tries it again up to four times. Networks drop connections, and retrying keeps the test from stalling.Pause before retry (milliseconds): 3000means the tool waits 3000 milliseconds, that is three seconds, before each retry.
He then left his computer for a cold beer. Thirty minutes later he came back to the results.
Step 2: observe the bypass
By sending multiple simultaneous HTTP requests to /tapprd/, some of the requests managed to bypass the 403 permission denied error and returned a full directory listing. Simultaneous is the key word: the requests were in flight at the same moment, not one after the other. A directory listing is what a web server shows when a folder has no home page of its own: a plain page listing every file and subfolder inside it, like opening a drawer and seeing everything in it rather than a closed lid.
After digging further and doing additional tests, the author reached the following conclusion: sending simultaneous HTTP requests to a specific directory can lead to the server leaking its content. This kind of flaw, where a check fails only when several things happen at once, resembles what is often called a race condition. The everyday comparison is two people trying to book the last seat on a flight at the same instant: each check sees the seat as free, and both bookings go through.
Step 3: reproduce it while browsing
To confirm and to browse the result comfortably, he sent HTTP requests via Burp again and at the same time opened the following URL in Firefox:
http://legal.tapprd.thefacebook.com/tapprd/
This is the same address as before, opened in an ordinary browser tab. He sent HTTP requests via Burp again and at the same time opened the URL in Firefox. The 403 error disappeared and he got an open directory listing.

Step 4: walk the listing
He started navigating through the folders with Firefox and found an upload directory containing some strange XLSX files. XLSX is the file format used by spreadsheet programs such as Microsoft Excel. An upload directory is a folder where files sent to the application are stored, which is often where the most interesting documents end up.

He clicked to check a few samples. The documents had been uploaded by the legal Facebook team and contained a lot of internal confidential business and personal information. At that point he stopped his research, prepared a proof of concept video and sent a detailed vulnerability report to Facebook. A proof of concept is a small, controlled demonstration that a problem is real, here a video showing the steps and the result, so the company can reproduce it without taking the researcher's word for it.
Root cause
The report does not name the component or the code responsible. What it establishes empirically is the behaviour: under concurrent requests to the same protected directory, some requests are served the directory listing instead of the 403 denial. The author's own conclusion is that sending simultaneous HTTP requests to a specific directory can lead to the server leaking its content.
Stateless means the check does not depend on anything remembered between requests: it looks at the request, decides, and forgets. Cached means a result is kept in memory for a while so it can be reused quickly instead of recomputed. The report does not confirm this; it only documents the reproducible effect.
Either way, the 403 returned to ordinary requests did not hold under concurrency.
Impact
Impact means what harm the flaw could cause if someone with bad intentions found it first. Under the condition that an attacker can send simultaneous requests to the protected directory, the server discloses its content. In this case the exposed content included an upload directory with XLSX documents uploaded by the legal Facebook team, containing internal confidential business and personal information. The author does not enumerate the documents or quantify how many people were affected, and he stopped as soon as he had confirmed the nature of the data.
Fix
The vulnerability was fixed by the Facebook product team on July 31, 2020, and the author confirmed the patch. In the bouncer comparison: the guest list has to be checked the same way for every guest, even when ten arrive at once, and nobody gets in while the list is still being read.
Timeline
| Date | Event |
|---|---|
| July 27, 2020, 3:43 PM | Vulnerability reported; triaged by the Facebook Security Team one hour later |
| July 31, 2020 | Fixed by the Facebook product team; patch confirmed by the author |
| August 12, 2020 | Facebook raised a conflict with the Responsible Disclosure Policy; the author sent more clarifications and details |
| August 27, 2020 | Reply: "We have received your comments and will get back to you on this matter once we have finished discussing the case." |
| September 21, 2020 | "Upon further review of your report, we've decided to issue you a bounty award. We appreciate your patience as we worked through the triage process." |
| September 28, 2020 | Bounty awarded |
Triaged means the security team read the report, confirmed it was a real issue and started handling it. A bounty is a cash reward a company pays a researcher for reporting a security problem. A Responsible Disclosure Policy is the company's written rulebook for how researchers may test and when they may talk publicly about what they found.

Variants to test
Each one is described with what to do and what a positive result looks like.
Closing advice
The author's own takeaways: be attentive to small details, think outside the box, and once you discover a vulnerability, control your emotions and your steps. Always respect the Disclosure Policy of the bug bounty programme you are participating in, and be patient: this report took two months before getting completely resolved.

Glossary
- 403 Forbidden: an HTTP status code meaning the server understood the request but refuses to serve it to this visitor.
- 200: an HTTP status code meaning the request succeeded and the content is being returned.
- Bounty: a cash reward paid by a company to a researcher who reports a security problem.
- Burp Intruder: a feature of the Burp Suite testing tool that sends many requests automatically, with variations, and records the answers.
- Cached: kept in memory for a while so a result can be reused quickly instead of being recomputed.
- Client: the program asking for something, usually your browser, as opposed to the server that answers.
- Concurrency: several things happening at the same time rather than one after another.
- Credential: a piece of proof of identity, such as a username and password.
- Directory: a folder on a web server, addressed by a URL ending in a slash.
- Directory enumeration: automated guessing of folder names on a server to discover which ones exist.
- Directory listing: a page a web server shows when a folder has no home page, listing every file and subfolder inside it.
- Endpoint: one specific address inside an application that performs one specific job.
- Host: the named machine a URL points at, such as
legal.tapprd.thefacebook.com. - HTTP request: the message a browser sends to a server asking for a page or resource.
- HTTPS: HTTP carried over an encrypted connection, so nobody in between can read it.
- Impact: the harm a vulnerability could cause if exploited.
- Indexed: crawled and listed by a search engine, so the address can appear in search results.
- Patch: a fix applied to software.
- Payload: extra data carried inside a request, such as form contents or special values.
- Proof of concept: a small, controlled demonstration that a problem is real, often a video or script.
- Race condition: a flaw where a check that should always apply fails when several actions happen at the same moment.
- Responsible Disclosure Policy: a company's written rules for how researchers may test and when they may publish findings.
- Session: the server's memory of who you are across several requests, usually tied to a cookie or token.
- Stateless: not remembering anything between requests; each request is judged on its own.
- Subdomain: a name in front of a company's main domain, pointing at a particular service.
- Subdomain enumeration: the process of discovering a company's subdomain names.
- Threads: parallel workers inside a tool, each sending requests at the same time as the others.
- Triaged: read, confirmed as a real issue and taken into handling by a security team.
- Unauthenticated: not logged in, with no account, password or session.
- Upload directory: a folder where files sent to an application are stored.
- URL: an address on the web, such as
https://legal.tapprd.thefacebook.com/tapprd/. - Web server: the computer that stores a website and answers requests for it.
- XLSX: the file format used by spreadsheet programs such as Microsoft Excel.