Skip to content
RCE Write-up Advanced

Zero Day RCE on Mozilla's AWS Network

An unauthenticated WebPageTest instance allowed arbitrary Zip uploads that were extracted to a web-accessible directory, and a race condition let an attacker access a PHP file before it was deleted. By spoofing the client IP as [redacted] via a header, the attacker could reach the vulnerable upload function and achieve remote code execution.

Shubham Shah Follow

Published on blog.assetnote.io

Bounty$500 View original

When Assetnote Continuous Security (CS) monitors your attack surface, one of the things it looks for are instances of WebPageTest. WebPageTest is a website performance testing tool that lets you test network related metrics for any given URL/host.

Shubham Shah (@infosec_au), Mathias Karlsson (@avlidienbrunn), on blog.assetnote.io

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. 6 min read.

Context

WebPageTest is a website performance testing tool that lets you test network related metrics for any given URL or host. It ships with an array of testing tools, and those tools make outbound requests on your behalf, which is exactly what makes an unauthenticated deployment interesting from an attacker's point of view.

Basic authentication can be enabled by modifying the settings.ini file, and that is recommended to prevent anonymous access. In practice, most deployments that Assetnote Continuous Security (CS) identifies are unauthenticated. When WebPageTest is exposed that way, its testing tools can be used offensively to reach internal resources through server-side request forgery. For WebPageTest, that is a feature rather than a bug.

In November 2017, Assetnote CS discovered the following assets on Mozilla's AWS environment:

  • wpt-vpn.stage.mozaws.net
  • wpt1.dev.mozaws.net

Both were instances of WebPageTest that did not require authentication. It was the first time Assetnote CS had detected this for a bug bounty. Working with Mathias Karlsson, the author audited the source code and, in just a few hours, built an attack chain that led to remote code execution.

It was a zero day at the time of discovery. The researchers worked with the Mozilla and WebPageTest teams to get the vulnerability fixed upstream. The commit that patches the bugs described here was pushed on the 17th of January, 2018.

Setup

The preconditions for the chain were:

  1. An unauthenticated WebPageTest instance reachable over the network, in this case wpt-vpn.stage.mozaws.net.
  2. A valid test ID, which the interface hands out when you run any test.
  3. The ability to send arbitrary request headers to the instance.
  4. Two concurrent request streams: one uploading a malicious Zip file, the other requesting the extracted PHP file while it still exists.

The researchers used Burp Intruder for both streams. Their solution to winning the race condition at the time was simply to raise Burp Intruder's thread count to around 200. They note that today, tools such as Turbo Intruder, because of the speed at which requests are sent, make this exploit much more reliable.

Finding it

The first thing in the codebase that caught their attention was the ability to upload and extract arbitrary Zip files via /www/work/workdone.php. That script contained logic to restrict access from sources other than [redacted]:

Text
...!strcmp($_SERVER['REMOTE_ADDR'], "[redacted]")...

In the same file they found another potential vector: logic to upload an arbitrary Zip and have it extracted to a known location. Lines 133 to 136 of /www/work/workdone.php:

Text
if (isset($_FILES['file']['tmp_name'])) {  ExtractZipFile($_FILES['file']['tmp_name'], $testPath);  CompressTextFiles($testPath);}

If they could spoof their IP to come from [redacted], it seemed they could get code execution through this vector.

It was not as straightforward as they thought, because of line 321 in /www/work/workdone.php:

Text
SecureDir($testPath);

The logic of the SecureDir function is on lines 2322 to 2347 of /www/common_lib.inc:

Text
/*** Make sure there are no risky files in the given directory and make everything no-execute** @param mixed $path*/function SecureDir($path) {    $files = scandir($path);    foreach ($files as $file) {        $filepath = "$path/$file";        if (is_file($filepath)) {            $parts = pathinfo($file);            $ext = strtolower($parts['extension']);            if (strpos($ext, 'php') === false &&                strpos($ext, 'pl') === false &&                strpos($ext, 'py') === false &&                strpos($ext, 'cgi') === false &&                strpos($ext, 'asp') === false &&                strpos($ext, 'js') === false &&                strpos($ext, 'rb') === false &&                strpos($ext, 'htaccess') === false &&                strpos($ext, 'jar') === false) {                @chmod($filepath, 0666);            } else {                @chmod($filepath, 0666);    // just in case the unlink fails for some reason                unlink($filepath);            }        } elseif ($file != '.' && $file != '..' && is_dir($filepath)) {            SecureDir($filepath);        }    }}

Because SecureDir runs later in the code flow, the extracted files exist on the webserver for a short period before being deleted. That gap is an exploitable race condition: PHP files extracted from the Zip are briefly accessible.

Exploitation

Step 1: obtain a valid test ID

The first prerequisite was easy. A valid test ID was obtained by running a Traceroute on https://google.com through the WebPageTest interface on wpt-vpn.stage.mozaws.net.

Running a traceroute using WebPageTest

After running the traceroute, WebPageTest redirected to a URL containing the test ID used in later steps:

HTTP
http://wpt-vpn.stage.mozaws.net/result/171124_GW_9/

The 171124_GW_9 segment is the test ID used in later steps.

Step 2: spoof [redacted]

The vulnerable functions in workdone.php were still gated on the client address. The researchers met that condition by exploiting the following logic, line 70 of /www/common.inc:

Text
if (isset($_SERVER["HTTP_FASTLY_CLIENT_IP"]))  $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_FASTLY_CLIENT_IP"];

This allowed remote users to set $_SERVER["REMOTE_ADDR"] arbitrarily by sending a FASTLY-CLIENT-IP request header set to [redacted]. The application trusts a client-supplied header as the source address, so the !strcmp($_SERVER['REMOTE_ADDR'], "[redacted]") check in workdone.php passes for an attacker who is nowhere near localhost.

Step 3: race the upload against SecureDir

With the address check satisfied, the attacker can reach the Zip upload and extraction in workdone.php. The extracted PHP file is then deleted by SecureDir, but only after extraction has completed. The researchers set up two Burp Intruder attacks:

  1. One attack uploaded a malicious Zip file containing a PHP file.
  2. The other attempted to access the extracted PHP file while it existed on the system.

Running both at roughly 200 threads was enough to hit the window between extraction and deletion.

Step 4: code execution

Combining all of these elements produced code execution on Mozilla's infrastructure.

phpinfo() output from wpt-vpn.stage.mozaws.net

The screenshot shows phpinfo() output from wpt-vpn.stage.mozaws.net.

Root cause

Three separate weaknesses combine:

  1. Client-controlled source address. common.inc overwrites REMOTE_ADDR with the value of the FASTLY-CLIENT-IP header whenever that header is present. Any access control that relies on REMOTE_ADDR is therefore bypassable by any remote client that can set headers.
  2. Arbitrary Zip extraction into a web-reachable path. workdone.php extracts an uploaded Zip into $testPath without restricting what the archive contains, so a PHP file inside the archive lands under the web root.
  3. Time-of-check to time-of-use. SecureDir removes risky extensions only after extraction, so the file is briefly present and executable. The defence exists, but it runs too late to close the window.

Impact

An unauthenticated remote attacker could execute arbitrary code on the WebPageTest host, in this case inside Mozilla's AWS environment. The chain used a valid test ID, a FASTLY-CLIENT-IP header set to [redacted], and two concurrent request streams. The researchers were awarded $500 as part of Mozilla's bug bounty program. The Bugzilla report in which the vulnerability was first reported is now public and contains thorough reproduction steps for testers who wish to recreate the bugs.

Fix

The commit that patches the bugs was pushed on the 17th of January, 2018. The report does not describe the contents of that commit beyond identifying it as the patch for the issues above.

Variants to test

  1. Header-based address spoofing. Send FASTLY-CLIENT-IP: [redacted] (and similar proxy headers such as X-Forwarded-For where the code trusts them) to any endpoint that gates on REMOTE_ADDR. A positive result is that a localhost-only function responds normally instead of refusing.
  2. Unauthenticated WebPageTest instances. Look for the WebPageTest interface on staging and development hosts. A positive result is a test form that runs without credentials and returns a result URL with a test ID.
  3. Zip extraction into web-reachable directories. Upload an archive containing a script with an executable extension and request it immediately. A positive result is the script executing before SecureDir removes it.
  4. Race windows around cleanup routines. Any code path that extracts or writes files and then deletes or chmods them afterwards is worth racing with high concurrency. A positive result is a response from the file in the interval before deletion.
  5. Extension blocklists. SecureDir checks for php, pl, py, cgi, asp, js, rb, htaccess and jar as substrings. Test other extensions the server may still execute, and confirm whether the check runs before or after the file becomes reachable.

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. 16 min read.

What happened, in plain words

A security researcher was scanning the internet for a particular piece of software that many organisations install on their servers. That software is called WebPageTest. It is a free tool that measures how fast a website loads: you give it a web address, and it fetches that page from its own server and reports back on speed, network timings and similar measurements. Think of it as a robot that visits a website on your behalf and writes down what it saw.

Because the robot has to be able to reach any address you type in, it will happily fetch pages that are not on the public internet, including pages that only the server itself can normally see. That is useful for the tool's job, but it also means that if the tool is left open to anyone, a stranger can use it as a remote-controlled visitor to reach places they should not be able to reach. Security people call that server-side request forgery, or SSRF: you trick a server into making a request for you.

Assetnote Continuous Security found two WebPageTest installations on Mozilla's AWS environment that did not require authentication. Working with a second researcher, Mathias Karlsson, he read the tool's source code (the human-written instructions that make up the program) and, within a few hours, put together a chain of small weaknesses that ended in remote code execution. Remote code execution, usually shortened to RCE, means an attacker can make the server run their own program, not just read pages. That is about as serious as it gets.

At the moment they found it, nobody knew about the flaw, so it was a zero day: a bug with no fix available yet. The researchers worked with Mozilla and the WebPageTest team on getting the vulnerability fixed upstream. The commit that patches the bugs was pushed on 17 January 2018. Mozilla paid a $500 bounty, which is a reward that companies offer to people who report security problems responsibly.

The tool, and why an open installation is interesting

WebPageTest is a website performance testing tool. You give it a URL or a host, and it measures network-related metrics: how long the page took, how the connection behaved, and so on. It ships with an array of testing tools, and those tools make outbound requests on your behalf. That last part is the key. A tool that fetches things for you is a tool that can be pointed at things you are not supposed to see.

You can switch on basic authentication by editing a configuration file called settings.ini, and that is recommended to prevent anonymous access. Basic authentication is the simplest login prompt a browser shows: a small box asking for a username and password before the page loads. In practice, most of the installations that Assetnote Continuous Security (CS) finds are unauthenticated, meaning no login is required at all. Assetnote CS is an automated service that watches an organisation's attack surface, the collection of systems it exposes to the internet, and flags things like this.

When WebPageTest is exposed that way, its testing tools can be used offensively to reach internal resources through SSRF. For WebPageTest, that is a feature rather than a bug: the whole point of the tool is to fetch addresses on your behalf.

In November 2017, Assetnote CS discovered the following assets on Mozilla's AWS environment:

  • wpt-vpn.stage.mozaws.net
  • wpt1.dev.mozaws.net

Both were instances of WebPageTest that did not require authentication. An instance here just means one running copy of the software. The names suggest staging and development environments, which are the test copies of a system that companies run alongside the real one. It was the first time Assetnote CS had detected this for a bug bounty.

Working with Mathias Karlsson, the author audited the source code and, in just a few hours, built an attack chain that led to remote code execution. An attack chain is a sequence of small steps where each one unlocks the next, like a set of dominoes.

What the researchers needed before starting

The preconditions for the chain were:

  1. An unauthenticated WebPageTest instance reachable over the network, in this case wpt-vpn.stage.mozaws.net.
  2. A valid test ID, which the interface hands out when you run any test.
  3. The ability to send arbitrary request headers to the instance.
  4. Two concurrent request streams: one uploading a malicious Zip file, the other requesting the extracted PHP file while it still exists.

A few of those need explaining. A test ID is a short label the tool gives to each test you run, so it can store the results and show them to you later. A request header is a small line of extra information that your browser attaches to every request it sends, such as which browser you use; anyone can add their own headers, and servers often trust them more than they should. A Zip file is a compressed archive, a single file that holds other files inside it, like a cardboard box. PHP is a programming language commonly used to build websites; a PHP file, when requested from a web server, is executed as a program rather than shown as text. Concurrent means happening at the same time.

The researchers used a tool called Burp Intruder for both streams. Burp is a popular program for intercepting and modifying web traffic, and Intruder is its component for firing many requests quickly. Their solution to winning the race condition at the time was simply to raise Burp Intruder's thread count to around 200. A race condition is a situation where the outcome depends on which of two things happens first; a thread here is one worker sending requests, so 200 threads means 200 requests in flight at once. They note that today, tools such as Turbo Intruder, because of the speed at which requests are sent, make this exploit much more reliable.

Finding it

The first thing in the codebase that caught their attention was the ability to upload and extract arbitrary Zip files via /www/work/workdone.php. A codebase is the full collection of source files that make up a program. A path like /www/work/workdone.php is the address of one file on the server, the same way a web address points at a page.

That script contained logic to restrict access from sources other than [redacted]:

Text
...!strcmp($_SERVER['REMOTE_ADDR'], "[redacted]")...

Line by line: $_SERVER is a built-in PHP container holding information about the current request. $_SERVER['REMOTE_ADDR'] is the IP address the request came from, where an IP address is the numeric label of a machine on a network. [redacted] is the special address a computer uses to refer to itself, often called localhost. strcmp compares two pieces of text and returns zero when they are identical. The ! in front flips the result, so the whole expression is true when the two are not identical. In plain words: the code is checking whether the request came from somewhere other than the machine itself. The ... on either side means this is only a fragment of a longer line.

In the same file they found another potential vector: logic to upload an arbitrary Zip and have it extracted to a known location. Lines 133 to 136 of /www/work/workdone.php:

Text
if (isset($_FILES['file']['tmp_name'])) {  ExtractZipFile($_FILES['file']['tmp_name'], $testPath);  CompressTextFiles($testPath);}

Line by line: isset(...) asks whether something exists. $_FILES['file']['tmp_name'] is PHP's way of referring to a file that was just uploaded with the form field named file; tmp_name is the temporary location the server stored it in. So the if means: if a file was uploaded, do the following. ExtractZipFile(...) takes that uploaded file and unpacks it into $testPath, a variable holding the folder for this test's results. CompressTextFiles($testPath) then compresses the text files in that folder. The important part is the unpacking: whatever is inside the Zip ends up as real files in a folder on the server.

If they could spoof their IP to come from [redacted], it seemed they could get code execution through this vector. Spoofing means pretending to be something you are not; here, pretending your request came from the server itself.

It was not as straightforward as they thought, because of line 321 in /www/work/workdone.php:

Text
SecureDir($testPath);

This calls a function named SecureDir on the test folder. A function is a named block of code that does one job; calling it means running it. The name suggests it is there to make the folder safe.

The logic of the SecureDir function is on lines 2322 to 2347 of /www/common_lib.inc:

Text
/*** Make sure there are no risky files in the given directory and make everything no-execute** @param mixed $path*/function SecureDir($path) {    $files = scandir($path);    foreach ($files as $file) {        $filepath = "$path/$file";        if (is_file($filepath)) {            $parts = pathinfo($file);            $ext = strtolower($parts['extension']);            if (strpos($ext, 'php') === false &&                strpos($ext, 'pl') === false &&                strpos($ext, 'py') === false &&                strpos($ext, 'cgi') === false &&                strpos($ext, 'asp') === false &&                strpos($ext, 'js') === false &&                strpos($ext, 'rb') === false &&                strpos($ext, 'htaccess') === false &&                strpos($ext, 'jar') === false) {                @chmod($filepath, 0666);            } else {                @chmod($filepath, 0666);    // just in case the unlink fails for some reason                unlink($filepath);            }        } elseif ($file != '.' && $file != '..' && is_dir($filepath)) {            SecureDir($filepath);        }    }}

Line by line: the comment at the top says the function's job is to make sure there are no risky files in the given directory and make everything no-execute. function SecureDir($path) { starts the function, taking a folder path as its input. $files = scandir($path); lists everything in that folder. foreach ($files as $file) { then goes through the list one item at a time. $filepath = "$path/$file"; builds the full location of the current item. if (is_file($filepath)) { asks whether it is a regular file rather than a folder. $parts = pathinfo($file); splits the file name into pieces, and $ext = strtolower($parts['extension']); takes the extension (the part after the dot, such as php) and lowercases it so the comparison is not fooled by capital letters. The long if with the chain of strpos(...) === false && checks asks whether the extension contains none of the listed strings: php, pl, py, cgi, asp, js, rb, htaccess, jar. strpos looks for one piece of text inside another and returns false when it is not found; && means and. If none of those strings appear, the file is harmless, so @chmod($filepath, 0666); gives it read and write permissions for everyone. The @ in front suppresses error messages. Otherwise, in the else branch, the file is risky: it is first given permissions with @chmod($filepath, 0666); (the comment says just in case the unlink fails for some reason) and then unlink($filepath); deletes it. Finally, elseif ($file != '.' && $file != '..' && is_dir($filepath)) { handles folders, skipping the special . and .. entries, and SecureDir($filepath); calls the same function again on the subfolder, so it walks the whole tree.

Because SecureDir runs later in the code flow, the extracted files exist on the webserver for a short period before being deleted. That gap is an exploitable race condition: PHP files extracted from the Zip are briefly accessible. Picture a cleaner who removes a dangerous object from a room, but only a few seconds after it has been placed there; if you can grab it in those seconds, the cleaner's rule does not protect anything.

Exploitation

Step 1: obtain a valid test ID

The first prerequisite was easy. A valid test ID was obtained by running a Traceroute on https://google.com through the WebPageTest interface on wpt-vpn.stage.mozaws.net. A traceroute is a network diagnostic that shows the path traffic takes to reach a destination, hop by hop.

Running a traceroute using WebPageTest

After running the traceroute, WebPageTest redirected to a URL containing the test ID used in later steps:

HTTP
http://wpt-vpn.stage.mozaws.net/result/171124_GW_9/

Line by line: http:// is the scheme, telling the browser to speak the ordinary web protocol. wpt-vpn.stage.mozaws.net is the host, the name of the server. /result/171124_GW_9/ is the path, and 171124_GW_9 is the test ID. The 171124_GW_9 segment is the test ID used in later steps.

Step 2: spoof [redacted]

The vulnerable functions in workdone.php were still gated on the client address. The researchers met that condition by exploiting the following logic, line 70 of /www/common.inc:

Text
if (isset($_SERVER["HTTP_FASTLY_CLIENT_IP"]))  $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_FASTLY_CLIENT_IP"];

Line by line: isset($_SERVER["HTTP_FASTLY_CLIENT_IP"]) asks whether the request carried a header named FASTLY-CLIENT-IP. In PHP, a header called FASTLY-CLIENT-IP arrives in $_SERVER under the name HTTP_FASTLY_CLIENT_IP, with HTTP_ in front and dashes turned into underscores. If that header is present, the second part runs: $_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_FASTLY_CLIENT_IP"]; copies the header's value into the variable that holds the source address. In other words, the application overwrites its own idea of where the request came from with a value the client chose.

This allowed remote users to set $_SERVER["REMOTE_ADDR"] arbitrarily by sending a FASTLY-CLIENT-IP request header set to [redacted]. The application trusts a client-supplied header as the source address, so the !strcmp($_SERVER['REMOTE_ADDR'], "[redacted]") check in workdone.php passes for an attacker who is nowhere near localhost. The everyday comparison: a club bouncer who asks visitors to write their own name on a list, then trusts the list, will let in anyone who writes the name of a member.

Step 3: race the upload against SecureDir

With the address check satisfied, the attacker can reach the Zip upload and extraction in workdone.php. The extracted PHP file is then deleted by SecureDir, but only after extraction has completed. The researchers set up two Burp Intruder attacks:

  1. One attack uploaded a malicious Zip file containing a PHP file.
  2. The other attempted to access the extracted PHP file while it existed on the system.

Running both at roughly 200 threads was enough to hit the window between extraction and deletion. The first stream plants the file; the second stream keeps knocking on its address, hoping one knock lands in the brief moment before the cleaner arrives.

Step 4: code execution

Combining all of these elements produced code execution on Mozilla's infrastructure.

phpinfo() output from wpt-vpn.stage.mozaws.net

The screenshot shows phpinfo() output from wpt-vpn.stage.mozaws.net. phpinfo() is a standard PHP function that prints a long page of details about the server's PHP setup; seeing it means the server ran the attacker's code rather than refusing it.

Root cause

Three separate weaknesses combine:

  1. Client-controlled source address. common.inc overwrites REMOTE_ADDR with the value of the FASTLY-CLIENT-IP header whenever that header is present. Any access control that relies on REMOTE_ADDR is therefore bypassable by any remote client that can set headers.
  2. Arbitrary Zip extraction into a web-reachable path. workdone.php extracts an uploaded Zip into $testPath without restricting what the archive contains, so a PHP file inside the archive lands under the web root. The web root is the folder the web server serves pages from.
  3. Time-of-check to time-of-use. SecureDir removes risky extensions only after extraction, so the file is briefly present and executable. The defence exists, but it runs too late to close the window. Time-of-check to time-of-use is the general name for this pattern: you check something, then use it later, and it can change in between.

Impact

An unauthenticated remote attacker could execute arbitrary code on the WebPageTest host, in this case inside Mozilla's AWS environment. The chain used a valid test ID, a FASTLY-CLIENT-IP header set to [redacted], and two concurrent request streams. The researchers were awarded $500 as part of Mozilla's bug bounty program. The Bugzilla report in which the vulnerability was first reported is now public and contains thorough reproduction steps for testers who wish to recreate the bugs. Bugzilla is Mozilla's bug-tracking system, a website where issues are filed and discussed.

Fix

The commit that patches the bugs was pushed upstream in WebPageTest on 17 January 2018. The commit that patches them was pushed on 17 January 2018. A commit is a saved change in a code repository, the shared store of a project's source code. The report does not describe the contents of that commit beyond identifying it as the patch for the issues above.

Variants to test

  1. Header-based address spoofing. Send FASTLY-CLIENT-IP: [redacted] (and similar proxy headers such as X-Forwarded-For where the code trusts them) to any endpoint that gates on REMOTE_ADDR. A positive result is that a localhost-only function responds normally instead of refusing. A proxy header is a header that load balancers and proxies add to record the original visitor's address.
  2. Unauthenticated WebPageTest instances. Look for the WebPageTest interface on staging and development hosts. A positive result is a test form that runs without credentials and returns a result URL with a test ID.
  3. Zip extraction into web-reachable directories. Upload an archive containing a script with an executable extension and request it immediately. A positive result is the script executing before SecureDir removes it.
  4. Race windows around cleanup routines. Any code path that extracts or writes files and then deletes or chmods them afterwards is worth racing with high concurrency. A positive result is a response from the file in the interval before deletion.
  5. Extension blocklists. SecureDir checks for php, pl, py, cgi, asp, js, rb, htaccess and jar as substrings. Test other extensions the server may still execute, and confirm whether the check runs before or after the file becomes reachable. A blocklist is a list of things to forbid; it only works for the items someone thought to write down.

Glossary

  • API: a defined way for one program to ask another program to do something, like a menu of requests a service accepts.
  • Attack surface: everything an organisation exposes to the internet that an attacker could try to reach.
  • AWS: Amazon Web Services, Amazon's rented cloud computing platform.
  • Basic authentication: the simplest login prompt, where the browser sends a username and password with the request.
  • Blocklist: a list of forbidden items; anything not on the list is allowed.
  • Bug bounty: a reward a company pays to someone who reports a security problem responsibly.
  • Bugzilla: Mozilla's public bug-tracking website.
  • Burp Intruder: the component of the Burp Suite tool that sends many requests automatically.
  • Codebase: the full collection of source files that make up a program.
  • Commit: a saved change in a code repository.
  • Concurrent: happening at the same time.
  • Configuration file: a file of settings that changes how a program behaves without editing its code.
  • Endpoint: a specific address on a server that accepts requests.
  • Extension: the part of a file name after the dot, such as php, which often tells the server how to treat the file.
  • Function: a named block of code that performs one job and can be called by name.
  • Header: a small line of extra information attached to a web request or response, such as the browser type or the client's address.
  • Instance: one running copy of a piece of software.
  • IP address: the numeric label of a machine on a network.
  • Localhost: the special address [redacted], which a computer uses to refer to itself.
  • PHP: a programming language widely used to build websites; PHP files are executed by the web server.
  • phpinfo(): a standard PHP function that prints details about the server's PHP setup.
  • Proxy header: a header added by a load balancer or proxy to record the original visitor's address.
  • Race condition: a situation where the outcome depends on which of two actions happens first.
  • Remote code execution (RCE): making a server run an attacker's own program.
  • Request: a message a browser or tool sends to a server asking for something.
  • Server-side request forgery (SSRF): tricking a server into making a request on the attacker's behalf, often to reach internal resources.
  • Source code: the human-written instructions that make up a program.
  • Spoofing: pretending to be something you are not, such as faking your source address.
  • Staging / development environment: test copies of a system run alongside the real one.
  • Test ID: the short label WebPageTest gives each test so results can be stored and found later.
  • Thread: one worker sending requests; more threads means more requests in flight at once.
  • Time-of-check to time-of-use: a flaw where something is checked, then used later, and can change in between.
  • Traceroute: a network diagnostic that shows the path traffic takes to a destination, hop by hop.
  • Turbo Intruder: a fast request-sending tool used for high-concurrency attacks.
  • Unauthenticated: reachable without any login.
  • Upstream: in the original project, so all installations that update receive the fix.
  • URL: a web address.
  • Web root: the folder a web server serves pages from.
  • WebPageTest: a free tool that measures website performance by fetching pages on your behalf.
  • Zero day: a vulnerability that is not publicly known and has no fix available yet.
  • Zip file: a compressed archive that holds other files inside it.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.